org.opensolaris.opengrok.jdbc
Class PreparedQuery

java.lang.Object
  extended by org.opensolaris.opengrok.jdbc.StatementCreator
      extended by org.opensolaris.opengrok.jdbc.PreparedQuery

public final class PreparedQuery
extends StatementCreator

A StatementCreator for statements that create ResultSets with specified type, concurrency and holdability.


Constructor Summary
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.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedQuery

public PreparedQuery(java.lang.String sql)
Creator for a statement which returns forward-only, read-only, non-holdable result sets.

Parameters:
sql - the SQL text for the statement

PreparedQuery

public 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.

Parameters:
sql - the SQL text for the statement
resultSetType - the type of the result set
resultSetConcurrency - the concurrency of the result set

PreparedQuery

public 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.

Parameters:
sql - the SQL text for the statement
resultSetType - the type of the result set
resultSetConcurrency - the concurrency of the result set
resultSetHoldability - the holdability of the result set