Class TeamCityDataSource
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.TeamCityDataSource
-
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
public class TeamCityDataSource extends Object implements DataSource
-
-
Constructor Summary
Constructors Constructor Description TeamCityDataSource(DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
connect()
Connection
getConnection()
Connection
getConnection(String username, String password)
int
getDefaultTransactionIsolation()
int
getLoginTimeout()
PrintWriter
getLogWriter()
Logger
getParentLogger()
org.springframework.jdbc.datasource.DataSourceTransactionManager
getTransactionManager()
boolean
isConnected()
boolean
isWrapperFor(Class<?> iface)
Always returns false.void
setLoginTimeout(int seconds)
void
setLogWriter(PrintWriter out)
<T> T
unwrap(Class<T> iface)
Always throwsSQLException
.
-
-
-
Constructor Detail
-
TeamCityDataSource
public TeamCityDataSource(@NotNull DataSource dataSource)
-
-
Method Detail
-
connect
public void connect()
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
public Connection getConnection(String username, String password) throws SQLException
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- Specified by:
getLogWriter
in interfaceCommonDataSource
- Throws:
SQLException
-
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- Specified by:
setLogWriter
in interfaceCommonDataSource
- Throws:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException
- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Throws:
SQLException
-
getLoginTimeout
public int getLoginTimeout() throws SQLException
- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Throws:
SQLException
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interfaceCommonDataSource
- Throws:
SQLFeatureNotSupportedException
-
getTransactionManager
public org.springframework.jdbc.datasource.DataSourceTransactionManager getTransactionManager()
-
isConnected
public boolean isConnected()
-
close
public void close()
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
Always throwsSQLException
.- Specified by:
unwrap
in interfaceWrapper
- Type Parameters:
T
- unused.- Parameters:
iface
- unused.- Returns:
- not reached.
- Throws:
SQLException
- always.- See Also:
isWrapperFor(java.lang.Class<?>)
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
Always returns false.- Specified by:
isWrapperFor
in interfaceWrapper
- Parameters:
iface
- unused.- Returns:
- false.
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation()
-
-