public class ShardingStatement extends AbstractStatementAdapter
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
ShardingStatement(ShardingConnection connection) |
ShardingStatement(ShardingConnection connection,
int resultSetType,
int resultSetConcurrency) |
ShardingStatement(ShardingConnection connection,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Modifier and Type | Method and Description |
---|---|
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) |
ResultSet |
getGeneratedKeys() |
ResultSet |
getResultSet() |
cancel, clearWarnings, close, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getRoutedStatements, getUpdateCount, getWarnings, isClosed, isPoolable, setEscapeProcessing, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
addBatch, clearBatch, closeOnCompletion, executeBatch, getFetchDirection, isCloseOnCompletion, setCursorName, setFetchDirection
isWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getLargeMaxRows, getLargeUpdateCount, getResultSetConcurrency, getResultSetHoldability, getResultSetType, setLargeMaxRows
isWrapperFor, unwrap
public ShardingStatement(ShardingConnection connection)
public ShardingStatement(ShardingConnection connection, int resultSetType, int resultSetConcurrency)
public ShardingStatement(ShardingConnection connection, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public ResultSet executeQuery(String sql) throws SQLException
SQLException
public int executeUpdate(String sql) throws SQLException
SQLException
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
SQLException
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
SQLException
public int executeUpdate(String sql, String[] columnNames) throws SQLException
SQLException
public boolean execute(String sql) throws SQLException
SQLException
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
SQLException
public boolean execute(String sql, int[] columnIndexes) throws SQLException
SQLException
public boolean execute(String sql, String[] columnNames) throws SQLException
SQLException
public ResultSet getGeneratedKeys() throws SQLException
SQLException
public ResultSet getResultSet() throws SQLException
SQLException
Copyright © 2018. All rights reserved.