org.apache.jdo.tck.pc.company
Class Project.Oid

java.lang.Object
  extended byorg.apache.jdo.tck.pc.company.Project.Oid
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
Project

public static class Project.Oid
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

This class is used to represent the application identity for the Project class.

See Also:
Serialized Form

Field Summary
 long projid
          This field represents the identifier for the Project class.
static java.lang.String targetClassName
          The name of the class of the target object.
 
Constructor Summary
Project.Oid()
          The required public no-arg constructor.
Project.Oid(long projid)
          Initialize the application identifier with a project ID.
Project.Oid(java.lang.String s)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getTargetClassName()
          Return the target class name.
 int hashCode()
           
protected static java.lang.String justTheId(java.lang.String str)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

projid

public long projid
This field represents the identifier for the Project class. It must match a field in the Project class in both name and type.


targetClassName

public static java.lang.String targetClassName
The name of the class of the target object.

Constructor Detail

Project.Oid

public Project.Oid()
The required public no-arg constructor.


Project.Oid

public Project.Oid(long projid)
Initialize the application identifier with a project ID.

Parameters:
projid - The id of the project.

Project.Oid

public Project.Oid(java.lang.String s)
Method Detail

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

justTheId

protected static java.lang.String justTheId(java.lang.String str)

getTargetClassName

public java.lang.String getTargetClassName()
Return the target class name.

Returns:
the target class name.

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.