public final class ShardingSphereConnection extends AbstractConnectionAdapter
| 构造器和说明 |
|---|
ShardingSphereConnection(String schema,
org.apache.shardingsphere.mode.manager.ContextManager contextManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setReadOnly(boolean readOnly) |
void |
setTransactionIsolation(int level) |
clearWarnings, getCatalog, getHoldability, getWarnings, setCatalog, setHoldability, setSchemaabort, createBlob, createClob, createNClob, createSQLXML, createStruct, getClientInfo, getClientInfo, getNetworkTimeout, getTypeMap, nativeSQL, prepareCall, prepareCall, prepareCall, releaseSavepoint, rollback, setClientInfo, setClientInfo, setNetworkTimeout, setSavepoint, setSavepoint, 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 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 © 2021 The Apache Software Foundation. All rights reserved.