org.exolab.castor.jdo.engine

Class SQLEngine.SQLQuery

static final class SQLEngine.SQLQuery extends Object implements PersistenceQuery

Constructor Summary
SQLQuery(SQLEngine engine, String sql, Class[] types)
Method Summary
booleanabsolute(int row)
use the jdbc 2.0 method to move to an absolute position in the resultset.
voidclose()
voidexecute(Object conn, AccessMode accessMode)
voidexecute(Object conn, AccessMode accessMode, boolean scrollable)
Objectfetch(Object[] fields, Object identity)
intgetParameterCount()
ClassgetParameterType(int index)
ClassgetResultType()
ObjectnextIdentity(Object identity)
voidsetParameter(int index, Object value)
intsize()
Uses the underlying db's cursors to most 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.

Constructor Detail

SQLQuery

SQLQuery(SQLEngine engine, String sql, Class[] types)

Method Detail

absolute

public boolean absolute(int row)
use the jdbc 2.0 method to move to an absolute position in the resultset.

close

public void close()

execute

public void execute(Object conn, AccessMode accessMode)

execute

public void execute(Object conn, AccessMode accessMode, boolean scrollable)

fetch

public Object fetch(Object[] fields, Object identity)

getParameterCount

public int getParameterCount()

getParameterType

public Class getParameterType(int index)

getResultType

public Class getResultType()

nextIdentity

public Object nextIdentity(Object identity)

setParameter

public void setParameter(int index, Object value)

size

public int size()
Uses the underlying db's cursors to most 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.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com