org.exolab.castor.jdo.drivers
Class OracleFactory
- PersistenceFactory
public class OracleFactory
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:14 $ Class | adjustSqlType(Class sqlType)- For INTEGER type ResultSet.getObject() returns BigDecimal:
dependent objects with integer identity cause type conversion error
(need to fix SimpleQueryExecutor).
|
PersistenceQuery | getCallQuery(String call, Class[] paramTypes, Class javaClass, String[] fields, int[] sqlTypes)- Needed to process OQL queries of "CALL" type (using stored procedure
call).
|
String | getFactoryName()- Returns the name of this factory.
|
QueryExpression | getQueryExpression()- Returns a new empty query expression suitable for the underlying
SQL engine.
|
Boolean | isDuplicateKeyException(Exception except)- Determine if the given SQLException is DuplicateKeyException
|
String | quoteName(String name)- Returns the quoted identifier suitable for preventing conflicts between
database identifiers and reserved keywords.
|
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).
- adjustSqlType in interface BaseFactory
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.
- getCallQuery in interface BaseFactory
call - Stored procedure call (without "{call")paramTypes - The types of the query parametersjavaClass - The Java class of the query resultsfields - The field namessqlTypes - The field SQL types
- null if this feature is not supported.
quoteName
public String quoteName(String name)
Returns the quoted identifier suitable for preventing conflicts between
database identifiers and reserved keywords.
- quoteName in interface PersistenceFactory
- quoteName in interface GenericFactory
name - The identifier (table, column, etc)
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com