|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.mdl.util.TransString
Encapsulates a String and adds Transactional behaviour to it. The value of the String may be retrieved using get. Upon default construction, an instance contains a null String.
| Constructor Summary | |
TransString()
Default constructor. |
|
TransString(java.lang.String s)
Constructs with a provided string. |
|
| Method Summary | |
boolean |
changed()
Yields true if this WidgetModel has changed since the last syncpoint. |
void |
commit()
This method clears the change history. |
void |
describe(DNode n)
describe puts all relevant information about this into the provided node. |
boolean |
equals(java.lang.Object obj)
|
int |
estimateMemory()
Estimates the number of bytes this object consumes in memory. |
void |
externalize(XmaOutput xo,
boolean forceFull)
Externalizing either saves the actual state or deltas (changes) in a provided XMAObjectOutput. |
java.lang.String |
get()
Returns the value of this |
void |
internalize(XmaInput in)
Updates the state of this with information of the given XMAObjectInput. |
void |
rollback()
This method restores this Widget Model to its last syncpoint (which also becomes the new syncpoint). |
void |
set(java.lang.String s)
This method sets a new value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransString()
public TransString(java.lang.String s)
s - the String to set| Method Detail |
public void set(java.lang.String s)
s - the String to set; may be nullpublic java.lang.String get()
public boolean changed()
Transactional
changed in interface TransactionalTransactional.changed()public void rollback()
Transactional
rollback in interface TransactionalTransactional.rollback()public void commit()
Transactional
commit in interface TransactionalTransactional.commit()
public void externalize(XmaOutput xo,
boolean forceFull)
throws java.io.IOException
SynchronizationIf forceFull is false, the object implementing this interface must also implement Transactional. If the object implementing this is able to track changes, these are the changes since the last syncpoint.
externalize in interface Synchronizationxo - the serialization destinationforceFull - if true, the complete state is written
and deltas are ignored.
java.io.IOException - on serialization errorsSynchronization.externalize(at.spardat.xma.serializer.XmaOutput, boolean)
public void internalize(XmaInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
SynchronizationThis method is not allowed to throw Exceptions because that would leave models in an inconsistent state. Thrown exceptions are considered to be programming errors. Internalize must not throw technical exceptions which indicate system or ressource failures. That implies that the person implementing internalize is not allowed to access ressources outside the JVM, either directly or via calls to other methods. Examples of ressource access which must not be triggered are calls to communication of file system services.
internalize in interface Synchronizationin - the XMAObjectInput. If a XMAObjectInputChangeListener is
set in the object in, it will be notified after applying
changes read from in.
java.lang.ClassNotFoundException - on serialization errors
java.io.IOException - on serialization errorsSynchronization.internalize(at.spardat.xma.serializer.XmaInput)public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public void describe(DNode n)
Descriptive
describe in interface Descriptiven - the node going to hold information about this.Descriptive.describe(at.spardat.xma.mdl.util.DNode)public int estimateMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||