|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkr.co.hit.live.transaction.datasource.PooledDataSource
kr.co.hit.live.transaction.datasource.StandardPooledDataSource
public class StandardPooledDataSource
| Field Summary | |
|---|---|
protected ConnectionPoolDataSource |
cpds
PooledConnection 객체를 생성할 때 사용할 ConnectionPoolDataSource 객체
|
| Fields inherited from class kr.co.hit.live.transaction.datasource.PooledDataSource |
|---|
datasourceName, jdbcAutoCommit, jdbcDriver, jdbcPassword, jdbcUrl, jdbcUsername, poolMaxActive, poolMaxIdle, poolTimeToWait, readTimeout |
| Constructor Summary | |
|---|---|
StandardPooledDataSource(Properties prop)
|
|
| Method Summary | ||
|---|---|---|
protected Connection |
afterGetConnection(Connection con)
getConnection() 에서 Connection를 리턴하기 전에
호출되는 메소드이다. |
|
protected PooledConnection |
createPooledConnection()
새로운 PooledConnection 객체를 생성한다. |
|
int |
getLoginTimeout()
javax.sql.DataSource의 getLoginTimeout() Operation을 구현한다. |
|
PrintWriter |
getLogWriter()
javax.sql.DataSource의 getLogWriter() Operation을 구현한다. |
|
boolean |
isWrapperFor(Class<?> iface)
|
|
void |
setConnectionPoolDataSource(ConnectionPoolDataSource ds)
|
|
void |
setLoginTimeout(int seconds)
javax.sql.DataSource의 setLoginTimeout() Operation을 구현한다. |
|
void |
setLogWriter(PrintWriter out)
javax.sql.DataSource의 setLogWriter() Operation을 구현한다. |
|
|
unwrap(Class<T> iface)
|
|
| Methods inherited from class kr.co.hit.live.transaction.datasource.PooledDataSource |
|---|
clear, getConnection, getConnection, getDatasourceName, getPooledConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConnectionPoolDataSource cpds
PooledConnection 객체를 생성할 때 사용할 ConnectionPoolDataSource 객체
| Constructor Detail |
|---|
public StandardPooledDataSource(Properties prop)
| Method Detail |
|---|
public void setConnectionPoolDataSource(ConnectionPoolDataSource ds)
protected PooledConnection createPooledConnection()
throws SQLException
PooledDataSource
새로운 PooledConnection 객체를 생성한다. 하위 클래스에서 구현한다.
createPooledConnection in class PooledDataSourceSQLException
public PrintWriter getLogWriter()
throws SQLException
PooledDataSource
javax.sql.DataSource의 getLogWriter() Operation을 구현한다.
하위 클래스에서 구현한다.
getLogWriter in interface CommonDataSourcegetLogWriter in class PooledDataSourceSQLException - 데이터베이스 에러가 발생할 때
public int getLoginTimeout()
throws SQLException
PooledDataSource
javax.sql.DataSource의 getLoginTimeout() Operation을 구현한다.
하위 클래스에서 구현한다.
getLoginTimeout in interface CommonDataSourcegetLoginTimeout in class PooledDataSourceSQLException - 데이터베이스 에러가 발생할 때
public void setLogWriter(PrintWriter out)
throws SQLException
PooledDataSource
javax.sql.DataSource의 setLogWriter() Operation을 구현한다.
하위 클래스에서 구현한다.
setLogWriter in interface CommonDataSourcesetLogWriter in class PooledDataSourceout - 설정할 log writer 객체
SQLException - 데이터베이스 에러가 발생할 때
public void setLoginTimeout(int seconds)
throws SQLException
PooledDataSource
javax.sql.DataSource의 setLoginTimeout() Operation을 구현한다.
하위 클래스에서 구현한다.
setLoginTimeout in interface CommonDataSourcesetLoginTimeout in class PooledDataSourceseconds - 데이터베이스 로그인 최대 시간(초)
SQLException - 데이터베이스 에러가 발생할 때
protected Connection afterGetConnection(Connection con)
throws SQLException
PooledDataSource
getConnection() 에서 Connection를 리턴하기 전에
호출되는 메소드이다.
리턴하기 전에 Connection 객체에 Vendor 별로 고유한 설정이 필요한 경우 여기에 구현한다.
하위 클래스에서 구현한다.
afterGetConnection in class PooledDataSourcecon - 추가 설정을 할 connection 객체
SQLException
public boolean isWrapperFor(Class<?> iface)
throws SQLException
SQLException
public <T> T unwrap(Class<T> iface)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||