org.exolab.castor.jdo.drivers
Class OracleFactory
- PersistenceFactory
public class OracleFactory
Version:
- Assaf Arkin
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.
getFactoryName
public String getFactoryName()
Returns the name of this factory. A descriptive name that
indicates the type of supported database server or SQL syntax.
- getFactoryName in interface PersistenceFactory
- getFactoryName in interface GenericFactory
- The name of this factory
getQueryExpression
public QueryExpression getQueryExpression()
Returns a new empty query expression suitable for the underlying
SQL engine. The implementation will construct SQL query
statements in the preferred syntax.
- getQueryExpression in interface PersistenceFactory
- getQueryExpression in interface GenericFactory
- New empty query expression
isDuplicateKeyException
public Boolean isDuplicateKeyException(Exception except)
Determine if the given SQLException is DuplicateKeyException
- isDuplicateKeyException in interface PersistenceFactory
- isDuplicateKeyException in interface GenericFactory
- Boolean.TRUE means "yes",
Boolean.FALSE means "no",
null means "cannot determine"
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)
- The quoted identifier
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com