| net.sf.jmoney.model2.IListManager
IListManager | public interface IListManager extends Collection<E>(Code) | | This interface is the interface to all objects that manage
the sets of values that are the values of a multi-valued
property. For example, the set of all accounts in a session
are managed by an object that implements this interface.
|
createNewElement | F createNewElement(ExtendablePropertySet<F> propertySet)(Code) | | This method creates a new object in this collection
in the datastore. The new object will be initialized
with default values.
Parameters: propertySet - the property set of the object to create(this parameter is required because some listscontain objects of a derivable type, in which casethe exact type of the object to create must be given). the newly created object. |
createNewElement | F createNewElement(ExtendablePropertySet<F> propertySet, IValues values)(Code) | | This method creates a new object in this collection
in the datastore. The new object will be initialized
with property values taken from the given interface.
Parameters: values - values to be set in the properties of the new object the newly created object. |
deleteElement | boolean deleteElement(E extendableObject)(Code) | | Deletes the given object from this list. Because objects are 'owned' by the
lists, removing it from the list means deleting the object altogether from
the datastore.
This method should fail if there are references to the object. However,
this is expensive to enforce, so it may not fail. If the underlying datastore
is a relational database and foreign key constraints have been defined
then the database will cause a failure.
Parameters: extendableObject - true if the element was deleted, false if it could not be deleted becausethere were references to it |
moveElement | void moveElement(E extendableObject, IListManager originalList)(Code) | | Moves the given object into this list, removing it from its
original list.
Parameters: extendableObject - Parameters: originalList - |
|
|