|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.IdentificationObject
The IdentificationObject is an abstract class that encapsulates information
about the identity of a single class or a set of classes. It contains
methods to store, change and delete associated semantic key. It also
provides default implementations for all but two methods: 'setToObject'
and 'getIdentity'. The default methods use a default semantic key class.
A customized semantic key class can be implemented by (1) subclassing
the semantic key class; overriding the methods that access the default
semantic key (changeStoredKey, storeKey, deleteKey).
Supported API: true
Extendable: true
Field Summary | |
private static String |
CLASSNAME
|
private static ApplicationContextServices |
delegateFactory
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
KEY_CLASS_NAME
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
IdentificationObject()
|
Method Summary | |
protected void |
changeIdentity(Identified obj)
Updates the identity of the object passed as argument with the identity held in the object. |
void |
checkIdentity(Identified obj)
Performs validation of the identity that depends only on the object own attributes. |
protected SemanticKey |
createKey(String identity)
|
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
private static ApplicationContextServices |
getDelegateFactory()
|
abstract String |
getIdentity()
Constructs and returns a string representing the object's identity. |
private IdentificationObjectNamespaceDelegate[] |
getIONDelegates()
|
protected String |
getKeyClassName()
Creates a name for the uniqueness constraint. |
protected SemanticKey |
getSemanticKey(UniquelyIdentified obj)
Gets the SemanticKey to store for this identification object and UniquelyIdentified object. |
protected void |
initialize(Identified obj)
Initializes objects created by new-factory methods. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(IdentificationObject thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected void |
setAdditionalKeyAttributes(SemanticKey key)
|
protected abstract void |
setToObject(Identified obj)
Updates the identity of the object passed as argument with the identity held in the object. |
String |
toString()
Returns the conceptual (modeled) name for the class. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getConceptualClassname |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String KEY_CLASS_NAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static ApplicationContextServices delegateFactory
Constructor Detail |
public IdentificationObject()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(IdentificationObject thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
protected void changeIdentity(Identified obj) throws WTException
obj
-
WTException
public void checkIdentity(Identified obj) throws WTException
obj
-
WTException
protected String getKeyClassName()
public abstract String getIdentity()
protected void initialize(Identified obj) throws WTException
obj
-
WTException
protected abstract void setToObject(Identified obj) throws WTException
obj
-
WTException
protected SemanticKey getSemanticKey(UniquelyIdentified obj) throws WTException
obj
-
WTException
private static ApplicationContextServices getDelegateFactory()
private IdentificationObjectNamespaceDelegate[] getIONDelegates()
protected void setAdditionalKeyAttributes(SemanticKey key) throws WTException
WTException
protected SemanticKey createKey(String identity) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |