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. This factory holds a cache of weak references to OID.

Version:
$Revision: 1.4 $

Method Summary
static OID getInstance(ObjectManager om, long value)
          Factory method for OID instances using long key value.
static OID getInstance(ObjectManager om, java.lang.String oidString)
          Factory method for OID instances using toString() output.
static OID getInstance(ObjectManager om, 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(ObjectManager om,
                              java.lang.String className,
                              java.lang.Object value)
Factory method for OID instances using class name and key value.

Parameters:
om - The ObjectManager
className - the pc class name
value - the id value
Returns:
an OID instance

getInstance

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

Parameters:
om - The ObjectManager
value - the id value
Returns:
an OID instance

getInstance

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

Parameters:
om - The ObjectManager
oidString - result of toString on an OID
Returns:
an OID instance


Copyright © 2009. All Rights Reserved.