public class TenantDataSource extends Object implements DataSource
TenantDatabase.getDataSource()
からテナントデータソースを取得し、そのデータソースをラップしたクラスです。コンストラクタと説明 |
---|
TenantDataSource() |
修飾子とタイプ | メソッドと説明 |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
public Connection getConnection() throws SQLException
getConnection
インタフェース内 DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
インタフェース内 DataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
インタフェース内 CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
インタフェース内 CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
インタフェース内 CommonDataSource
SQLFeatureNotSupportedException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
インタフェース内 Wrapper
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
インタフェース内 CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
インタフェース内 CommonDataSource
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
インタフェース内 Wrapper
SQLException
Copyright © 2012 NTT DATA INTRAMART CORPORATION