public class DataSourceDeployer extends Deployer implements ShutdownHook, DataSource
| Constructor and Description |
|---|
DataSourceDeployer() |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setDriver(String driver) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setName(String name) |
void |
setNewConnectionSql(String newConnectionSql) |
void |
setPass(String pass) |
void |
setTranscationManagerName(String transcationManagerName) |
void |
setUrl(String url) |
void |
setUser(String user) |
void |
shutdown() |
<T> T |
unwrap(Class<T> iface) |
getContext, getKernel, setContextpublic void setTranscationManagerName(String transcationManagerName)
public void setName(String name)
public void setDriver(String driver)
public void setUrl(String url)
public void setUser(String user)
public void setPass(String pass)
public void setNewConnectionSql(String newConnectionSql)
public void deploy()
public void shutdown()
shutdown in interface ShutdownHookpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password)
getConnection in interface DataSourcepublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger()
getParentLogger in interface CommonDataSourceCopyright © 2008–2015 Mycontainer Team. All rights reserved.