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

java.lang.Object
  extended byorg.apache.jdo.tck.pc.singlefieldidentity.AbstractPCPointSingleField
      extended byorg.apache.jdo.tck.pc.singlefieldidentity.PCPointSingleFieldPrimitiveint
All Implemented Interfaces:
java.io.Serializable

public class PCPointSingleFieldPrimitiveint
extends AbstractPCPointSingleField

The PC class for testing IntIdentity.

Author:
Michael Watzek
See Also:
Serialized Form

Field Summary
 int x
           
 java.lang.Integer y
           
 
Constructor Summary
PCPointSingleFieldPrimitiveint(int x, int y)
          This constructor is used by test cases checking assertion A7.12-39:
The instance returned is initialized with the value of the primary key field of the instance on which the method is called.
 
Method Summary
 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.
 int getX()
           
 java.lang.Integer getY()
           
 java.lang.String name()
           
 void setX(int x)
           
 void setY(java.lang.Integer y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public java.lang.Integer y
Constructor Detail

PCPointSingleFieldPrimitiveint

public PCPointSingleFieldPrimitiveint(int x,
                                      int y)
This constructor is used by test cases checking assertion A7.12-39:
The instance returned is initialized with the value of the primary key field of the instance on which the method is called.

Parameters:
x -
y -
Method Detail

setX

public void setX(int x)

getX

public int getX()

setY

public void setY(java.lang.Integer y)

getY

public java.lang.Integer getY()

name

public java.lang.String name()

equalsPKField

public 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.

Specified by:
equalsPKField in class AbstractPCPointSingleField
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()
Overrides:
toString in class AbstractPCPointSingleField


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