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

## com.bea.wlcp.wlng.api.util
Class IDFactory

    java.lang.Object
      com.bea.wlcp.wlng.api.util.IDFactory

public abstract class IDFactory
extends Object

Factory for getting IDs

  Copyright © 2008 Oracle Corporation Systems, Inc. All Rights Reserved.

Constructor Summary
`IDFactory()`

Method Summary
`abstract void` | `close()` Close the factory
`static IDFactory` | `getFactory()`
`abstract int` | `getInstanceID()` Get WLNG instance id.
`abstract int` | `getNextIntID()` Get the next integer id that is unique among all WLNG instances.
`abstract long` | `getNextLongID()` Get the next long id that is unique among all WLNG instances.

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

Constructor Detail

### IDFactory

    public IDFactory()

Method Detail

### close

    public abstract void close()

  Close the factory

### getFactory

    public static IDFactory getFactory()

### getInstanceID

    public abstract int getInstanceID()

  Get WLNG instance id. Always return the same unique id for a given WLNG instance.

  Returns:

### getNextIntID

    public abstract int getNextIntID()

  Get the next integer id that is unique among all WLNG instances. IDs will cycle when maxium is reached

  Returns:

### getNextLongID

    public abstract long getNextLongID()

  Get the next long id that is unique among all WLNG instances. IDs will cycle when maxium is reached exceeded.

  Returns:

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