Top Description Methods
org.apache.derby.iapi.jdbc

public Interface EnginePreparedStatement

extends PreparedStatement, EngineStatement
Known Direct Implementers
org.apache.derby.impl.jdbc.EmbedPreparedStatement, org.apache.derby.iapi.jdbc.BrokeredPreparedStatement
Imports
java.sql.SQLException, .PreparedStatement

Additional methods the embedded engine exposes on its PreparedStatement object implementations. An internal api only, mainly for the network server. Allows consistent interaction between embedded PreparedStatement and Brokered PreparedStatements. (DERBY-1015)

Method Summary

Modifier and TypeMethod and Description
public long
executeLargeUpdate()

Redeclares as abstract: java.sql.PreparedStatement.executeLargeUpdate.

Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement.

public long

Returns:

version counter
getVersionCounter
()

Get the version of the prepared statement.

Inherited from java.sql.PreparedStatement:
addBatchclearParametersexecuteexecuteQueryexecuteUpdategetMetaDatagetParameterMetaDatasetArraysetAsciiStreamsetAsciiStreamsetAsciiStreamsetBigDecimalsetBinaryStreamsetBinaryStreamsetBinaryStreamsetBlobsetBlobsetBlobsetBooleansetBytesetBytessetCharacterStreamsetCharacterStreamsetCharacterStreamsetClobsetClobsetClobsetDatesetDatesetDoublesetFloatsetIntsetLongsetNCharacterStreamsetNCharacterStreamsetNClobsetNClobsetNClobsetNStringsetNullsetNullsetObjectsetObjectsetObjectsetObjectsetObjectsetRefsetRowIdsetShortsetSQLXMLsetStringsetTimesetTimesetTimestampsetTimestampsetUnicodeStreamsetURL
Inherited from org.apache.derby.iapi.jdbc.EngineStatement:
closeOnCompletionexecuteLargeBatchexecuteLargeUpdateexecuteLargeUpdateexecuteLargeUpdateexecuteLargeUpdategetLargeMaxRowsgetLargeUpdateCountisCloseOnCompletionsetLargeMaxRows

Method Detail

executeLargeUpdateback to summary
public long executeLargeUpdate() throws SQLException

Redeclares as abstract: java.sql.PreparedStatement.executeLargeUpdate.

Doc from java.sql.PreparedStatement.executeLargeUpdate.

Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement.

This method should be used when the returned row count may exceed Integer#MAX_VALUE.

The default implementation will throw UnsupportedOperationException

Returns:long

either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing

Exceptions
SQLException:
if a database access error occurs; this method is called on a closed PreparedStatement or the SQL statement returns a ResultSet object
getVersionCounterback to summary
public long getVersionCounter() throws SQLException

Get the version of the prepared statement. If this has not been changed, the caller may assume that a recompilation has not taken place, i.e. meta-data are (also) unchanged.

Returns:long

version counter

Exceptions
SQLException:
on error