| Access | Constructor and Description |
|---|---|
| public | ClientPreparedStatement42(Agent
The wrapped agent agent, ClientConnection The wrapped client connection connection, String The sql being executed sql, Section The section section, ClientPooledConnection The wrapped pooled connection cpc)The PreparedStatement used for JDBC 4.2 positioned update statements. |
| public | ClientPreparedStatement42(Agent
The wrapped agent agent, ClientConnection The wrapped client connection connection, String The sql being executed sql, int The type type, int The type of concurrency concurrency, int The holdability holdability, int The auto generated keys autoGeneratedKeys, String[] The column names columnNames, int[] the column indexes columnIndexes, ClientPooledConnection The wrapped pooled connection cpc)The PreparedStatementConstructor used for jdbc 4.2 prepared statements with scroll attributes. |
| Modifier and Type | Method and Description |
|---|---|
| public void | setObject(int
the first parameter is 1, the second is 2, ... parameterIndex, Object the object containing the input parameter value x, SQLType the SQL type to be sent to the database targetSqlType)Overrides default java. |
| public void | setObject(int
the first parameter is 1, the second is 2, ... parameterIndex, Object the object containing the input parameter value x, SQLType the SQL type to be sent to the database. The
scale argument may further qualify this type. targetSqlType, int for scaleOrLength)java.sql.JDBCType.DECIMAL
or java.sql.JDBCType.NUMERIC types,
this is the number of digits after the decimal point. For
Java Object types InputStream and Reader,
this is the length
of the data in the stream or reader. For all other types,
this value will be ignored.Overrides default java. Sets the value of the designated parameter with the given object. |
| ClientPreparedStatement42 | back to summary |
|---|---|
| public ClientPreparedStatement42(Agent agent, ClientConnection connection, String sql, Section section, ClientPooledConnection cpc) throws SqlException The PreparedStatement used for JDBC 4.2 positioned update statements. Called by material statement constructors. It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
| |
| ClientPreparedStatement42 | back to summary |
|---|---|
| public ClientPreparedStatement42(Agent agent, ClientConnection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes, ClientPooledConnection cpc) throws SqlException The PreparedStatementConstructor used for jdbc 4.2 prepared statements with scroll attributes. Called by material statement constructors. It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
| |
| setObject | back to summary |
|---|---|
| public void setObject(int parameterIndex, Object x, SQLType targetSqlType) throws SQLException Overrides default java. Doc from java. Sets the value of the designated parameter with the given object.
This method is similar to
The default implementation will throw
| |
| setObject | back to summary |
|---|---|
| public void setObject(int parameterIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException Overrides default java. Doc from java. Sets the value of the designated parameter with the given object.
If the second argument is an The given Java object will be converted to the given targetSqlType
before being sent to the database.
If the object has a custom mapping (is of a class implementing the
interface Note that this method may be used to pass database-specific abstract data types.
The default implementation will throw
| |