public class DataSource extends Object implements DataSourceIntf
| Constructor and Description |
|---|
DataSource(String aSourceName) |
public DataSource(String aSourceName)
public void setDataSource(String aDatabaseTypeClass, String aDatabaseName, String anIPAddr, String aPortNumber)
public void setPooledConnection(PooledConnection aPooled)
public PooledConnection getPooledConnection()
public void setPooledConnectionBal(PooledConnection aPooled)
public void setDataSource(String aDatabaseTypeClass, String aDatabaseName, String anIPAddr, String aPortNumber, String anIPAddrBak, String aPortNumberBak)
public DBAccess getDBAccess()
getDBAccess in interface DataSourceIntfpublic void setDBAccess(DBAccess aDBAccess)
setDBAccess in interface DataSourceIntfpublic int createConnectionPool(String aPool, String aLogin, String aPassword, int aMinPool, int aMaxPool, boolean aReadOnly)
aPool - String Pool NameaLogin - String User IdaPassword - String User PasswordaMinPool - int Min Number of ConnectionsaMaxPool - int Max Number of ConnectionsaReadOnly - boolean True = Readonlypublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String anUser, String aPass) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void shutdown()
public PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter aPrintWriter) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int aLoginTimeout)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic String getDatabaseClassName()
public String getDatabaseName()
public String getUserId()
public String getIpAddress()
public String getPortNumber()
public String getPassword()
public void copyDatabaseParams(DataSource aDataSource)
public boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2020. All rights reserved.