public final class ShardingSphereConnection extends AbstractConnectionAdapter
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Constructor and Description |
|---|
ShardingSphereConnection(String schema,
org.apache.shardingsphere.mode.manager.ContextManager contextManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
Array |
createArrayOf(String typeName,
Object[] elements) |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
boolean |
getAutoCommit() |
DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
boolean |
isClosed() |
boolean |
isHoldTransaction()
Whether hold transaction or not.
|
boolean |
isReadOnly() |
boolean |
isValid(int timeout) |
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 resultSetType,
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 |
setReadOnly(boolean readOnly) |
Savepoint |
setSavepoint() |
Savepoint |
setSavepoint(String name) |
void |
setTransactionIsolation(int level) |
clearWarnings, getCatalog, getHoldability, getWarnings, setCatalog, setHoldability, setSchemaabort, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, getNetworkTimeout, getTypeMap, nativeSQL, prepareCall, prepareCall, prepareCall, setClientInfo, setClientInfo, setNetworkTimeout, setTypeMapisWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSchemaisWrapperFor, unwrappublic ShardingSphereConnection(String schema, org.apache.shardingsphere.mode.manager.ContextManager contextManager)
public boolean isHoldTransaction()
public DatabaseMetaData getMetaData()
public PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic Statement createStatement()
public Statement createStatement(int resultSetType, int resultSetConcurrency)
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public boolean getAutoCommit()
public void setAutoCommit(boolean autoCommit)
throws SQLException
SQLExceptionpublic void commit()
throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionpublic void rollback(Savepoint savepoint) throws SQLException
SQLExceptionpublic Savepoint setSavepoint(String name) throws SQLException
SQLExceptionpublic Savepoint setSavepoint() throws SQLException
SQLExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLException
SQLExceptionpublic int getTransactionIsolation()
throws SQLException
SQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
SQLExceptionpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
throws SQLException
SQLExceptionpublic boolean isValid(int timeout)
throws SQLException
SQLExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
SQLExceptionpublic boolean isClosed()
public void close()
throws SQLException
SQLExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.