public final class ShardingPreparedStatement extends AbstractShardingPreparedStatementAdapter
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
ShardingPreparedStatement(ShardingConnection connection,
String sql) |
ShardingPreparedStatement(ShardingConnection connection,
String sql,
int autoGeneratedKeys) |
ShardingPreparedStatement(ShardingConnection connection,
String sql,
int resultSetType,
int resultSetConcurrency) |
ShardingPreparedStatement(ShardingConnection connection,
String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
clearBatch() |
boolean |
execute() |
int[] |
executeBatch() |
ResultSet |
executeQuery() |
int |
executeUpdate() |
ResultSet |
getGeneratedKeys() |
ResultSet |
getResultSet() |
clearParameters, replaySetParameter, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getMetaData, getParameterMetaData, setArray, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRef, setRowId
cancel, clearWarnings, close, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getRoutedStatements, getUpdateCount, getWarnings, isClosed, isPoolable, setEscapeProcessing, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
addBatch, closeOnCompletion, getFetchDirection, isCloseOnCompletion, setCursorName, setFetchDirection
isWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeLargeUpdate, setObject, setObject
addBatch, cancel, clearWarnings, close, closeOnCompletion, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
isWrapperFor, unwrap
public ShardingPreparedStatement(ShardingConnection connection, String sql)
public ShardingPreparedStatement(ShardingConnection connection, String sql, int resultSetType, int resultSetConcurrency)
public ShardingPreparedStatement(ShardingConnection connection, String sql, int autoGeneratedKeys)
public ShardingPreparedStatement(ShardingConnection connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
public ResultSet executeQuery() throws SQLException
SQLException
public int executeUpdate() throws SQLException
SQLException
public boolean execute() throws SQLException
SQLException
public void clearBatch()
clearBatch
in interface Statement
clearBatch
in class AbstractUnsupportedOperationStatement
public void addBatch() throws SQLException
SQLException
public int[] executeBatch() throws SQLException
executeBatch
in interface Statement
executeBatch
in class AbstractUnsupportedOperationStatement
SQLException
public ResultSet getGeneratedKeys() throws SQLException
SQLException
public ResultSet getResultSet() throws SQLException
SQLException
Copyright © 2018. All rights reserved.