org.datanucleus.identity
Class OIDFactory

java.lang.Object
  extended by org.datanucleus.identity.OIDFactory

public class OIDFactory
extends java.lang.Object

Factory for OID instances. OIDs are not cached, due to thread sync issues and better performance in new JVMs


Method Summary
static OID getInstance(OMFContext omfCtx, long value)
          Factory method for OID instances using long key value.
static OID getInstance(OMFContext omfCtx, java.lang.String oidString)
          Factory method for OID instances using toString() output.
static OID getInstance(OMFContext omfCtx, java.lang.String className, java.lang.Object value)
          Factory method for OID instances using class name and key value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OID getInstance(OMFContext omfCtx,
                              java.lang.String className,
                              java.lang.Object value)
Factory method for OID instances using class name and key value.

Parameters:
omfCtx - The OMF Context
className - the pc class name
value - the id value
Returns:
an OID instance

getInstance

public static OID getInstance(OMFContext omfCtx,
                              long value)
Factory method for OID instances using long key value.

Parameters:
omfCtx - OMF Context
value - the id value
Returns:
an OID instance

getInstance

public static OID getInstance(OMFContext omfCtx,
                              java.lang.String oidString)
Factory method for OID instances using toString() output.

Parameters:
omfCtx - OMF Context
oidString - result of toString on an OID
Returns:
an OID instance


Copyright © 2011. All Rights Reserved.