org.exolab.castor.jdo.drivers

Class PostgreSQLCallQuery

Implemented Interfaces:
PersistenceQuery

(package private) final class PostgreSQLCallQuery
extends java.lang.Object
implements PersistenceQuery

PersistenceQuery implementation for use with PostgreSQL stored functions returning instance, which can be fetched only through SELECT of fields of the instance.
Version:
$Revision: 5980 $ $Date: 2006-04-11 15:26:07 -0600 (Tue, 11 Apr 2006) $
Authors:
Rostislav Beloff
Oleg Nitz

Constructor Summary

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

Method Summary

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

Constructor Details

PostgreSQLCallQuery

(package private)  PostgreSQLCallQuery(String call,
                                       Class[] types,
                                       Class javaClass,
                                       String[] fields,
                                       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

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

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-2006. All rights reserved http://www.intalio.com