public class JAMonDataSource extends Object implements DataSource, Referenceable, Serializable
| Constructor and Description |
|---|
JAMonDataSource() |
JAMonDataSource(DataSource realDataSource) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String userName,
String passWord) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
Reference |
getReference() |
boolean |
isWrapperFor(Class<?> arg0) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter output) |
<T> T |
unwrap(Class<T> arg0) |
public JAMonDataSource(DataSource realDataSource)
public JAMonDataSource()
public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String userName, String passWord) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter output) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger()
getParentLogger in interface CommonDataSourceCopyright © 2015. All rights reserved.