|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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)
|
protected void |
finalize()
Need to clean up the connection |
boolean |
getAutoCommit()
|
String |
getCatalog()
|
long |
getCreateDate()
Insert the method's description here. |
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)
|
PreparedStatement |
prepareStatement(String sql)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
|
void |
rollback()
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(String catalog)
|
void |
setReadOnly(boolean readOnly)
|
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 |
Methods inherited from interface java.sql.Connection |
createStatement, getHoldability, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setHoldability, setSavepoint, setSavepoint |
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()
finalize
in class Object
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |