org.exolab.castor.jdo.drivers
Class MultiRSCallQuery

java.lang.Object
  extended byorg.exolab.castor.persist.spi.AbstractCallQuery
      extended byorg.exolab.castor.jdo.drivers.MultiRSCallQuery
All Implemented Interfaces:
PersistenceQuery

final class MultiRSCallQuery
extends AbstractCallQuery

PersistenceQuery implementation for CallableStatements that yield multiple ResultSets, like Sybase stored procedures.

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
(package private) MultiRSCallQuery(java.lang.String call, java.lang.Class[] types, java.lang.Class javaClass, java.lang.String[] fields, int[] sqlTypes)
          Creates an instance of this clas.
 
Method Summary
protected  void execute(java.lang.Object conn, org.exolab.castor.mapping.AccessMode accessMode)
           
protected  boolean nextRow()
           
 
Methods inherited from class org.exolab.castor.persist.spi.AbstractCallQuery
absolute, close, execute, fetch, getParameterCount, getParameterType, getResultType, nextIdentity, setParameter, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiRSCallQuery

MultiRSCallQuery(java.lang.String call,
                 java.lang.Class[] types,
                 java.lang.Class javaClass,
                 java.lang.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 Detail

execute

protected void execute(java.lang.Object conn,
                       org.exolab.castor.mapping.AccessMode accessMode)
                throws PersistenceException
Specified by:
execute in class AbstractCallQuery
Throws:
PersistenceException

nextRow

protected boolean nextRow()
                   throws java.sql.SQLException
Specified by:
nextRow in class AbstractCallQuery
Throws:
java.sql.SQLException


Copyright 2008 null. All Rights Reserved.