public final class ShardingSpherePreparedStatement extends AbstractPreparedStatementAdapter
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO| Constructor and Description |
|---|
ShardingSpherePreparedStatement(ShardingSphereConnection connection,
String sql) |
ShardingSpherePreparedStatement(ShardingSphereConnection connection,
String sql,
int autoGeneratedKeys) |
ShardingSpherePreparedStatement(ShardingSphereConnection connection,
String sql,
int resultSetType,
int resultSetConcurrency) |
ShardingSpherePreparedStatement(ShardingSphereConnection 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() |
int |
getResultSetConcurrency() |
int |
getResultSetHoldability() |
int |
getResultSetType() |
Collection<PreparedStatement> |
getRoutedStatements() |
boolean |
isAccumulate() |
clearParameters, replaySetParameter, setArray, 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, setURLexecute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getMetaData, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRef, setRowIdcancel, clearWarnings, close, getExecutor, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getStatementManager, getUpdateCount, getWarnings, handleExceptionInTransaction, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutaddBatch, closeOnCompletion, isCloseOnCompletion, setCursorNameisWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteLargeUpdate, getParameterMetaData, setObject, setObjectaddBatch, cancel, clearWarnings, close, closeOnCompletion, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getFetchDirection, getFetchSize, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeoutisWrapperFor, unwrappublic ShardingSpherePreparedStatement(ShardingSphereConnection connection, String sql) throws SQLException
SQLExceptionpublic ShardingSpherePreparedStatement(ShardingSphereConnection connection, String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionpublic ShardingSpherePreparedStatement(ShardingSphereConnection connection, String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic ShardingSpherePreparedStatement(ShardingSphereConnection connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionpublic ResultSet executeQuery() throws SQLException
SQLExceptionpublic int executeUpdate()
throws SQLException
SQLExceptionpublic boolean execute()
throws SQLException
SQLExceptionpublic ResultSet getResultSet() throws SQLException
SQLExceptionpublic ResultSet getGeneratedKeys() throws SQLException
SQLExceptionpublic void addBatch()
public int[] executeBatch()
throws SQLException
executeBatch in interface StatementexecuteBatch in class AbstractUnsupportedOperationStatementSQLExceptionpublic void clearBatch()
throws SQLException
clearBatch in interface StatementclearBatch in class AbstractUnsupportedOperationStatementSQLExceptionpublic int getResultSetType()
public int getResultSetConcurrency()
public int getResultSetHoldability()
public boolean isAccumulate()
isAccumulate in class AbstractStatementAdapterpublic Collection<PreparedStatement> getRoutedStatements()
getRoutedStatements in class AbstractStatementAdapterCopyright © 2022 The Apache Software Foundation. All rights reserved.