PersistenceFactory
GenericFactory
public abstract class BaseFactory extends java.lang.Object implements PersistenceFactory
PersistenceFactory
for generic JDBC driver.Constructor | Description |
---|---|
BaseFactory() |
Modifier and Type | Method | 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).
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFactoryName, getIdentitySelectString, getQueryExpression, getSequenceAfterSelectString, getSequenceBeforeSelectString, getSequenceNextValString, isKeyGeneratorIdentitySupported, isKeyGeneratorIdentityTypeSupported, isKeyGeneratorSequenceSupported, isKeyGeneratorSequenceTypeSupported, quoteName
public KeyGenerator getKeyGenerator(ClassDescriptor clsDesc) throws MappingException
getKeyGenerator
in interface PersistenceFactory
clsDesc
- The class descriptor.null
.MappingException
- If creation of key generator fails.public Persistence getPersistence(ClassDescriptor clsDesc)
getPersistence
in interface PersistenceFactory
clsDesc
- The class descriptor.null
.public PersistenceQuery getCallQuery(java.lang.String call, java.lang.Class<?>[] paramTypes, java.lang.Class<?> javaClass, java.lang.String[] fields, int[] sqlTypes)
getCallQuery
in interface PersistenceFactory
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)
adjustSqlType
in interface PersistenceFactory
sqlType
- The correspondent Java class for the SQL type in mapping.xmlIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com