|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.jdo.engine.BaseFactory
PersistenceFactory for generic JDBC driver.
| Constructor Summary | |
|---|---|
BaseFactory()
|
|
| Method Summary | |
|---|---|
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,
LogInterceptor logInterceptor)
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". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exolab.castor.persist.spi.PersistenceFactory |
|---|
getFactoryName, getQueryExpression, isDuplicateKeyException, quoteName |
| Constructor Detail |
public BaseFactory()
| Method Detail |
public Persistence getPersistence(ClassDescriptor clsDesc,
LogInterceptor logInterceptor)
throws MappingException
PersistenceFactory
getPersistence in interface PersistenceFactoryclsDesc - The class descriptorlogInterceptor - Interceptor to write log messages to
(may be null)
MappingException - Indicates that the object type is not
supported by the persistence engine due to improper mapping
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 types
public java.lang.Class adjustSqlType(java.lang.Class sqlType)
sqlType - The correspondent Java class for the SQL type in mapping.xml
public boolean supportsSetNullInWhere()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||