org.castor.cpa.persistence.sql.keygen.typehandler
Class KeyGeneratorTypeHandlerFactory

java.lang.Object
  extended by org.castor.cpa.persistence.sql.keygen.typehandler.KeyGeneratorTypeHandlerFactory

public final class KeyGeneratorTypeHandlerFactory
extends Object

Factory for creating KeyGeneratorTypeHandler instances.

Since:
1.3.2
Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Werner Guttmann

Method Summary
static KeyGeneratorTypeHandler<?> getTypeHandler(int sqlType, int allocationSize)
          Returns an KeyGeneratorTypeHandler instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTypeHandler

public static KeyGeneratorTypeHandler<?> getTypeHandler(int sqlType,
                                                        int allocationSize)
                                                 throws MappingException
Returns an KeyGeneratorTypeHandler 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.


Copyright © 2012. All Rights Reserved.