Package net.ontopia.persistence.proxy
Class LongIdentity
java.lang.Object
net.ontopia.persistence.proxy.LongIdentity
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,IdentityIF
INTERNAL: Class used for representing data store object identities
with only a single long key. See
IdentityIF.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Constructor that is used for externalization purposes only.LongIdentity(Class<?> type, long key) INTERNAL: Creates an identity instance of the given type with the given key. -
Method Summary
Modifier and TypeMethodDescriptionclone()INTERNAL: Creates an object instance of the type defined by this identity.booleangetKey(int index) INTERNAL: Returns the primary key component with the specified index.longClass<?>getType()INTERNAL: Returns the type of object.intgetWidth()INTERNAL: Returns the number of primary key components that the identity has.inthashCode()voidtoString()void
-
Constructor Details
-
LongIdentity
public LongIdentity()INTERNAL: Constructor that is used for externalization purposes only. -
LongIdentity
INTERNAL: Creates an identity instance of the given type with the given key.
-
-
Method Details
-
getType
Description copied from interface:IdentityIFINTERNAL: Returns the type of object. The returned value indicates the classification of the identified object. See alsoPersistentIF._p_getType().- Specified by:
getTypein interfaceIdentityIF
-
getWidth
public int getWidth()Description copied from interface:IdentityIFINTERNAL: Returns the number of primary key components that the identity has.- Specified by:
getWidthin interfaceIdentityIF
-
getKey
Description copied from interface:IdentityIFINTERNAL: Returns the primary key component with the specified index.- Specified by:
getKeyin interfaceIdentityIF
-
getLongKey
public long getLongKey() -
createInstance
Description copied from interface:IdentityIFINTERNAL: Creates an object instance of the type defined by this identity.- Specified by:
createInstancein interfaceIdentityIF- Throws:
Exception
-
hashCode
public int hashCode() -
equals
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
clone
- Specified by:
clonein interfaceIdentityIF- Overrides:
clonein classObject
-