|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssociationValues
Interface describing a container of Association Values for a single Saga instance.
This container tracks changes made to its contents between commits (see commit()).
| Method Summary | |
|---|---|
boolean |
add(AssociationValue associationValue)
Adds the given associationValue, if it has not been previously added. |
Set<AssociationValue> |
addedAssociations()
Returns the Set of association values that have been added since the last commit(). |
Set<AssociationValue> |
asSet()
Returns this instance as a Set of Association Values. |
void |
commit()
Resets the tracked changes. |
boolean |
contains(AssociationValue associationValue)
Indicates whether this instance contains the given associationValue. |
boolean |
remove(AssociationValue associationValue)
Removes the given associationValue, if it is contained by this instance. |
Set<AssociationValue> |
removedAssociations()
Returns the Set of association values that have been removed since the last commit(). |
int |
size()
Returns the number of AssociationValue instances available in this container |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
Set<AssociationValue> removedAssociations()
commit().
If an association was added and then removed (or vice versa), without any calls to commit() in
between, it is not returned.
commit().Set<AssociationValue> addedAssociations()
commit().
If an association was added and then removed (or vice versa), without any calls to commit() in
between, it is not returned.
commit().void commit()
int size()
boolean contains(AssociationValue associationValue)
associationValue.
associationValue - the association value to verify
true if the association value is available in this instance, otherwise falseboolean add(AssociationValue associationValue)
associationValue, if it has not been previously added.
When added (method returns true), the given associationValue will be returned on the
next call to addedAssociations(), unless it has been removed after the last call to removedAssociations().
associationValue - The association value to add
true if the value was added, false if it was already contained in this
instanceboolean remove(AssociationValue associationValue)
associationValue, if it is contained by this instance.
When removed (method returns true), the given associationValue will be returned on the
next call to removedAssociations(), unless it has been added after the last call to addedAssociations().
associationValue - The association value to remove
true if the value was removed, false if it was not contained in this instanceSet<AssociationValue> asSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||