|
2.00.01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
interbase.interclient.ConnectionPoolDataSource
A ConnectionPoolDataSource object is a factory for PooledConnection objects. An object that implements this interface will typically be registered with a JNDI service.
Constructor Summary | |
ConnectionPoolDataSource()
|
Method Summary | |
int |
getLoginTimeout()
Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
PrintWriter |
getLogWriter()
Get the log writer for this data source. |
javax.sql.PooledConnection |
getPooledConnection()
Attempt to establish a database connection. |
javax.sql.PooledConnection |
getPooledConnection(String user,
String password)
Attempt to establish a database connection. |
void |
setLoginTimeout(int seconds)
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
void |
setLogWriter(PrintWriter out)
Set the log writer for this data source. |
Constructor Detail |
public ConnectionPoolDataSource()
Method Detail |
public javax.sql.PooledConnection getPooledConnection() throws SQLException
public javax.sql.PooledConnection getPooledConnection(String user, String password) throws SQLException
user
- the database user on whose behalf the Connection is being madepassword
- the user's passwordpublic PrintWriter getLogWriter() throws SQLException
public void setLogWriter(PrintWriter out) throws SQLException
The log writer is a character output stream to which all logging and tracing messages for this data source object instance will be printed. This includes messages printed by the methods of this object, messages printed by methods of other objects manufactured by this object, and so on. Messages printed to a data source specific log writer are not printed to the log writer associated with the java.sql.Drivermanager class. When a data source object is created the log writer is initially null, in other words, logging is disabled.
out
- the new log writer; to disable, set to nullpublic void setLoginTimeout(int seconds) throws SQLException
seconds
- the data source login time limitpublic int getLoginTimeout() throws SQLException
|
2.00.01 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |