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

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

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

The class to be used as the application identifier for the Company class. It consists of both the company name and the date that the company was founded.

See Also:
Serialized Form

Field Summary
 long companyid
          This field is part of the identifier and should match in name and type with a field in the Company class.
static java.lang.String targetClassName
          The name of the class of the target object.
 
Constructor Summary
Company.Oid()
          The required public no-arg constructor.
Company.Oid(long companyid)
          Initialize the identifier.
Company.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

companyid

public long companyid
This field is part of the identifier and should match in name and type with a field in the Company class.


targetClassName

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

Constructor Detail

Company.Oid

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


Company.Oid

public Company.Oid(long companyid)
Initialize the identifier.

Parameters:
companyid - The id of the company.

Company.Oid

public Company.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 Apache Software Foundation. All Rights Reserved.