| Constructor and description | 
|---|
| NamedParameterStatement
                                (java.sql.Connection connection, java.lang.String query)Creates a NamedParameterStatement. | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | void | addBatch()Adds the current set of parameters as a batch entry. | 
|  | void | close()Closes the statement. | 
|  | boolean | execute()Executes the statement. | 
|  | int[] | executeBatch()Executes all of the batched statements. | 
|  | java.sql.ResultSet | executeQuery()Executes the statement, which must be a query. | 
|  | int | executeUpdate()Executes the statement, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement. | 
|  | java.sql.PreparedStatement | getStatement()Returns the underlying statement. | 
|  | void | setInt(java.lang.String name, int value)Sets a parameter. | 
|  | void | setLong(java.lang.String name, long value)Sets a parameter. | 
|  | void | setObject(java.lang.String name, java.lang.Object value)Sets a parameter. | 
|  | void | setString(java.lang.String name, java.lang.String value)Sets a parameter. | 
|  | void | setTimestamp(java.lang.String name, java.sql.Timestamp value)Sets a parameter. | 
| Methods inherited from class | Name | 
|---|---|
| class java.lang.Object | java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
Creates a NamedParameterStatement. Wraps a call to c. Connection#prepareStatement(java.lang.String).
connection -  the database connectionquery -       the parameterized queryAdds the current set of parameters as a batch entry.
Closes the statement.
Executes the statement.
Executes all of the batched statements.
See java.sql.Statement#executeBatch() for details.Executes the statement, which must be a query.
Executes the statement, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement.
Returns the underlying statement.
Sets a parameter.
name -   parameter namevalue -  parameter valueSets a parameter.
name -   parameter namevalue -  parameter valueSets a parameter.
name -   parameter namevalue -  parameter valueSets a parameter.
name -   parameter namevalue -  parameter valueSets a parameter.
name -   parameter namevalue -  parameter value