|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.mdl.util.TransStringSet
at.spardat.xma.mdl.util.TransStringSetN
A transactional string set that is not size restricted.
| Constructor Summary | |
TransStringSetN()
|
|
| Method Summary | |
boolean |
add(java.lang.String key)
Adds a given key to the selection set. |
boolean |
changed()
Returns true if this selection set has changed since construction or the last call to commit or rollback. |
void |
clear()
Removes all entries from this. |
void |
commit()
Discards the history information. |
boolean |
contains(java.lang.String key)
Returns true if this set contains the provided key |
void |
describe(DNode node)
Produces a single row of information. |
boolean |
equals(java.lang.Object obj)
|
int |
estimateMemory()
Estimates the number of bytes this object consumes in memory. |
void |
externalize(XmaOutput o,
boolean forceFull)
Externalizing either saves the actual state or deltas (changes) in a provided XMAObjectOutput. |
java.lang.String[] |
getAll()
Returns a newly allocated String[] containing all Strings in this set. |
java.lang.String |
getSome()
Returns some String in this set or null if size() == 0. |
void |
internalize(XmaInput i)
Updates the state of this with information of the given XMAObjectInput. |
boolean |
remove(java.lang.String key)
Removes a given key from the selection set |
void |
rollback()
Restores the state of this to the state of the last commit, rollback or construction. |
int |
size()
Returns the number of strings in the set. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransStringSetN()
| Method Detail |
public void commit()
TransStringSet
commit in interface Transactionalcommit in class TransStringSetTransStringSet.commit()public void rollback()
TransStringSet
rollback in interface Transactionalrollback in class TransStringSetTransStringSet.rollback()public boolean changed()
TransStringSet
changed in interface Transactionalchanged in class TransStringSetTransStringSet.changed()public boolean add(java.lang.String key)
TransStringSet
add in class TransStringSetkey - the key to add; must not be null.
TransStringSet.add(java.lang.String)public boolean remove(java.lang.String key)
TransStringSet
remove in class TransStringSetkey - the key to remove
TransStringSet.remove(java.lang.String)public void clear()
TransStringSet
clear in class TransStringSetTransStringSet.clear()public int size()
TransStringSet
size in class TransStringSetTransStringSet.size()public java.lang.String getSome()
TransStringSet
getSome in class TransStringSetTransStringSet.getSome()public java.lang.String[] getAll()
TransStringSet
getAll in class TransStringSetTransStringSet.getAll()public boolean contains(java.lang.String key)
TransStringSet
contains in class TransStringSetTransStringSet.contains(java.lang.String)
public void externalize(XmaOutput o,
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 Synchronizationexternalize in class TransStringSetjava.io.IOExceptionSynchronization.externalize(at.spardat.xma.serializer.XmaOutput, boolean)
public void internalize(XmaInput i)
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 Synchronizationinternalize in class TransStringSetjava.io.IOException
java.lang.ClassNotFoundExceptionSynchronization.internalize(at.spardat.xma.serializer.XmaInput)public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public void describe(DNode node)
describe in interface Descriptivedescribe in class TransStringSetDescriptive.describe(at.spardat.xma.mdl.util.DNode)public int estimateMemory()
estimateMemory in class TransStringSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||