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, setConfig
public DataSource()
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
DataSource.getConnection()
public java.sql.Connection getConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
DataSource.getConnection(java.lang.String, java.lang.String)
public boolean isWrapperFor(java.lang.Class<?> targetClass) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(java.lang.Class<T> targetClass) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
Wrapper.unwrap(java.lang.Class)
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
CommonDataSource.getLoginTimeout()
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
CommonDataSource.getLogWriter()
public void setLoginTimeout(int timeout) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.CommonDataSource
java.sql.SQLException
CommonDataSource.setLoginTimeout(int)
public void setLogWriter(java.io.PrintWriter writer) throws java.sql.SQLException
setLogWriter
in interface javax.sql.CommonDataSource
java.sql.SQLException
CommonDataSource.setLogWriter(java.io.PrintWriter)
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
Referenceable.getReference()
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface javax.sql.CommonDataSource
java.sql.SQLFeatureNotSupportedException