Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » util » [javadoc | source]
org.apache.openjpa.util
public final class: Id [javadoc | source]
java.lang.Object
   org.apache.openjpa.util.OpenJPAId
      org.apache.openjpa.util.Id

All Implemented Interfaces:
    Serializable, Comparable

Datastore identity type. Implementations may choose to use this type, or choose to use their own datastore identity values.
Fields inherited from org.apache.openjpa.util.OpenJPAId:
type,  subs
Constructor:
 public Id(String str) 
    Create an id from the result of a #toString call on another instance.
 public Id(String str,
    ClassLoader loader) 
    Create an id from the result of an #toString call on another instance.
 public Id(Class cls,
    String key) 
    Construct from the result of a #toString call on another instance.
 public Id(Class cls,
    Long key) 
    Construct from key value.
 public Id(Class cls,
    long key) 
    Construct from key value.
 public Id(String str,
    OpenJPAConfiguration conf,
    ClassLoader brokerLoader) 
    Create an id from the result of an #toString call on another instance.
 public Id(Class cls,
    long key,
    boolean subs) 
    Construct from key value.
Method from org.apache.openjpa.util.Id Summary:
getId,   getIdObject,   idEquals,   idHash,   newInstance
Methods from org.apache.openjpa.util.OpenJPAId:
compareTo,   equals,   getIdObject,   getType,   hasSubclasses,   hashCode,   idEquals,   idHash,   setManagedInstanceType,   setManagedInstanceType,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.util.Id Detail:
 public long getId() 
    Primary key.
 public Object getIdObject() 
 protected boolean idEquals(OpenJPAId other) 
 protected int idHash() 
 public static Id newInstance(Class cls,
    Object val) 
    Create an id from the given type and value; the value might be an id instnace, a stringified id, or a primary key value.