|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.tck.pc.singlefieldidentity.AbstractPCPointSingleField
org.apache.jdo.tck.pc.singlefieldidentity.PCPointSingleFieldDate
The PC class for testing ObjectIdentity
.
Field Summary | |
int |
x
|
java.lang.Integer |
y
|
Constructor Summary | |
PCPointSingleFieldDate()
This constructor is used by test cases checking assertion A7.12-38: For classes using single field identity method PersistenceCapable.newObjectIdInstance() must be called
on a persistent instance with its primary key field initialized,
or a JDOFatalInternalException is thrown. |
|
PCPointSingleFieldDate(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 |
public int x
public java.lang.Integer y
Constructor Detail |
public PCPointSingleFieldDate()
PersistenceCapable.newObjectIdInstance()
must be called
on a persistent instance with its primary key field initialized,
or a JDOFatalInternalException is thrown.
public PCPointSingleFieldDate(int x, int y)
x
- y
- Method Detail |
public void setX(int x)
public int getX()
public void setY(java.lang.Integer y)
public java.lang.Integer getY()
public java.lang.String name()
public boolean equalsPKField(javax.jdo.identity.SingleFieldIdentity singleFieldIdentity)
true
if the given the key of the given
SingleFieldIdentity
instance equals the key in the subclass
of this class.
equalsPKField
in class AbstractPCPointSingleField
singleFieldIdentity
- the single field identity to check.
true
if the given the key of the given
SingleFieldIdentity
instance equals the key in the subclass
of this class.public java.lang.String toString()
toString
in class AbstractPCPointSingleField
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |