Method Summary |
|
public synchronized boolean | add(Object element) Method to add an element to the Collection. |
public synchronized boolean | addAll(java.util.Collection elements) Method to add a collection of elements.
Parameters: elements - The collection of elements to add. |
protected void | addQueuedOperation(QueuedOperation op) Convenience method to add a queued operation to the operations we perform at commit. |
public void | attachCopy(Object value) Method to return an attached copy of the passed (detached) value. |
public synchronized void | clear() Method to clear the Collection. |
public Object | clone() Creates and returns a copy of this object.
Mutable second-class Objects are required to provide a public
clone method in order to allow for copying PersistenceCapable
objects. |
public Comparator | comparator() Accessor for the comparator. |
public synchronized boolean | contains(Object element) Accessor for whether an element is contained in the Collection. |
public synchronized boolean | containsAll(java.util.Collection c) Accessor for whether a collection of elements are contained here.
Parameters: c - The collection of elements. |
public Object | detachCopy(FetchPlanState state) Method to return a detached copy of the container. |
public synchronized boolean | equals(Object o) Equality operator.
Parameters: o - The object to compare against. |
public void | flush() Method to flush the changes to the datastore when operating in queued mode. |
public Class | getElementType() Accessor for the element type. |
public String | getFieldName() Accessor for the field name. |
public Object | getOwner() Accessor for the owner object. |
public Object | getValue() Accessor for the unwrapped value that we are wrapping. |
public synchronized int | hashCode() Hashcode operator. |
public void | initialise(Object o, boolean forInsert, boolean forUpdate) Method to initialise the SCO from an existing value. |
public void | initialise() Method to initialise the SCO for use. |
public synchronized boolean | isEmpty() Accessor for whether the Collection is empty. |
public synchronized Iterator | iterator() Accessor for an iterator for the Collection. |
public void | load() Method to effect the load of the data in the SCO. |
protected void | loadFromStore() Method to load all elements from the "backing store" where appropriate. |
public void | makeDirty() |
public synchronized QueryExpression | newQueryStatement() Method to generate a QueryStatement for the SCO. |
public synchronized QueryExpression | newQueryStatement(Class candidateClass, DatastoreIdentifier candidateAlias) Method to return a QueryStatement, using the specified candidate class. |
public synchronized ResultObjectFactory | newResultObjectFactory(QueryExpression stmt, boolean ignoreCache, Class resultClass, boolean useFetchPlan) Method to return a ResultObjectFactory for the SCO. |
public synchronized boolean | offer(Object element) Method to offer an element to the Queue. |
public synchronized Object | peek() Method to peek at the next element in the Queue. |
public synchronized Object | poll() Method to poll the next element in the Queue. |
public synchronized boolean | remove(Object element) Method to remove an element from the Collection. |
public boolean | remove(Object element, boolean allowCascadeDelete) Method to remove an element from the collection, and observe the flag for whether to allow cascade delete. |
public synchronized boolean | removeAll(java.util.Collection elements) Method to remove a Collection of elements. |
public synchronized boolean | retainAll(java.util.Collection c) Method to retain a Collection of elements (and remove all others). |
public synchronized int | size() Accessor for the size of the Collection. |
public synchronized Object[] | toArray() Method to return the Collection as an array. |
public synchronized Object[] | toArray(Object a) Method to return the Collection as an array. |
public String | toString() Method to return the Collection as a String. |
public synchronized void | unsetOwner() Method to unset the owner and field information. |
public void | updateEmbeddedElement(Object element, int fieldNumber, Object value) Method to update an embedded element in this collection. |
protected Object | writeReplace() The writeReplace method is called when ObjectOutputStream is preparing
to write the object to the stream. |