public class ShardingStatement extends AbstractStatementAdapter
| 构造器和说明 |
|---|
ShardingStatement(ShardingConnection shardingConnection,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
clearRouteContext() |
protected void |
clearRouteStatements() |
boolean |
execute(String sql) |
boolean |
execute(String sql,
int autoGeneratedKeys) |
boolean |
execute(String sql,
int[] columnIndexes) |
boolean |
execute(String sql,
String[] columnNames) |
ResultSet |
executeQuery(String sql) |
int |
executeUpdate(String sql) |
int |
executeUpdate(String sql,
int autoGeneratedKeys) |
int |
executeUpdate(String sql,
int[] columnIndexes) |
int |
executeUpdate(String sql,
String[] columnNames) |
protected Statement |
generateStatement(Connection connection,
String sql) |
Connection |
getConnection() |
ResultSet |
getGeneratedKeys() |
ResultSet |
getResultSet() |
Collection<? extends Statement> |
getRoutedStatements()
获取路由的静态语句对象集合.
|
protected Statement |
getStatement(Connection connection,
String sql) |
cancel, clearWarnings, close, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutaddBatch, clearBatch, closeOnCompletion, executeBatch, getFetchDirection, isCloseOnCompletion, setFetchDirectionisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, getResultSetConcurrency, getResultSetHoldability, getResultSetType, setLargeMaxRowsisWrapperFor, unwrappublic ShardingStatement(ShardingConnection shardingConnection, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public Connection getConnection() throws SQLException
SQLExceptionpublic ResultSet executeQuery(String sql) throws SQLException
SQLExceptionpublic int executeUpdate(String sql) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic int executeUpdate(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic boolean execute(String sql) throws SQLException
SQLExceptionpublic boolean execute(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic boolean execute(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic boolean execute(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic final ResultSet getGeneratedKeys() throws SQLException
getGeneratedKeys 在接口中 StatementgetGeneratedKeys 在类中 AbstractStatementAdapterSQLExceptionprotected void clearRouteContext()
throws SQLException
SQLExceptionprotected Statement getStatement(Connection connection, String sql) throws SQLException
SQLExceptionprotected Statement generateStatement(Connection connection, String sql) throws SQLException
SQLExceptionpublic ResultSet getResultSet() throws SQLException
SQLExceptionprotected void clearRouteStatements()
public Collection<? extends Statement> getRoutedStatements()
AbstractStatementAdaptergetRoutedStatements 在类中 AbstractStatementAdapterCopyright © 2016. All rights reserved.