org.exolab.castor.jdo.engine
Class BaseFactory
java.lang.Object
org.exolab.castor.jdo.engine.BaseFactory
- PersistenceFactory
public abstract class BaseFactory
extends java.lang.Object
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:16 $
adjustSqlType
public Class adjustSqlType(Class sqlType)
Some databases has some problems with some SQL types.
Usually it is enough to merely replace one SQL type by another.
sqlType
- The correspondent Java class for the SQL type in mapping.xml
- The correspondent Java class for the SQL type that should be used instead.
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.
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.
supportsSetNullInWhere
public boolean supportsSetNullInWhere()
Many databases don't support setNull for "WHERE fld=?" and require "WHERE fld IS NULL".
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com