|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.prevayler.IndexedObject
public class IndexedObject
A simple value object used to represent the class of a prevalent object and its objectId. Instances of this class are used to represent indexed prevalent objects.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
Object |
objectId
The field that stores the objectId of the prevalent object. |
private static long |
serialVersionUID
|
Class |
type
The field that stores the class of the prevalent object. |
| Constructor Summary | |
|---|---|
protected |
IndexedObject(Class type,
Object objectId)
Create a new instance of the value object with the specified values for the instance members. |
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compare the specified object with this instance for equality. |
Object |
getObjectId()
Getter for property objectId. |
Class |
getType()
Getter for property type. |
int |
hashCode()
Return a hash code for this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
public final Class type
public final Object objectId
| Constructor Detail |
|---|
protected IndexedObject(Class type,
Object objectId)
type - The type
value to use.objectId - The objectId
value to use.| Method Detail |
|---|
public Class getType()
type.
type.public Object getObjectId()
objectId.
objectId.public boolean equals(Object object)
equals in class Objectobject - The object that is to be compared for equality.
true if the object is of the same type
and has equivalent fields.public int hashCode()
hashCode in class Object
|
SPT Object Database API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||