Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.exolab.castor.jdo.engine.BaseFactory
org.exolab.castor.jdo.drivers.GenericFactory
org.exolab.castor.jdo.drivers.OracleFactory
public class OracleFactory
extends GenericFactory
PersistenceFactory
for Oracle 7/8 driver.
Field Summary | |
static String |
Method Summary | |
Class |
|
PersistenceQuery |
|
String | |
QueryExpression | |
Boolean |
|
String |
|
Methods inherited from class org.exolab.castor.jdo.drivers.GenericFactory | |
doubleQuoteName , getFactoryName , getQueryExpression , isDuplicateKeyException , quoteName |
Methods inherited from class org.exolab.castor.jdo.engine.BaseFactory | |
adjustSqlType , getCallQuery , getPersistence , supportsSetNullInWhere |
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).
- Overrides:
- adjustSqlType in interface BaseFactory
- See Also:
org.exolab.castor.jdo.engine.BaseFactory.adjustSqlType(java.lang.Class)
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.
- Overrides:
- getCallQuery in interface BaseFactory
- Parameters:
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
- Returns:
- null if this feature is not supported.
public String getFactoryName()
- Specified by:
- getFactoryName in interface PersistenceFactory
- Overrides:
- getFactoryName in interface GenericFactory
- See Also:
PersistenceFactory.getFactoryName()
public QueryExpression getQueryExpression()
- Specified by:
- getQueryExpression in interface PersistenceFactory
- Overrides:
- getQueryExpression in interface GenericFactory
public Boolean isDuplicateKeyException(Exception except)
- Specified by:
- isDuplicateKeyException in interface PersistenceFactory
- Overrides:
- isDuplicateKeyException in interface GenericFactory
- See Also:
org.exolab.castor.persist.spi.PersistenceFactory.isDuplicateKeyException(java.lang.Exception)
public String quoteName(String name)
- Specified by:
- quoteName in interface PersistenceFactory
- Overrides:
- quoteName in interface GenericFactory
- See Also:
org.exolab.castor.persist.spi.PersistenceFactory.quoteName(java.lang.String)