org.mmbase.module.database
Interface MultiConnection
- All Known Implementing Classes:
- MultiConnectionImplementation
public interface MultiConnection
MMBase wraps java.sql.Connection. This interface is more or less that plus java.sql.Connection of
java 1.5. (See also MMB-1409).
|
Method Summary |
boolean |
checkAfterException()
|
void |
claim()
|
void |
clearWarnings()
|
void |
close()
|
void |
commit()
|
Statement |
createStatement()
|
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
Statement |
createStatement(int type,
int concurrency,
int holdability)
|
boolean |
getAutoCommit()
|
String |
getCatalog()
|
int |
getHoldability()
|
String |
getLastSQL()
|
DatabaseMetaData |
getMetaData()
|
MultiPool |
getParent()
|
Exception |
getStackTrace()
|
int |
getStartTime()
|
long |
getStartTimeMillis()
|
String |
getStateString()
|
int |
getTransactionIsolation()
|
Map<String,Class<?>> |
getTypeMap()
|
int |
getUsage()
|
SQLWarning |
getWarnings()
|
boolean |
isClosed()
|
boolean |
isReadOnly()
|
String |
nativeSQL(String query)
|
CallableStatement |
prepareCall(String sql)
|
CallableStatement |
prepareCall(String sql,
int i,
int y)
|
CallableStatement |
prepareCall(String sql,
int type,
int concurrency,
int holdability)
|
PreparedStatement |
prepareStatement(String sql)
|
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
|
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
|
PreparedStatement |
prepareStatement(String sql,
int i,
int y)
|
PreparedStatement |
prepareStatement(String sql,
int type,
int concurrency,
int holdability)
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
|
void |
realclose()
|
void |
release()
|
void |
releaseSavepoint(Savepoint savepoint)
|
void |
resetUsage()
|
void |
rollback()
|
void |
rollback(Savepoint savepoint)
|
void |
setAutoCommit(boolean enableAutoCommit)
|
void |
setCatalog(String catalog)
|
void |
setHoldability(int holdability)
|
void |
setLastSQL(String sql)
|
void |
setReadOnly(boolean readOnly)
|
Savepoint |
setSavepoint()
|
Savepoint |
setSavepoint(String name)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(Map<String,Class<?>> mp)
|
|
unwrap(Class<T> iface)
|
void |
wrap(Connection con)
|
setLastSQL
void setLastSQL(String sql)
getLastSQL
String getLastSQL()
getStackTrace
Exception getStackTrace()
getStateString
String getStateString()
resetUsage
void resetUsage()
claim
void claim()
getParent
MultiPool getParent()
createStatement
Statement createStatement()
throws SQLException
- Throws:
SQLException
createStatement
Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws SQLException
- Throws:
SQLException
createStatement
Statement createStatement(int type,
int concurrency,
int holdability)
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql)
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql,
int autoGeneratedKeys)
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql,
int[] columnIndexes)
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql,
String[] columnNames)
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql,
int type,
int concurrency,
int holdability)
throws SQLException
- Throws:
SQLException
prepareCall
CallableStatement prepareCall(String sql)
throws SQLException
- Throws:
SQLException
nativeSQL
String nativeSQL(String query)
throws SQLException
- Throws:
SQLException
setAutoCommit
void setAutoCommit(boolean enableAutoCommit)
throws SQLException
- Throws:
SQLException
getAutoCommit
boolean getAutoCommit()
throws SQLException
- Throws:
SQLException
commit
void commit()
throws SQLException
- Throws:
SQLException
rollback
void rollback()
throws SQLException
- Throws:
SQLException
close
void close()
throws SQLException
- Throws:
SQLException
isClosed
boolean isClosed()
throws SQLException
- Throws:
SQLException
getMetaData
DatabaseMetaData getMetaData()
throws SQLException
- Throws:
SQLException
setReadOnly
void setReadOnly(boolean readOnly)
throws SQLException
- Throws:
SQLException
isReadOnly
boolean isReadOnly()
throws SQLException
- Throws:
SQLException
setCatalog
void setCatalog(String catalog)
throws SQLException
- Throws:
SQLException
getCatalog
String getCatalog()
throws SQLException
- Throws:
SQLException
setTransactionIsolation
void setTransactionIsolation(int level)
throws SQLException
- Throws:
SQLException
getTransactionIsolation
int getTransactionIsolation()
throws SQLException
- Throws:
SQLException
getWarnings
SQLWarning getWarnings()
throws SQLException
- Throws:
SQLException
clearWarnings
void clearWarnings()
throws SQLException
- Throws:
SQLException
prepareCall
CallableStatement prepareCall(String sql,
int i,
int y)
throws SQLException
- Throws:
SQLException
setTypeMap
void setTypeMap(Map<String,Class<?>> mp)
throws SQLException
- Throws:
SQLException
getTypeMap
Map<String,Class<?>> getTypeMap()
throws SQLException
- Throws:
SQLException
prepareStatement
PreparedStatement prepareStatement(String sql,
int i,
int y)
throws SQLException
- Throws:
SQLException
setHoldability
void setHoldability(int holdability)
throws SQLException
- Throws:
SQLException
getHoldability
int getHoldability()
throws SQLException
- Throws:
SQLException
setSavepoint
Savepoint setSavepoint()
throws SQLException
- Throws:
SQLException
setSavepoint
Savepoint setSavepoint(String name)
throws SQLException
- Throws:
SQLException
rollback
void rollback(Savepoint savepoint)
throws SQLException
- Throws:
SQLException
releaseSavepoint
void releaseSavepoint(Savepoint savepoint)
throws SQLException
- Throws:
SQLException
prepareCall
CallableStatement prepareCall(String sql,
int type,
int concurrency,
int holdability)
throws SQLException
- Throws:
SQLException
checkAfterException
boolean checkAfterException()
throws SQLException
- Throws:
SQLException
realclose
void realclose()
throws SQLException
- Throws:
SQLException
release
void release()
getUsage
int getUsage()
getStartTime
int getStartTime()
getStartTimeMillis
long getStartTimeMillis()
unwrap
<T> T unwrap(Class<T> iface)
wrap
void wrap(Connection con)
MMBase 2.0-SNAPSHOT - null