|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--KeyObject | +--org.datamanager.kernel.JispIdentifier
A class of Identifiers for use with JispEntityManager. They are KeyObjects (for jisp) and also implement Identifier.
Field Summary | |
protected long |
dateSection
The long value of the Identifier. |
protected static JispIdentifier |
lastIdentifier
The last Identifier that was created. |
protected long |
longSection
A number to help distinguish between Identifiers. |
Constructor Summary | |
JispIdentifier()
Public constructor so serialization will work. |
|
JispIdentifier(long dateSection,
long longSection)
Constructs a unique Identifier. |
Method Summary | |
int |
compareTo(KeyObject keyObject)
|
boolean |
equals(Object object)
Checks to see if the given Object is the same as this Identifier. |
protected static JispIdentifier |
generateIdentifier()
Generates a unique Identifier. |
protected long |
getDateSection()
Gets the long Date part of this Identifier. |
protected long |
getLongSection()
Gets the long part of this Identifier. |
int |
hashCode()
|
KeyObject |
makeNullKey()
|
void |
readExternal(ObjectInput in)
|
String |
toString()
Gets a String representation of this Identifier. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static JispIdentifier lastIdentifier
protected long dateSection
protected long longSection
Constructor Detail |
public JispIdentifier(long dateSection, long longSection)
dateSection
- A long version of the date.longSection
- The current incremented value of the long numeric that ensures
that Indentifiers are unique.public JispIdentifier()
Method Detail |
public KeyObject makeNullKey()
protected long getDateSection()
protected long getLongSection()
public int hashCode()
public boolean equals(Object object)
public String toString()
toString
in interface org.datamanager.kernel.Identifier
public int compareTo(KeyObject keyObject)
protected static JispIdentifier generateIdentifier()
public void writeExternal(ObjectOutput out) throws IOException
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |