|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatementPreparer
Contracting for preparing SQL statements
Method Summary | |
---|---|
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. |
Method Detail |
---|
PreparedStatement prepareStatement(String sql)
sql
- The SQL the statement to be prepared
PreparedStatement 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 ofStatement.RETURN_GENERATED_KEYS
Statement.NO_GENERATED_KEYS
Connection.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |