Package net.ontopia.persistence.proxy
Class WrappedIdentity
java.lang.Object
net.ontopia.persistence.proxy.WrappedIdentity
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,IdentityIF
INTERNAL: Class used for wrapping other identities. See
IdentityIF.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Constructor that is used for externalization purposes only.WrappedIdentity(IdentityIF wrapped) INTERNAL: Creates an identity instance that wraps another identity. -
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.Class<?>getType()INTERNAL: Returns the type of object.intgetWidth()INTERNAL: Returns the number of primary key components that the identity has.inthashCode()voidtoString()static IdentityIFwrap(IdentityIF identity) INTERNAL: Factory method that wraps the identity in a WrappedIdentity if the identity itself is not a WrappedIdentity.void
-
Constructor Details
-
WrappedIdentity
public WrappedIdentity()INTERNAL: Constructor that is used for externalization purposes only. -
WrappedIdentity
INTERNAL: Creates an identity instance that wraps another identity.
-
-
Method Details
-
wrap
INTERNAL: Factory method that wraps the identity in a WrappedIdentity if the identity itself is not a WrappedIdentity. -
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
-
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
-