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 voidclose()voidconnect()ConnectiongetConnection()ConnectiongetConnection(String username, String password)intgetDefaultTransactionIsolation()intgetLoginTimeout()PrintWritergetLogWriter()LoggergetParentLogger()org.springframework.jdbc.datasource.DataSourceTransactionManagergetTransactionManager()booleanisConnected()booleanisWrapperFor(Class<?> iface)Always returns false.voidsetLoginTimeout(int seconds)voidsetLogWriter(PrintWriter out)<T> Tunwrap(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:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
public Connection getConnection(String username, String password) throws SQLException
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- Specified by:
getLogWriterin interfaceCommonDataSource- Throws:
SQLException
-
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- Specified by:
setLogWriterin interfaceCommonDataSource- Throws:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Throws:
SQLException
-
getLoginTimeout
public int getLoginTimeout() throws SQLException- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Throws:
SQLException
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin 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:
unwrapin 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:
isWrapperForin interfaceWrapper- Parameters:
iface- unused.- Returns:
- false.
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation()
-
-