public class OracleFactory extends GenericFactory
PersistenceFactory for Oracle 7/8 driver.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FACTORY_NAME |
| Constructor and Description |
|---|
OracleFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
adjustSqlType(java.lang.Class sqlType)
For INTEGER type ResultSet.getObject() returns BigDecimal:
dependent objects with integer identity cause type conversion error
(need to fix SimpleQueryExecutor).
|
PersistenceQuery |
getCallQuery(java.lang.String call,
java.lang.Class[] paramTypes,
java.lang.Class javaClass,
java.lang.String[] fields,
int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure
call).
|
java.lang.String |
getFactoryName()
Returns the name of this factory.
|
QueryExpression |
getQueryExpression()
Returns a new empty query expression suitable for the underlying
SQL engine.
|
java.lang.Boolean |
isDuplicateKeyException(java.lang.Exception except)
Determine if the given SQLException is DuplicateKeyException
|
java.lang.String |
quoteName(java.lang.String name)
Returns the quoted identifier suitable for preventing conflicts between
database identifiers and reserved keywords.
|
doubleQuoteNamegetPersistence, supportsSetNullInWherepublic static final java.lang.String FACTORY_NAME
public java.lang.String getFactoryName()
PersistenceFactorygetFactoryName in interface PersistenceFactorygetFactoryName in class GenericFactoryPersistenceFactory.getFactoryName()public QueryExpression getQueryExpression()
PersistenceFactorygetQueryExpression in interface PersistenceFactorygetQueryExpression in class GenericFactoryPersistenceFactory.getQueryExpression()public java.lang.Boolean isDuplicateKeyException(java.lang.Exception except)
GenericFactoryisDuplicateKeyException in interface PersistenceFactoryisDuplicateKeyException in class GenericFactoryPersistenceFactory.isDuplicateKeyException(java.lang.Exception)public java.lang.String quoteName(java.lang.String name)
PersistenceFactoryquoteName in interface PersistenceFactoryquoteName in class GenericFactoryname - The identifier (table, column, etc)PersistenceFactory.quoteName(java.lang.String)public PersistenceQuery getCallQuery(java.lang.String call, java.lang.Class[] paramTypes, java.lang.Class javaClass, java.lang.String[] fields, int[] sqlTypes)
getCallQuery in class BaseFactorycall - 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 typespublic java.lang.Class adjustSqlType(java.lang.Class sqlType)
adjustSqlType in class BaseFactorysqlType - The correspondent Java class for the SQL type in mapping.xmlBaseFactory.adjustSqlType(java.lang.Class)Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com