public interface CommonDataSource
| Modifier and Type | Method and Description |
|---|---|
int |
getLoginTimeout()
While attempting to connect to a database, this method get the maximum
time in seconds that this data source can wait.
|
PrintWriter |
getLogWriter()
Retrieves a log writer which is a character output stream to which all
logging and tracing messages for this data source will be printed.
|
void |
setLoginTimeout(int seconds)
While attempting to connect to a database, this method set the maximum
time in seconds that this data source can wait.
|
void |
setLogWriter(PrintWriter out)
Set a log writer which is a character output stream to which all logging
and tracing messages for this data source will be printed.
|
int getLoginTimeout()
throws SQLException
SQLException - An exception threw when a data base access error occurs.PrintWriter getLogWriter() throws SQLException
SQLException - An exception threw when a data base access error occurs.void setLoginTimeout(int seconds)
throws SQLException
seconds - An integer value to indicate the maximum time.SQLException - An exception threw when a data base access error occurs.void setLogWriter(PrintWriter out) throws SQLException
out - The PrintWriter object for this DataSource.SQLException