org.apache.jdo.tck.pc.singlefieldidentity
Class PCPointSingleFieldPrimitiveshort
java.lang.Object
org.apache.jdo.tck.pc.singlefieldidentity.AbstractPCPointSingleField
org.apache.jdo.tck.pc.singlefieldidentity.PCPointSingleFieldPrimitiveshort
- All Implemented Interfaces:
- java.io.Serializable
- public class PCPointSingleFieldPrimitiveshort
- extends AbstractPCPointSingleField
The PC class for testing ShortIdentity
.
- Author:
- Michael Watzek
- See Also:
- Serialized Form
Field Summary |
int |
x
|
java.lang.Integer |
y
|
Constructor Summary |
PCPointSingleFieldPrimitiveshort(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 |
x
public int x
y
public java.lang.Integer y
PCPointSingleFieldPrimitiveshort
public PCPointSingleFieldPrimitiveshort(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
-
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.