org.exolab.castor.jdo.drivers

Class ReturnedRSCallQuery

Implemented Interfaces:
PersistenceQuery

(package private) final class ReturnedRSCallQuery
extends AbstractCallQuery

PersistenceQuery implementation for use with CallableStatements that return a ResultSet, like Oracle stored functions returning REF CURSOR.
Version:
$Revision: 7124 $ $Date: 2006-04-11 15:26:07 -0600 (Tue, 11 Apr 2006) $
Author:
Oleg Nitz

Field Summary

Fields inherited from class org.exolab.castor.persist.spi.AbstractCallQuery

_call, _lastIdentity, _rs, _stmt, _values

Constructor Summary

ReturnedRSCallQuery(String call, Class[] types, Class javaClass, String[] fields, int[] sqlTypes)
Creates an instance of this clas.

Method Summary

protected void
execute(Object conn, AccessMode accessMode)
protected boolean
nextRow()

Methods inherited from class org.exolab.castor.persist.spi.AbstractCallQuery

absolute, close, execute, execute, fetch, getParameterCount, getParameterType, getResultType, nextIdentity, nextRow, setParameter, size

Constructor Details

ReturnedRSCallQuery

(package private)  ReturnedRSCallQuery(String call,
                                       Class[] types,
                                       Class javaClass,
                                       String[] fields,
                                       int[] sqlTypes)
Creates an instance of this clas.
Parameters:
call - The SQL CALL statement to execute
types - Java types of the parameters
javaClass - Class type of the result
fields - ???
sqlTypes - SQL types of the parameters

Method Details

execute

protected void execute(Object conn,
                       AccessMode accessMode)
            throws PersistenceException
Overrides:
execute in interface AbstractCallQuery

nextRow

protected boolean nextRow()
            throws SQLException
Overrides:
nextRow in interface AbstractCallQuery

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com