PreparedStatement that forwards calls off to a real
PreparedStatement obtained through the
BrokeredStatementControl#getRealPreparedStatement method.
This class implements the JDBC 4.1 interface.
| Modifier and Type | Field and Description |
|---|---|
| private final Object | generatedKeys
An Integer, an int array or a String array that specifies generated key columns, or null if there are no generated key columns. |
| pack-priv final String | sql
SQL used to create me. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addBatch()
Implements java. JDBC 2.0 Add a set of parameters to the batch. |
| public final void | clearParameters()
Implements java. In general, parameter values remain in force for repeated use of a Statement. |
| public void | close()
Overrides org. Implements java. Releases this |
| public PreparedStatement | Returns: a new PreparedStatementThe current connection conn, PreparedStatement The old statement oldStatement)Create a duplicate PreparedStatement to this, including state, from the passed in Connection. |
| public final boolean | execute()
Implements java. Executes the SQL statement in this |
| public long | executeLargeUpdate()
Implements org. Executes the SQL statement in this |
| public final ResultSet | Returns: a ResultSet that contains the data produced by the query; never nullImplements java. A prepared SQL query is executed and its ResultSet is returned. |
| public final int | Returns: either the row count for INSERT, UPDATE or DELETE; or 0 for SQL statements that return nothingImplements java. Execute a SQL INSERT, UPDATE or DELETE statement. |
| public final ResultSetMetaData | Returns: the description of a ResultSet's columnsImplements java. JDBC 2.0 The number, types and properties of a ResultSet's columns are provided by the getMetaData method. |
| public final ParameterMetaData | getParameterMetaData()
Implements java. Retrieves the number, types and properties of this
|
| pack-priv PreparedStatement | |
| public final Statement | getStatement()
Overrides org. Override the BrokeredStatement's getStatement() to always return a PreparedStatement. |
| public final long | getVersionCounter()
Implements org. Get the version of the prepared statement. |
| public final void | setArray(int
the first parameter is 1, the second is 2, ... i, Array an x)Array object that maps an SQL ARRAY valueImplements java. Sets the designated parameter to the given |
| public final void | setAsciiStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the ASCII parameter value x, int the number of bytes in the stream length)Implements java. We do this inefficiently and read it all in here. |
| public final void | setAsciiStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the Java input stream that contains the ASCII parameter value x)Implements java. Sets the designated parameter to the given input stream. |
| public final void | setAsciiStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the ASCII parameter value x, long the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public final void | setBigDecimal(int
the first parameter is 1, the second is 2, ... parameterIndex, BigDecimal the parameter value x)Implements java. Set a parameter to a java.math.BigDecimal value. |
| public final void | setBinaryStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the binary parameter value x, int the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public void | setBinaryStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the binary parameter value x)Implements java. Sets the designated parameter to the given input stream. |
| public final void | setBinaryStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the binary parameter value x, long the number of bytes in the stream length)Implements java. Sets the designated parameter to the given input stream, which will have the specified number of bytes. |
| public final void | setBlob(int
the first parameter is 1, the second is 2, ... i, Blob a x)Blob object that maps an SQL BLOB valueImplements java. Sets the designated parameter to the given |
| public final void | setBlob(int
index of the first parameter is 1,
the second is 2, ... parameterIndex, InputStream An object that contains the data to set the parameter
value to. inputStream, long the number of bytes in the parameter data. length)Implements java. Sets the designated parameter to a |
| public final void | setBlob(int
index of the first parameter is 1,
the second is 2, ... parameterIndex, InputStream an object that contains the data to set the parameter
value to. inputStream)Implements java. Sets the designated parameter to a |
| public final void | setBoolean(int
the first parameter is 1, the second is 2, ... parameterIndex, boolean the parameter value x)Implements java. Set a parameter to a Java boolean value. |
| public final void | setByte(int
the first parameter is 1, the second is 2, ... parameterIndex, byte the parameter value x)Implements java. Set a parameter to a Java byte value. |
| public final void | setBytes(int
the first parameter is 1, the second is 2, ... parameterIndex, byte[] the parameter value x)Implements java. Set a parameter to a Java array of bytes. |
| public final void | setCharacterStream(int
the first parameter is 1, the second is 2, ... parameterIndex, Reader the reader, int java.io.Reader object that contains the
Unicode datathe number of characters in the stream length)Implements java. Sets the designated parameter to the given |
| public void | setCharacterStream(int
the first parameter is 1, the second is 2, ... parameterIndex, Reader the reader)java.io.Reader object that contains the
Unicode dataImplements java. Sets the designated parameter to the given |
| public final void | setCharacterStream(int
the first parameter is 1, the second is 2, ... parameterIndex, Reader the java Reader which contains the UNICODE value x, long the number of bytes in the stream length)Implements java. Sets the designated parameter to the given Reader, which will have the specified number of bytes. |
| public final void | setClob(int
the first parameter is 1, the second is 2, ... i, Clob a x)Clob object that maps an SQL CLOB valueImplements java. Sets the designated parameter to the given |
| public final void | setClob(int
index of the first parameter is 1, the second is 2, ... parameterIndex, Reader An object that contains the data to set the parameter value to. reader, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public final void | setClob(int
the first parameter is 1, the second is 2, ... parameterIndex, Reader an object that contains the data to set the parameter value
to. reader)Implements java. Sets the designated parameter to a |
| public final void | setDate(int
the first parameter is 1, the second is 2, ... parameterIndex, Date the parameter value x)Implements java. Set a parameter to a java.sql.Date value. |
| public final void | setDate(int
the first parameter is 1, the second is 2, ... i, Date the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the dateImplements java. Sets the designated parameter to the given |
| public final void | setDouble(int
the first parameter is 1, the second is 2, ... parameterIndex, double the parameter value x)Implements java. Set a parameter to a Java double value. |
| public final void | setFloat(int
the first parameter is 1, the second is 2, ... parameterIndex, float the parameter value x)Implements java. Set a parameter to a Java float value. |
| public final void | setInt(int
the first parameter is 1, the second is 2, ... parameterIndex, int the parameter value x)Implements java. Set a parameter to a Java int value. |
| public final void | setLong(int
the first parameter is 1, the second is 2, ... parameterIndex, long the parameter value x)Implements java. Set a parameter to a Java long value. |
| public final void | setNCharacterStream(int
of the first parameter is 1, the second is 2, ... parameterIndex, Reader the parameter value value)Implements java. Sets the designated parameter to a |
| public final void | setNCharacterStream(int
of the first parameter is 1, the second is 2, ... index, Reader the parameter value value, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public final void | setNClob(int
of the first parameter is 1, the second is 2, ... index, NClob the parameter value value)Implements java. Sets the designated parameter to a |
| public final void | setNClob(int
index of the first parameter is 1, the second is 2, ... parameterIndex, Reader An object that contains the data to set the parameter value to. reader)Implements java. Sets the designated parameter to a |
| public final void | setNClob(int
index of the first parameter is 1, the second is 2, ... parameterIndex, Reader An object that contains the data to set the parameter value to. reader, long the number of characters in the parameter data. length)Implements java. Sets the designated parameter to a |
| public final void | setNString(int
of the first parameter is 1, the second is 2, ... index, String the parameter value value)Implements java. Sets the designated parameter to the given |
| public final void | setNull(int
the first parameter is 1, the second is 2, ... parameterIndex, int SQL type code defined by java.sql.Types sqlType)Implements java. Set a parameter to SQL NULL. |
| public final void | setNull(int
the first parameter is 1, the second is 2, ... parameterIndex, int SQL type code defined by java.sql.Types sqlType, String the fully-qualified name of an SQL user-defined type;
ignored if the parameter is not a user-defined type or REF typeName)Implements java. Set a parameter to SQL NULL. |
| public final void | setObject(int
The first parameter is 1, the second is 2, ... parameterIndex, Object The object containing the input parameter value x, int The SQL type (as defined in java.sql.Types) to be
sent to the database. The scale argument may further qualify this type. targetSqlType, int For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types
this is the number of digits after the decimal. For all other
types this value will be ignored, scale)Implements java. The interface says that the type of the Object parameter must be compatible with the type of the targetSqlType. |
| public final void | setObject(int
the first parameter is 1, the second is 2, ... parameterIndex, Object the object containing the input parameter value x, int the SQL type (as defined in java.sql.Types) to be
sent to the database targetSqlType)Implements java. This method is like setObject above, but assumes a scale of zero. |
| public final void | setObject(int
The first parameter is 1, the second is 2, ... parameterIndex, Object The object containing the input parameter value x)Implements java. Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
| public final void | setRef(int
the first parameter is 1, the second is 2, ... i, Ref an SQL x)REF valueImplements java. Sets the designated parameter to the given
|
| public final void | setRowId(int
the first parameter is 1, the second is 2, ... parameterIndex, RowId the parameter value x)Implements java. Sets the designated parameter to the given |
| public final void | setShort(int
the first parameter is 1, the second is 2, ... parameterIndex, short the parameter value x)Implements java. Set a parameter to a Java short value. |
| public final void | setSQLXML(int
index of the first parameter is 1, the second is 2, ... parameterIndex, SQLXML a xmlObject)SQLXML object that maps an SQL XML valueImplements java. Sets the designated parameter to the given |
| public final void | setString(int
the first parameter is 1, the second is 2, ... parameterIndex, String the parameter value x)Implements java. Set a parameter to a Java String value. |
| public final void | setTime(int
the first parameter is 1, the second is 2, ... parameterIndex, Time the parameter value x)Implements java. Set a parameter to a java.sql.Time value. |
| public final void | setTime(int
the first parameter is 1, the second is 2, ... i, Time the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the timeImplements java. Sets the designated parameter to the given |
| public final void | setTimestamp(int
the first parameter is 1, the second is 2, ... parameterIndex, Timestamp the parameter value x)Implements java. Set a parameter to a java.sql.Timestamp value. |
| public final void | setTimestamp(int
the first parameter is 1, the second is 2, ... i, Timestamp the parameter value x, Calendar the cal)Calendar object the driver will use
to construct the timestampImplements java. Sets the designated parameter to the given |
| public final void | setUnicodeStream(int
the first parameter is 1, the second is 2, ... parameterIndex, InputStream the java input stream which contains the
UNICODE parameter value x, int the number of bytes in the stream length)Implements java.
Deprecated
We do this inefficiently and read it all in here. |
| public final void | setURL(int
the first parameter is 1, the second is 2, ... i, URL the x)java.net.URL object to be setImplements java. Sets the designated parameter to the given |