DataSource (Java SE 26 & JDK 26)
- All Superinterfaces:
CommonDataSource, Wrapper
-
Method Summary
Create a new
ConnectionBuilderinstanceAttempts to establish a connection with the data source that this
DataSourceobject represents.Attempts to establish a connection with the data source that this
DataSourceobject represents.intGets the maximum time in seconds that this data source can wait while attempting to connect to a database.
Retrieves the log writer for this
DataSourceobject.voidsetLoginTimeout(int seconds) Sets the maximum time in seconds that this data source will wait while attempting to connect to a database.
voidSets the log writer for this
DataSourceobject to the givenjava.io.PrintWriterobject.Methods declared in interface Wrapper
booleanReturns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
<T> TReturns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
-
Method Details
-
getConnection
-
getConnection
-
getLogWriter
-
setLogWriter
-
setLoginTimeout
-
getLoginTimeout
-
createConnectionBuilder
-