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 DataSource
SQLException
public Connection getConnection(String userName, String passWord) throws SQLException
getConnection
in interface DataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter output) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> arg0) throws SQLException
unwrap
in interface Wrapper
SQLException
public Logger getParentLogger()
getParentLogger
in interface CommonDataSource
Copyright © 2015. All rights reserved.