Package org.apache.torque.oid

# Klasse IDGeneratorFactory

java.lang.Object
org.apache.torque.oid.IDGeneratorFactory

public final class IDGeneratorFactory extends Object
A factory which instantiates `IdGenerator` implementations.

Version:
  $Id: IDGeneratorFactory.java 1850965 2019-01-10 17:21:29Z painter $
Autor:
  Daniel Rall

- ## Feldübersicht

  Felder
  Modifizierer und Typ
  Feld
  Beschreibung
  `static final List<IDMethod>`
  `ID_GENERATOR_METHODS`
  The list of ID generation method types which have associated `IdGenerator` implementations.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static IdGenerator`
  `create(Adapter adapter, String name)`
  Factory method which instantiates `IdGenerator` implementations based on the return value of the provided adapter's `Adapter.getIDMethodType()` method.

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Felddetails

  - ### ID_GENERATOR_METHODS

    public static final List<IDMethod> ID_GENERATOR_METHODS
    The list of ID generation method types which have associated `IdGenerator` implementations.

- ## Methodendetails

  - ### create

    public static IdGenerator create(Adapter adapter, String name)
    Factory method which instantiates `IdGenerator` implementations based on the return value of the provided adapter's `Adapter.getIDMethodType()` method. Returns `null` for unknown types.
    Parameter:
      `adapter` - The type of adapter to create an ID generator for.
      `name` - name of the adapter
    Gibt zurück:
      The appropriate ID generator (possibly `null`).