public class ShardingStatement extends AbstractStatementAdapter
| 构造器和说明 |
|---|
ShardingStatement(ShardingConnection shardingConnection) |
ShardingStatement(ShardingConnection shardingConnection,
int resultSetType,
int resultSetConcurrency) |
ShardingStatement(ShardingConnection shardingConnection,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
Connection |
getConnection() |
protected com.google.common.base.Optional<GeneratedKey> |
getGeneratedKey() |
ResultSet |
getGeneratedKeys() |
ResultSet |
getResultSet() |
protected void |
markReturnGeneratedKeys() |
cancel, clearWarnings, close, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getRoutedStatements, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutaddBatch, clearBatch, closeOnCompletion, executeBatch, getFetchDirection, isCloseOnCompletion, setFetchDirectionisWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultSetConcurrency, getResultSetHoldability, getResultSetTypeisWrapperFor, unwrappublic ShardingStatement(ShardingConnection shardingConnection)
public ShardingStatement(ShardingConnection shardingConnection, int resultSetType, int resultSetConcurrency)
public 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
SQLExceptionprotected final void markReturnGeneratedKeys()
public ResultSet getGeneratedKeys() throws SQLException
SQLExceptionprotected final com.google.common.base.Optional<GeneratedKey> getGeneratedKey()
public ResultSet getResultSet() throws SQLException
SQLExceptionCopyright © 2017. All rights reserved.