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: 1.1.1.1 $ $Date: 2003/03/03 07:08:14 $

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)
void
execute(Object conn, AccessMode accessMode, boolean scrollable)
Object
fetch(Object[] fields, Object identity)
int
getParameterCount()
Class
getParameterType(int index)
Class
getResultType()
Object
nextIdentity(Object 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)
            throws QueryException,
                   PersistenceException
Specified by:
execute 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(Object[] fields,
                    Object identity)
            throws ObjectNotFoundException,
                   PersistenceException
Specified by:
fetch in interface PersistenceQuery


getParameterCount

public int getParameterCount()
Specified by:
getParameterCount in interface PersistenceQuery


getParameterType

public Class getParameterType(int index)
            throws ArrayIndexOutOfBoundsException
Specified by:
getParameterType in interface PersistenceQuery


getResultType

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


nextIdentity

public Object nextIdentity(Object 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-2003. All rights reserved http://www.intalio.com