public final class WrappedIdentity extends Object implements IdentityIF, Externalizable
IdentityIF
.Constructor and Description |
---|
WrappedIdentity()
INTERNAL: Constructor that is used for externalization purposes
only.
|
WrappedIdentity(IdentityIF wrapped)
INTERNAL: Creates an identity instance that wraps another identity.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Object |
createInstance()
INTERNAL: Creates an object instance of the type defined by this
identity.
|
boolean |
equals(Object object) |
Object |
getKey(int index)
INTERNAL: Returns the primary key component with the specified index.
|
Class<?> |
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(ObjectInput in) |
String |
toString() |
static IdentityIF |
wrap(IdentityIF identity)
INTERNAL: Factory method that wraps the identity in a
WrappedIdentity if the identity itself is not a WrappedIdentity.
|
void |
writeExternal(ObjectOutput out) |
public WrappedIdentity()
public WrappedIdentity(IdentityIF wrapped)
public static IdentityIF wrap(IdentityIF identity)
public Class<?> getType()
IdentityIF
PersistentIF._p_getType()
.getType
in interface IdentityIF
public int getWidth()
IdentityIF
getWidth
in interface IdentityIF
public Object getKey(int index)
IdentityIF
getKey
in interface IdentityIF
public Object createInstance() throws Exception
IdentityIF
createInstance
in interface IdentityIF
Exception
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public Object clone()
clone
in interface IdentityIF
clone
in class Object