|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.driver.BaseFactory
public abstract class BaseFactory
PersistenceFactory for generic JDBC driver.
| Constructor Summary | |
|---|---|
BaseFactory()
|
|
| Method Summary | |
|---|---|
Class<?> |
adjustSqlType(Class<?> sqlType)
Some databases has some problems with some SQL types. |
PersistenceQuery |
getCallQuery(String call,
Class<?>[] paramTypes,
Class<?> javaClass,
String[] fields,
int[] sqlTypes)
Needed to process OQL queries of "CALL" type (using stored procedure call). |
KeyGenerator |
getKeyGenerator(ClassDescriptor clsDesc)
Returns a key generator as specified in the given class descriptor. |
Persistence |
getPersistence(ClassDescriptor clsDesc)
Returns a persistence implementation for the specified object type (given its descriptor) on behalf of the specified cache engine. |
| 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, getIdentitySelectString, getQueryExpression, getSequenceAfterSelectString, getSequenceBeforeSelectString, getSequenceNextValString, isKeyGeneratorIdentitySupported, isKeyGeneratorIdentityTypeSupported, isKeyGeneratorSequenceSupported, isKeyGeneratorSequenceTypeSupported, quoteName |
| Constructor Detail |
|---|
public BaseFactory()
| Method Detail |
|---|
public KeyGenerator getKeyGenerator(ClassDescriptor clsDesc)
throws MappingException
getKeyGenerator in interface PersistenceFactoryclsDesc - The class descriptor.
null.
MappingException - If creation of key generator fails.public Persistence getPersistence(ClassDescriptor clsDesc)
getPersistence in interface PersistenceFactoryclsDesc - The class descriptor.
null.
public PersistenceQuery getCallQuery(String call,
Class<?>[] paramTypes,
Class<?> javaClass,
String[] fields,
int[] sqlTypes)
getCallQuery in interface PersistenceFactorycall - 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 Class<?> adjustSqlType(Class<?> sqlType)
adjustSqlType in interface PersistenceFactorysqlType - The correspondent Java class for the SQL type in mapping.xml
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||