org.exolab.castor.persist.spi

Class AbstractCallQuery

Implemented Interfaces:
PersistenceQuery
Known Direct Subclasses:
MultiRSCallQuery, ReturnedRSCallQuery

public abstract class AbstractCallQuery
extends java.lang.Object
implements PersistenceQuery

Field Summary

protected String
_call
protected Identity
_lastIdentity
protected ResultSet
_rs
protected PreparedStatement
_stmt
protected Object[]
_values

Constructor Summary

AbstractCallQuery(String call, Class[] types, Class javaClass, int[] sqlTypes)

Method Summary

boolean
absolute(int row)
void
close()
protected abstract void
execute(Object conn, AccessMode accessMode)
void
execute(Object conn, AccessMode accessMode, boolean scrollable)
Object
fetch(ProposedEntity proposedObject)
int
getParameterCount()
Class
getParameterType(int index)
Class
getResultType()
Identity
nextIdentity(Identity identity)
protected abstract boolean
nextRow()
void
setParameter(int index, Object value)
int
size()

Field Details

_call

protected final String _call

_lastIdentity

protected Identity _lastIdentity

_rs

protected ResultSet _rs

_stmt

protected PreparedStatement _stmt

_values

protected final Object[] _values

Constructor Details

AbstractCallQuery

protected AbstractCallQuery(String call,
                            Class[] types,
                            Class javaClass,
                            int[] sqlTypes)

Method Details

absolute

public boolean absolute(int row)
            throws PersistenceException
Specified by:
absolute in interface PersistenceQuery

close

public void close()
Specified by:
close in interface PersistenceQuery

execute

protected abstract void execute(Object conn,
                                AccessMode accessMode)
            throws QueryException,
                   PersistenceException

execute

public void execute(Object conn,
                    AccessMode accessMode,
                    boolean scrollable)
            throws QueryException,
                   PersistenceException
Specified by:
execute in interface PersistenceQuery

fetch

public Object fetch(ProposedEntity proposedObject)
            throws PersistenceException
Specified by:
fetch in interface PersistenceQuery

getParameterCount

public int getParameterCount()

getParameterType

public Class getParameterType(int index)
            throws ArrayIndexOutOfBoundsException

getResultType

public Class getResultType()
Specified by:
getResultType in interface PersistenceQuery

nextIdentity

public Identity nextIdentity(Identity identity)
            throws PersistenceException
Specified by:
nextIdentity in interface PersistenceQuery

nextRow

protected abstract boolean nextRow()
            throws SQLException

setParameter

public void setParameter(int index,
                         Object value)
            throws ArrayIndexOutOfBoundsException,
                   IllegalArgumentException
Specified by:
setParameter in interface PersistenceQuery

size

public int size()
            throws PersistenceException
Specified by:
size in interface PersistenceQuery

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