javax.sql.DataSource
implementations, taking care of the padding.
'Padding' in the context of this class means default implementations
for certain methods from the DataSource interface, such as
getLoginTimeout(), setLoginTimeout(int), and so forth.
DriverManagerDataSource
| Modifier and Type | Field and Description |
|---|---|
| protected final Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getLoginTimeout()
Implements javax. |
| public PrintWriter | |
| public Logger | getParentLogger()
Implements javax. |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. iface)Implements java. |
| public void | setLoginTimeout(int
the data source login time limit timeout)Implements javax. |
| public void | setLogWriter(PrintWriter
the new log writer; to disable logging, set to null pw)Implements javax. |
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. iface)Implements java. |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| AbstractDataSource | back to summary |
|---|---|
| public AbstractDataSource() | |
| getLoginTimeout | back to summary |
|---|---|
| public int getLoginTimeout() throws SQLException Implements javax. Returns 0, indicating the default system timeout is to be used.
| |
| getLogWriter | back to summary |
|---|---|
| public PrintWriter getLogWriter() Implements javax. LogWriter methods are not supported.
| |
| getParentLogger | back to summary |
|---|---|
| public Logger getParentLogger() Implements javax. Doc from javax. Return the parent Logger of all the Loggers used by this data source. This should be the Logger farthest from the root Logger that is still an ancestor of all of the Loggers used by this data source. Configuring this Logger will affect all of the log messages generated by the data source. In the worst case, this may be the root Logger. | |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) throws SQLException Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| setLoginTimeout | back to summary |
|---|---|
| public void setLoginTimeout(int timeout) throws SQLException Implements javax. Setting a login timeout is not supported.
| |
| setLogWriter | back to summary |
|---|---|
| public void setLogWriter(PrintWriter pw) throws SQLException Implements javax. LogWriter methods are not supported.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) throws SQLException Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |