public abstract class BaseFactory extends java.lang.Object implements PersistenceFactory
PersistenceFactory for generic JDBC driver.| Constructor and Description |
|---|
BaseFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
adjustSqlType(java.lang.Class sqlType)
Some databases has some problems with some SQL types.
|
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).
|
Persistence |
getPersistence(ClassDescriptor clsDesc)
Returns a persistence implementation for the specified object
type (given its descriptor) on behalf of the specified cache
engine.
|
boolean |
supportsSetNullInWhere()
Many databases don't support setNull for "WHERE fld=?" and require "WHERE fld IS NULL".
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFactoryName, getQueryExpression, isDuplicateKeyException, quoteNamepublic Persistence getPersistence(ClassDescriptor clsDesc)
PersistenceFactorygetPersistence in interface PersistenceFactoryclsDesc - The class descriptor
(may be null)PersistenceFactory.getPersistence(org.exolab.castor.mapping.ClassDescriptor)public PersistenceQuery getCallQuery(java.lang.String call, java.lang.Class[] paramTypes, java.lang.Class javaClass, java.lang.String[] fields, int[] sqlTypes)
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 typespublic java.lang.Class adjustSqlType(java.lang.Class sqlType)
sqlType - The correspondent Java class for the SQL type in mapping.xmlpublic boolean supportsSetNullInWhere()
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com