|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Serializable
Method Summary | |
---|---|
void |
deserialize(Serializer serializer,
SerializationBuffer serializationBuffer)
This method must overwrite the attributes denoted in getAttributeNames() with values read from the container provided. |
void |
getAttributeNames(java.util.Vector attributes)
This method must put the name of every attribute that needs to be serialized in the given Vector. |
Serializable |
getCopy()
Must return a copy of the object that is equal according to the method isEuqalTo(). |
java.lang.String |
getIdName()
Must return the name of the id (e.g. |
int |
getIdValue()
Must return the value of the id. |
java.lang.String |
getLegibleString()
Must return a human readable String representation of the object. |
Serializable |
getNewInstance()
Must return a new and initialized instance. |
void |
getReferencedIdNames(java.util.Vector referencedIdNames)
This method must put every id name of referenced objects, i.e. |
void |
getReferences(java.util.Vector references)
This method must put every reference to Serializable objects, i.e. |
boolean |
isEqual(Serializable serializableObject)
Must return true if the serializableObject is equal to this, except for the id but INCLUDING equality of referenced serializables. |
boolean |
isEqualShallow(Serializable serializableObject)
Must return true if the serializableObject is equal to this, except for the id, EXCLUDING equality of referenced serializables. |
void |
serialize(Serializer serializer,
SerializationBuffer serializationBuffer)
This method must fill the container provided with the serialization- Object with values for every attribute denoted in getAttributeNames(). |
void |
setIdValue(int idValue)
Set the id to the given value. |
Method Detail |
---|
void serialize(Serializer serializer, SerializationBuffer serializationBuffer)
serializer
- -
the serializer used for call-backsserializationBuffer
- -
the serializationBuffer containing the container to write
values tovoid deserialize(Serializer serializer, SerializationBuffer serializationBuffer)
serializer
- -
the serializer used for call-backsserializationBuffer
- -
the buffer to read values fromjava.lang.String getIdName()
int getIdValue()
void setIdValue(int idValue)
idValue
- -
the new id valuevoid getAttributeNames(java.util.Vector attributes)
attributes
, there must be a corresponding field in the
database for example.
attributes
- -
the vector to be filledvoid getReferences(java.util.Vector references)
references
- -
the vector to be filledvoid getReferencedIdNames(java.util.Vector referencedIdNames)
referencedIdNames
- -
the vector to be filledjava.lang.String getLegibleString()
boolean isEqual(Serializable serializableObject) throws java.lang.ClassCastException
serializableObject
- -
the object to compare
java.lang.ClassCastException
boolean isEqualShallow(Serializable serializableObject) throws java.lang.ClassCastException
serializableObject
- -
the object to compare
java.lang.ClassCastException
Serializable getNewInstance()
Serializable getCopy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |