|
|||||||||||
| 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(org.exolab.castor.mapping.ClassDescriptor clsDesc)
Returns a persistence implementation for the specified object type (given its descriptor) on behalf of the specified cache engine. Return null if no persistence support is available for the specified object type. |
boolean |
supportsSetNullInWhere()
Many databases don't support setNull for "WHERE fld=?" |
| 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(org.exolab.castor.mapping.ClassDescriptor clsDesc)
getPersistence in interface PersistenceFactoryclsDesc - The class descriptor
(may be null)
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 | ||||||||||