public class DataSource extends CommonDataSourceProxy<javax.sql.DataSource> implements javax.sql.DataSource
| Constructor and Description |
|---|
DataSource()
Constructs a new DataSource
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password) |
int |
getLoginTimeout() |
java.io.PrintWriter |
getLogWriter() |
java.util.logging.Logger |
getParentLogger() |
javax.naming.Reference |
getReference() |
boolean |
isWrapperFor(java.lang.Class<?> targetClass) |
void |
setLoginTimeout(int timeout) |
void |
setLogWriter(java.io.PrintWriter writer) |
<T> T |
unwrap(java.lang.Class<T> targetClass) |
getCluster, getConfig, getProxy, setCluster, setConfigpublic DataSource()
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionDataSource.getConnection()public java.sql.Connection getConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionDataSource.getConnection(java.lang.String, java.lang.String)public boolean isWrapperFor(java.lang.Class<?> targetClass) throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionWrapper.isWrapperFor(java.lang.Class)public <T> T unwrap(java.lang.Class<T> targetClass) throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionWrapper.unwrap(java.lang.Class)public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionCommonDataSource.getLoginTimeout()public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionCommonDataSource.getLogWriter()public void setLoginTimeout(int timeout) throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionCommonDataSource.setLoginTimeout(int)public void setLogWriter(java.io.PrintWriter writer) throws java.sql.SQLException
setLogWriter in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionCommonDataSource.setLogWriter(java.io.PrintWriter)public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingExceptionReferenceable.getReference()public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger in interface javax.sql.CommonDataSourcejava.sql.SQLFeatureNotSupportedException