org.exolab.castor.jdo.engine
Class SQLQuery
java.lang.Object
org.exolab.castor.jdo.engine.SQLQuery
- PersistenceQuery
public final class SQLQuery
extends java.lang.Object
$Revision: 6230 $ $Date: 2006-04-11 15:26:07 -0600 (Tue, 11 Apr 2006) $
SQLQuery
(package private) SQLQuery(SQLEngine engine,
PersistenceFactory factory,
String sql,
Class[] types,
boolean isCallSql)
Creates an instance of SQLQuery.
engine
- SQLEngine instancesql
- The SQL statement to executetypes
- Types of the class used.isCallSql
- true if the SQL is issued as part of a CALL SQL statement.
absolute
public boolean absolute(int row)
throws PersistenceException
Move to an absolute position within a ResultSet.
use the jdbc 2.0 method to move to an absolute position in the
resultset.
- absolute in interface PersistenceQuery
- True if the move was successful.
setParameter
public void setParameter(int index,
Object value)
throws ArrayIndexOutOfBoundsException,
IllegalArgumentException
- setParameter in interface PersistenceQuery
size
public int size()
throws PersistenceException
Uses the underlying db's cursors to move to the last row in the
result set, get the row number via getRow(), then move back to
where ever the user was positioned in the resultset.
- size in interface PersistenceQuery
- The size of the current result set.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com