- java.lang.Object
-
- org.nkjmlab.sorm4j.common.DriverManagerDataSource
-
- すべての実装されたインタフェース:
Wrapper,CommonDataSource,DataSource
public final class DriverManagerDataSource extends Object implements DataSource
A database connection source wrapped aDriverManager- 作成者:
- nkjm
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 static DriverManagerDataSourcecreate(String jdbcUrl, String username, String password)ConnectiongetConnection()ConnectiongetConnection(String username, String password)intgetLoginTimeout()PrintWritergetLogWriter()LoggergetParentLogger()booleanisWrapperFor(Class<?> iface)voidsetLoginTimeout(int seconds)voidsetLogWriter(PrintWriter out)<T> Tunwrap(Class<T> iface)-
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
インタフェースから継承されたメソッド javax.sql.CommonDataSource
createShardingKeyBuilder
-
インタフェースから継承されたメソッド javax.sql.DataSource
createConnectionBuilder
-
-
-
-
メソッドの詳細
-
create
public static DriverManagerDataSource create(String jdbcUrl, String username, String password)
-
getConnection
public Connection getConnection() throws SQLException
- 定義:
getConnectionインタフェース内DataSource- 例外:
SQLException
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- 定義:
getParentLoggerインタフェース内CommonDataSource- 例外:
SQLFeatureNotSupportedException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- 定義:
unwrapインタフェース内Wrapper- 例外:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- 定義:
isWrapperForインタフェース内Wrapper- 例外:
SQLException
-
getConnection
public Connection getConnection(String username, String password) throws SQLException
- 定義:
getConnectionインタフェース内DataSource- 例外:
SQLException
-
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- 定義:
getLogWriterインタフェース内CommonDataSource- 定義:
getLogWriterインタフェース内DataSource- 例外:
SQLException
-
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- 定義:
setLogWriterインタフェース内CommonDataSource- 定義:
setLogWriterインタフェース内DataSource- 例外:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException- 定義:
setLoginTimeoutインタフェース内CommonDataSource- 定義:
setLoginTimeoutインタフェース内DataSource- 例外:
SQLException
-
getLoginTimeout
public int getLoginTimeout() throws SQLException- 定義:
getLoginTimeoutインタフェース内CommonDataSource- 定義:
getLoginTimeoutインタフェース内DataSource- 例外:
SQLException
-
-