public interface StatementPreparer
Modifier and Type | Method and Description |
---|---|
Statement |
createStatement()
Create a statement.
|
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)
Prepare an INSERT statement, specifying how auto-generated (by the database) keys should be handled.
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
Prepare an INSERT statement, specifying columns which are auto-generated values to be returned.
|
Statement createStatement()
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)
Statement.getGeneratedKeys()
sql
- The INSERT SQLautoGeneratedKeys
- The autoGeneratedKeys flagConnection.prepareStatement(String, int)
PreparedStatement prepareStatement(String sql, String[] columnNames)
Statement.getGeneratedKeys()
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 © 2016 JBoss by Red Hat. All rights reserved.