org.apache.jdo.tck.pc.singlefieldidentity
Class AbstractPCPointSingleField

java.lang.Object
  extended byorg.apache.jdo.tck.pc.singlefieldidentity.AbstractPCPointSingleField
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PCPointSingleFieldByte, PCPointSingleFieldCharacter, PCPointSingleFieldDate, PCPointSingleFieldInteger, PCPointSingleFieldLong, PCPointSingleFieldPrimitivebyte, PCPointSingleFieldPrimitivechar, PCPointSingleFieldPrimitiveint, PCPointSingleFieldPrimitivelong, PCPointSingleFieldPrimitiveshort, PCPointSingleFieldShort, PCPointSingleFieldString

public abstract class AbstractPCPointSingleField
extends java.lang.Object
implements java.io.Serializable

This is the super class for all PCPoint single indentity classes. It defines an abstract method equals(SingleFieldIdentity). That method ensures that all single identity test cases have a common implementation.

Author:
Michael Watzek
See Also:
Serialized Form

Constructor Summary
AbstractPCPointSingleField()
           
 
Method Summary
abstract  boolean equalsPKField(javax.jdo.identity.SingleFieldIdentity singleFieldIdentity)
          Returns true if the given the key of the given SingleFieldIdentity instance equals the key in the subclass of this class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPCPointSingleField

public AbstractPCPointSingleField()
Method Detail

equalsPKField

public abstract boolean equalsPKField(javax.jdo.identity.SingleFieldIdentity singleFieldIdentity)
Returns true if the given the key of the given SingleFieldIdentity instance equals the key in the subclass of this class.

Parameters:
singleFieldIdentity - the single field identity to check.
Returns:
returns true if the given the key of the given SingleFieldIdentity instance equals the key in the subclass of this class.

toString

public java.lang.String toString()


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