|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.LongIdentity
public final class LongIdentity
INTERNAL: Class used for representing data store object identities
with only a single long key. See IdentityIF
.
Constructor Summary | |
---|---|
LongIdentity()
INTERNAL: Constructor that is used for externalization purposes only. |
|
LongIdentity(java.lang.Object type,
long key)
INTERNAL: Creates an identity instance of the given type with the given key. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.Object |
createInstance()
INTERNAL: Creates an object instance of the type defined by this identity. |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
getKey(int index)
INTERNAL: Returns the primary key component with the specified index. |
long |
getLongKey()
|
java.lang.Object |
getType()
INTERNAL: Returns the type of object. |
int |
getWidth()
INTERNAL: Returns the number of primary key components that the identity has. |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LongIdentity()
public LongIdentity(java.lang.Object type, long key)
Method Detail |
---|
public java.lang.Object getType()
IdentityIF
PersistentIF._p_getType()
.
getType
in interface IdentityIF
public int getWidth()
IdentityIF
getWidth
in interface IdentityIF
public java.lang.Object getKey(int index)
IdentityIF
getKey
in interface IdentityIF
public long getLongKey()
public java.lang.Object createInstance() throws java.lang.Exception
IdentityIF
createInstance
in interface IdentityIF
java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object clone()
clone
in interface IdentityIF
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |