org.exolab.castor.jdo.drivers

Class OracleFactory

public class OracleFactory extends GenericFactory

PersistenceFactory for Oracle 7/8 driver.

Version: $Revision: 1.2 $ $Date: 2004/01/19 20:01:46 $

Author: Assaf Arkin

Method Summary
ClassadjustSqlType(Class sqlType)
For INTEGER type ResultSet.getObject() returns BigDecimal: dependent objects with integer identity cause type conversion error (need to fix SimpleQueryExecutor).
PersistenceQuerygetCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call).
StringgetFactoryName()
QueryExpressiongetQueryExpression()
BooleanisDuplicateKeyException(Exception except)
StringquoteName(String name)

Method Detail

adjustSqlType

public Class adjustSqlType(Class sqlType)
For INTEGER type ResultSet.getObject() returns BigDecimal: dependent objects with integer identity cause type conversion error (need to fix SimpleQueryExecutor).

getCallQuery

public PersistenceQuery getCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call). This feature is specific for JDO.

Parameters: call Stored procedure call (without "{call") paramTypes The types of the query parameters javaClass The Java class of the query results fields The field names sqlTypes The field SQL types

Returns: null if this feature is not supported.

getFactoryName

public String getFactoryName()

getQueryExpression

public QueryExpression getQueryExpression()

isDuplicateKeyException

public Boolean isDuplicateKeyException(Exception except)

quoteName

public String quoteName(String name)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com