|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orientechnologies.jdo.oOID
Indicates a persistent object in the datastore. Each object has own oid associated.
| Field Summary | |
static java.lang.Class |
CLASS
|
static byte |
NO_REF_POOL
|
static byte |
OWN_DB
|
| Constructor Summary | |
oOID()
Create an empty oOID object. |
|
oOID(byte iRefPool,
byte iDatabase,
short iClass,
int iRecord)
Create an oOID object with values given by datastore. |
|
oOID(int iRefPool,
int iDatabase,
int iClass,
int iRecord)
Create an oOID object with values. |
|
oOID(java.lang.String iValue)
Create an oOID object from a string. |
|
| Method Summary | |
boolean |
equals(java.lang.Object iObject)
Compare two oOID objects. |
short |
getClazz()
Get class id |
byte |
getDatabase()
Get database id |
int |
getRecord()
Get the record id inside a segment |
byte |
getRefPool()
Get current datastore id |
int |
hashCode()
Return the hash code for sorting in Map collections |
boolean |
isValid()
Know if the OID is valid. |
void |
reset()
Reset the oid. |
void |
set(byte iRefPool,
byte iDatabase,
short iClass,
int iRecord)
Update oOID values after creation |
java.lang.String |
toString()
Convert an OID to a String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static byte OWN_DB
public static byte NO_REF_POOL
public static java.lang.Class CLASS
| Constructor Detail |
public oOID()
public oOID(byte iRefPool,
byte iDatabase,
short iClass,
int iRecord)
public oOID(int iRefPool,
int iDatabase,
int iClass,
int iRecord)
public oOID(java.lang.String iValue)
| Method Detail |
public int hashCode()
public boolean equals(java.lang.Object iObject)
iObject - Object to compare
public void reset()
isValid()
public void set(byte iRefPool,
byte iDatabase,
short iClass,
int iRecord)
iRefPool - datastore idiDatabase - database idiClass - class idiRecord - record idpublic byte getRefPool()
public byte getDatabase()
public short getClazz()
public int getRecord()
public boolean isValid()
public java.lang.String toString()
oOID( String iValue ),
PersistenceManager.getObjectId(Object iObject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||