Package org.apache.torque.oid
Class IDGeneratorFactory
- java.lang.Object
-
- org.apache.torque.oid.IDGeneratorFactory
-
public final class IDGeneratorFactory extends Object
A factory which instantiatesIdGenerator
implementations.- Version:
- $Id: IDGeneratorFactory.java 1850965 2019-01-10 17:21:29Z painter $
- Author:
- Daniel Rall
-
-
Field Summary
Fields Modifier and Type Field Description static List<IDMethod>
ID_GENERATOR_METHODS
The list of ID generation method types which have associatedIdGenerator
implementations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdGenerator
create(Adapter adapter, String name)
Factory method which instantiatesIdGenerator
implementations based on the return value of the provided adapter'sAdapter.getIDMethodType()
method.
-
-
-
Field Detail
-
ID_GENERATOR_METHODS
public static final List<IDMethod> ID_GENERATOR_METHODS
The list of ID generation method types which have associatedIdGenerator
implementations.
-
-
Method Detail
-
create
public static IdGenerator create(Adapter adapter, String name)
Factory method which instantiatesIdGenerator
implementations based on the return value of the provided adapter'sAdapter.getIDMethodType()
method. Returnsnull
for unknown types.- Parameters:
adapter
- The type of adapter to create an ID generator for.name
- name of the adapter- Returns:
- The appropriate ID generator (possibly
null
).
-
-