|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.garret.perst.Persistent
org.garret.perst.PersistentResource
org.garret.perst.PersistentCollection
| Constructor Summary | |
|---|---|
PersistentCollection()
Default constructor |
|
PersistentCollection(Storage storage)
Constructor of the collection associated with the specified storage |
|
| Method Summary | |
|---|---|
boolean |
add(T o)
Ensures that this collection contains the specified element (optional operation). |
boolean |
addAll(java.util.Collection<? extends T> c)
Adds all of the elements in the specified collection to this collection (optional operation). |
boolean |
contains(java.lang.Object o)
Returns true if this collection contains the specified element. |
boolean |
containsAll(java.util.Collection<?> c)
Returns true if this collection contains all of the elements in the specified collection. |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
boolean |
remove(java.lang.Object o)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(java.util.Collection<?> c)
Removes from this collection all of its elements that are contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
java.util.Iterator<T> |
select(java.lang.Class cls,
java.lang.String predicate)
Select members of the collection using search predicate This iterator doesn't support remove() method. |
| Methods inherited from class org.garret.perst.PersistentResource |
|---|
exclusiveLock, exclusiveLock, reset, sharedLock, sharedLock, unlock |
| Methods inherited from class org.garret.perst.Persistent |
|---|
assignOid, deallocate, equals, getOid, getStorage, hashCode, invalidate, isDeleted, isModified, isPersistent, isRaw, load, loadAndModify, makePersistent, modify, onLoad, onStore, readExternal, recursiveLoading, store, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
add, addAll, clear, equals, hashCode, iterator, size, toArray, toArray |
| Constructor Detail |
|---|
public PersistentCollection()
public PersistentCollection(Storage storage)
storage - storage associated with the collection| Method Detail |
|---|
public boolean add(T o)
This implementation always throws an UnsupportedOperationException.
o - element whose presence in this collection is to be ensured.
java.lang.UnsupportedOperationException - if the add method is not
supported by this collection.
java.lang.NullPointerException - if this collection does not permit
null elements, and the specified element is
null.
java.lang.ClassCastException - if the class of the specified element
prevents it from being added to this collection.
java.lang.IllegalArgumentException - if some aspect of this element
prevents it from being added to this collection.public boolean addAll(java.util.Collection<? extends T> c)
This implementation iterates over the specified collection, and adds each object returned by the iterator to this collection, in turn.
Note that this implementation will throw an UnsupportedOperationException unless add is overridden (assuming the specified collection is non-empty).
c - collection whose elements are to be added to this collection.
java.lang.UnsupportedOperationException - if this collection does not
support the addAll method.
java.lang.NullPointerException - if the specified collection is null.add(Object)public boolean contains(java.lang.Object o)
This implementation iterates over the elements in the collection, checking each element in turn for equality with the specified element.
contains in interface java.util.Collectiono - object to be checked for containment in this collection.
public boolean containsAll(java.util.Collection<?> c)
This implementation iterates over the specified collection, checking each element returned by the iterator in turn to see if it's contained in this collection. If all elements are so contained true is returned, otherwise false.
containsAll in interface java.util.Collectionc - collection to be checked for containment in this collection.
java.lang.NullPointerException - if the specified collection is null.contains(Object)public boolean isEmpty()
This implementation returns size() == 0.
isEmpty in interface java.util.Collectionpublic boolean remove(java.lang.Object o)
This implementation iterates over the collection looking for the specified element. If it finds the element, it removes the element from the collection using the iterator's remove method.
Note that this implementation throws an UnsupportedOperationException if the iterator returned by this collection's iterator method does not implement the remove method and this collection contains the specified object.
remove in interface java.util.Collectiono - element to be removed from this collection, if present.
java.lang.UnsupportedOperationException - if the remove method is
not supported by this collection.public boolean removeAll(java.util.Collection<?> c)
This implementation iterates over this collection, checking each element returned by the iterator in turn to see if it's contained in the specified collection. If it's so contained, it's removed from this collection with the iterator's remove method.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by the iterator method does not implement the remove method and this collection contains one or more elements in common with the specified collection.
removeAll in interface java.util.Collectionc - elements to be removed from this collection.
java.lang.UnsupportedOperationException - if the removeAll method
is not supported by this collection.
java.lang.NullPointerException - if the specified collection is null.remove(Object),
contains(Object)public boolean retainAll(java.util.Collection<?> c)
This implementation iterates over this collection, checking each element returned by the iterator in turn to see if it's contained in the specified collection. If it's not so contained, it's removed from this collection with the iterator's remove method.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by the iterator method does not implement the remove method and this collection contains one or more elements not present in the specified collection.
retainAll in interface java.util.Collectionc - elements to be retained in this collection.
java.lang.UnsupportedOperationException - if the retainAll method
is not supported by this Collection.
java.lang.NullPointerException - if the specified collection is null.remove(Object),
contains(Object)
public java.util.Iterator<T> select(java.lang.Class cls,
java.lang.String predicate)
ITable
select in interface ITablecls - class of index memberspredicate - JSQL condition
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||