Class KeyGeneratorTypeHandlerFactory
java.lang.Object
org.castor.cpa.persistence.sql.keygen.typehandler.KeyGeneratorTypeHandlerFactory
Factory for creating
KeyGeneratorTypeHandler
instances.- Since:
- 1.3.2
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyGeneratorTypeHandler
<?> getTypeHandler
(int sqlType, int allocationSize) Returns anKeyGeneratorTypeHandler
instance.
-
Constructor Details
-
KeyGeneratorTypeHandlerFactory
public KeyGeneratorTypeHandlerFactory()
-
-
Method Details
-
getTypeHandler
public static KeyGeneratorTypeHandler<?> getTypeHandler(int sqlType, int allocationSize) throws MappingException Returns anKeyGeneratorTypeHandler
instance.- Parameters:
sqlType
- The SQL type of the underlying identity field.allocationSize
- Allocation size.- Returns:
- A
KeyGeneratorTypeHandler
instance. - Throws:
MappingException
- If an invalid SQL tyope is given.
-