Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.torque.oid
Class 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 1375892 2012-08-22 04:11:33Z tfischer $
Author:
  Daniel Rall

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

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ID_GENERATOR_METHODS

    public static final List<IDMethod> ID_GENERATOR_METHODS

  The list of ID generation method types which have associated `IdGenerator` implementations.

Method Detail

### 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.

  Parameters:
    `adapter` - The type of adapter to create an ID generator for.
  Returns:
    The appropriate ID generator (possibly `null`).

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.