|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.dbpool.CmsConnection
A connection (session) with a specific database.
Connection| Field Summary |
| Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Method Summary | |
void |
clearWarnings()
|
void |
close()
This method don't closes this connection. |
void |
commit()
|
Statement |
createStatement()
Creates a new CmsStatement from the pool. |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
Creates a new CmsStatement from the pool. |
Statement |
createStatement(int param,
int param1,
int param2)
|
protected void |
finalize()
This method calls close, to put the connection back to the pool. |
boolean |
getAutoCommit()
|
String |
getCatalog()
|
int |
getHoldability()
|
DatabaseMetaData |
getMetaData()
|
int |
getTransactionIsolation()
|
Map |
getTypeMap()
|
SQLWarning |
getWarnings()
|
boolean |
isClosed()
Finds out, if this connection was closed. |
boolean |
isReadOnly()
|
String |
nativeSQL(String sql)
|
CallableStatement |
prepareCall(String sql)
Creates a new CmsPreparedStatement from the pool. |
CallableStatement |
prepareCall(String sql,
int a,
int b)
Creates a new CmsPreparedStatement from the pool. |
CallableStatement |
prepareCall(String str,
int param,
int param2,
int param3)
|
PreparedStatement |
prepareStatement(String sql)
Creates a new CmsPreparedStatement from the pool. |
PreparedStatement |
prepareStatement(String str,
int param)
|
PreparedStatement |
prepareStatement(String str,
int[] values)
|
PreparedStatement |
prepareStatement(String sql,
int a,
int b)
Creates a new CmsPreparedStatement from the pool. |
PreparedStatement |
prepareStatement(String str,
int param,
int param2,
int param3)
|
PreparedStatement |
prepareStatement(String str,
String[] str1)
|
void |
releaseSavepoint(Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(String catalog)
|
void |
setHoldability(int param)
|
void |
setReadOnly(boolean readOnly)
|
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String str)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(Map map)
|
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public String nativeSQL(String sql)
throws SQLException
nativeSQL in interface ConnectionSQLException
public void setAutoCommit(boolean autoCommit)
throws SQLException
setAutoCommit in interface ConnectionSQLException
public boolean getAutoCommit()
throws SQLException
getAutoCommit in interface ConnectionSQLException
public void commit()
throws SQLException
commit in interface ConnectionSQLException
public void rollback()
throws SQLException
rollback in interface ConnectionSQLException
public void rollback(Savepoint savepoint)
throws SQLException
rollback in interface ConnectionSQLException
public DatabaseMetaData getMetaData()
throws SQLException
getMetaData in interface ConnectionSQLException
public void setReadOnly(boolean readOnly)
throws SQLException
setReadOnly in interface ConnectionSQLException
public boolean isReadOnly()
throws SQLException
isReadOnly in interface ConnectionSQLException
public void setCatalog(String catalog)
throws SQLException
setCatalog in interface ConnectionSQLException
public String getCatalog()
throws SQLException
getCatalog in interface ConnectionSQLException
public void setTransactionIsolation(int level)
throws SQLException
setTransactionIsolation in interface ConnectionSQLException
public int getTransactionIsolation()
throws SQLException
getTransactionIsolation in interface ConnectionSQLException
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface ConnectionSQLException
public void clearWarnings()
throws SQLException
clearWarnings in interface ConnectionSQLException
public void setTypeMap(Map map)
throws SQLException
setTypeMap in interface ConnectionSQLException
public Map getTypeMap()
throws SQLException
getTypeMap in interface ConnectionSQLException
public Statement createStatement()
throws SQLException
createStatement in interface ConnectionSQLException
public Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws SQLException
createStatement in interface ConnectionSQLException
public Statement createStatement(int param,
int param1,
int param2)
throws SQLException
createStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String sql,
int a,
int b)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String str,
int param)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String str,
int[] values)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String str,
String[] str1)
throws SQLException
prepareStatement in interface ConnectionSQLException
public PreparedStatement prepareStatement(String str,
int param,
int param2,
int param3)
throws SQLException
prepareStatement in interface ConnectionSQLException
public CallableStatement prepareCall(String sql)
throws SQLException
prepareCall in interface ConnectionSQLException
public CallableStatement prepareCall(String sql,
int a,
int b)
throws SQLException
prepareCall in interface ConnectionSQLException
public CallableStatement prepareCall(String str,
int param,
int param2,
int param3)
throws SQLException
prepareCall in interface ConnectionSQLException
public boolean isClosed()
throws SQLException
isClosed in interface ConnectionSQLException
public void close()
throws SQLException
close in interface ConnectionSQLException
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic String toString()
toString in class Object
public int getHoldability()
throws SQLException
getHoldability in interface ConnectionSQLException
public void releaseSavepoint(Savepoint savepoint)
throws SQLException
releaseSavepoint in interface ConnectionSQLException
public void setHoldability(int param)
throws SQLException
setHoldability in interface ConnectionSQLException
public Savepoint setSavepoint()
throws SQLException
setSavepoint in interface ConnectionSQLException
public Savepoint setSavepoint(String str)
throws SQLException
setSavepoint in interface ConnectionSQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||