|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.util.mordred.PoolConnEntry
An entry in a connection pool.
Field Summary | |
static int |
ACTIVE
|
static int |
AVAILABLE
|
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary | |
PoolConnEntry(JdbcDataSource container,
Connection conn,
int id)
Insert the method's description here. |
Method Summary | |
void |
clearWarnings()
Simple method to log any warnings on an entry (connection), and then clear them. |
void |
close()
|
void |
commit()
|
Statement |
createStatement()
|
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
Statement |
createStatement(int resulSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
protected void |
finalize()
Need to clean up the connection |
boolean |
getAutoCommit()
|
String |
getCatalog()
|
long |
getCreateDate()
Insert the method's description here. |
int |
getHoldability()
|
int |
getId()
Insert the method's description here. |
long |
getLastActivity()
Insert the method's description here. |
long |
getLockTime()
Insert the method's description here. |
DatabaseMetaData |
getMetaData()
|
int |
getStatus()
Insert the method's description here. |
String |
getString()
|
Throwable |
getTrace()
Insert the method's description here. |
int |
getTransactionIsolation()
|
Map |
getTypeMap()
|
SQLWarning |
getWarnings()
|
boolean |
isClosed()
Returns whether this entry is closed. |
boolean |
isReadOnly()
|
boolean |
lock()
Locks an entry for anybody else using it |
String |
nativeSQL(String sql)
|
CallableStatement |
prepareCall(String sql)
|
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
|
CallableStatement |
prepareCall(String sql,
int resulSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
PreparedStatement |
prepareStatement(String sql)
|
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
|
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
|
PreparedStatement |
prepareStatement(String sql,
int resulSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
|
void |
releaseSavepoint(Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(String catalog)
|
void |
setHoldability(int holdability)
|
void |
setReadOnly(boolean readOnly)
|
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String savepoint)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(Map map)
|
void |
unlock()
Resets flags on an entry for reuse in the pool |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AVAILABLE
public static final int ACTIVE
Constructor Detail |
public PoolConnEntry(JdbcDataSource container, Connection conn, int id)
conn
- java.sql.ConnectionMethod Detail |
public boolean lock() throws SQLException
SQLException
public void unlock()
public void clearWarnings()
clearWarnings
in interface Connection
SQLException
public long getCreateDate()
public int getId()
public long getLastActivity()
public long getLockTime()
public int getStatus()
public Throwable getTrace()
protected void finalize()
public String getString()
public void close() throws SQLException
close
in interface Connection
SQLException
public boolean isClosed() throws SQLException
isClosed
in interface Connection
SQLException
public final Statement createStatement() throws SQLException
createStatement
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement
in interface Connection
SQLException
public final CallableStatement prepareCall(String sql) throws SQLException
prepareCall
in interface Connection
SQLException
public final String nativeSQL(String sql) throws SQLException
nativeSQL
in interface Connection
SQLException
public final void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
SQLException
public final boolean getAutoCommit() throws SQLException
getAutoCommit
in interface Connection
SQLException
public final void commit() throws SQLException
commit
in interface Connection
SQLException
public final void rollback() throws SQLException
rollback
in interface Connection
SQLException
public final DatabaseMetaData getMetaData() throws SQLException
getMetaData
in interface Connection
SQLException
public final void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
SQLException
public final boolean isReadOnly() throws SQLException
isReadOnly
in interface Connection
SQLException
public final void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
SQLException
public final String getCatalog() throws SQLException
getCatalog
in interface Connection
SQLException
public final void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
SQLException
public final int getTransactionIsolation() throws SQLException
getTransactionIsolation
in interface Connection
SQLException
public final SQLWarning getWarnings() throws SQLException
getWarnings
in interface Connection
SQLException
public final Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement
in interface Connection
SQLException
public final CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall
in interface Connection
SQLException
public final Map getTypeMap() throws SQLException
getTypeMap
in interface Connection
SQLException
public final void setTypeMap(Map map) throws SQLException
setTypeMap
in interface Connection
SQLException
public final void setHoldability(int holdability) throws SQLException
setHoldability
in interface Connection
SQLException
public final int getHoldability() throws SQLException
getHoldability
in interface Connection
SQLException
public final Savepoint setSavepoint() throws SQLException
setSavepoint
in interface Connection
SQLException
public final Savepoint setSavepoint(String savepoint) throws SQLException
setSavepoint
in interface Connection
SQLException
public final void rollback(Savepoint savepoint) throws SQLException
rollback
in interface Connection
SQLException
public final void releaseSavepoint(Savepoint savepoint) throws SQLException
releaseSavepoint
in interface Connection
SQLException
public final Statement createStatement(int resulSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
createStatement
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql, int resulSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareStatement
in interface Connection
SQLException
public final CallableStatement prepareCall(String sql, int resulSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
prepareCall
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
prepareStatement
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
prepareStatement
in interface Connection
SQLException
public final PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
prepareStatement
in interface Connection
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |