public final class PreparedQuery extends StatementCreator
StatementCreator for statements that create ResultSets
with specified type, concurrency and holdability.| Constructor and Description |
|---|
PreparedQuery(java.lang.String sql)
Creator for a statement which returns forward-only, read-only,
non-holdable result sets.
|
PreparedQuery(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
Creator for a statement which returns non-holdable result sets with
the specified type and concurrency.
|
PreparedQuery(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creator for a statement which returns result sets with the specified
type, concurrency and holdability.
|
public PreparedQuery(java.lang.String sql)
sql - the SQL text for the statementpublic PreparedQuery(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
sql - the SQL text for the statementresultSetType - the type of the result setresultSetConcurrency - the concurrency of the result setpublic PreparedQuery(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
sql - the SQL text for the statementresultSetType - the type of the result setresultSetConcurrency - the concurrency of the result setresultSetHoldability - the holdability of the result set