Class KeyGeneratorTypeHandlerFactory
- java.lang.Object
-
- org.castor.cpa.persistence.sql.keygen.typehandler.KeyGeneratorTypeHandlerFactory
-
public class KeyGeneratorTypeHandlerFactory extends java.lang.ObjectFactory for creatingKeyGeneratorTypeHandlerinstances.- Since:
- 1.3.2
- Author:
- Werner Guttmann
-
-
Constructor Summary
Constructors Constructor Description KeyGeneratorTypeHandlerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyGeneratorTypeHandler<?>getTypeHandler(int sqlType, int allocationSize)Returns anKeyGeneratorTypeHandlerinstance.
-
-
-
Method Detail
-
getTypeHandler
public static KeyGeneratorTypeHandler<?> getTypeHandler(int sqlType, int allocationSize) throws MappingException
Returns anKeyGeneratorTypeHandlerinstance.- Parameters:
sqlType- The SQL type of the underlying identity field.allocationSize- Allocation size.- Returns:
- A
KeyGeneratorTypeHandlerinstance. - Throws:
MappingException- If an invalid SQL tyope is given.
-
-