public interface StatementPreparer
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
prepareQueryStatement(String sql,
boolean isCallable,
ScrollMode scrollMode)
Get a prepared statement for use in loading / querying.
|
PreparedStatement |
prepareStatement(String sql)
Prepare a statement.
|
PreparedStatement |
prepareStatement(String sql,
boolean isCallable)
Prepare a statement.
|
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
Get a prepared statement to use for inserting using JDBC3
getGeneratedKeys processing. |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
Get a prepared statement to use for inserting using JDBC3
getGeneratedKeys processing. |
PreparedStatement prepareStatement(String sql)
sql
- The SQL the statement to be preparedPreparedStatement prepareStatement(String sql, boolean isCallable)
sql
- The SQL the statement to be preparedisCallable
- Whether to prepare as a callable statement.PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
getGeneratedKeys
processing.sql
- - the SQL for the statement to be preparedautoGeneratedKeys
- - a flag indicating whether auto-generated keys should be returned; one ofConnection.prepareStatement(String, int)
PreparedStatement prepareStatement(String sql, String[] columnNames)
getGeneratedKeys
processing.sql
- - the SQL for the statement to be preparedcolumnNames
- The name of the columns to be returned in the generated keys result set.Connection.prepareStatement(String, String[])
PreparedStatement prepareQueryStatement(String sql, boolean isCallable, ScrollMode scrollMode)
sql
- The SQL the statement to be preparedisCallable
- Whether to prepare as a callable statement.scrollMode
- (optional) scroll mode to be applied to the resulting result set; may be null to indicate
no scrolling should be applied.Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.