|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.connection.DataSourceWrapper
Wraps a DataSource object in DataEngineDataSource interface
Constructor Summary | |
DataSourceWrapper(javax.sql.DataSource ds,
java.lang.String userID,
java.lang.String password)
DataSourceWrapper constructor |
Method Summary | |
java.sql.Connection |
getConnection()
Gets a connection out of the proxied datasource. |
java.sql.Connection |
getConnection(java.lang.String sql)
Gets a Connection which will be used to execute the specified SQL. |
java.sql.Connection |
getConnection(java.lang.String userID,
java.lang.String password)
getConnection method comment. |
int |
getLoginTimeout()
getLoginTimeout method comment. |
java.io.PrintWriter |
getLogWriter()
getLogWriter method comment. |
void |
setLoginTimeout(int arg1)
setLoginTimeout method comment. |
void |
setLogWriter(java.io.PrintWriter arg1)
setLogWriter method comment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSourceWrapper(javax.sql.DataSource ds, java.lang.String userID, java.lang.String password)
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String sql) throws DataEngineException
getConnection
in interface DataEngineDataSource
DataEngineException
public java.sql.Connection getConnection(java.lang.String userID, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLoginTimeout(int arg1) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter arg1) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |