|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.jorm.GenClassImpl
org.ow2.jonas.lib.ejb21.jorm.Collection
public class Collection
This class is a basic implementation of the java.util.Collection based on the generic class implementation (GenClassImpl). This class can be used to represent a relation between bean.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.ow2.jonas.lib.ejb21.jorm.GenClassImpl |
|---|
GenClassImpl.ElementIterator |
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.ejb21.jorm.GenClassImpl |
|---|
deletedLength, ectx, gcm, isModified, listener, pb, pIndexedElems, selectForUpdate, size |
| Constructor Summary | |
|---|---|
Collection()
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection collection)
It iterates over the collection parameter to add each element in the collection. |
void |
clear()
It removes all elements. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection collection)
|
org.objectweb.jorm.api.PIndexedElem |
createPIndexedElem()
The default implementation of the PIndexedElem is GenClassElement. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
remove(Object o,
boolean callListener)
|
boolean |
removeAll(Collection collection)
It iterates over the collection parameter to remove each element in the collection. |
boolean |
retainAll(Collection collection)
For each element of the current collection, it checks if it exist into the collection parameter. |
int |
size()
|
Object[] |
toArray()
It returns an array of the elements. |
Object[] |
toArray(Object[] objects)
It returns an array of the elements. |
| Methods inherited from class org.ow2.jonas.lib.ejb21.jorm.GenClassImpl |
|---|
gcAdd, gcClear, gcContains, gcDeref, gcGetElement, gcGetPBinding, gcGetRealIndex, gcGetSize, gcIsModified, gcIterator, gcIterator, gcObject2ref, gcRemove, getListener, getMemoryInstance, paAdd, paDeltaSupported, paGetNbElem, paIterator, paSetNbElem, printState, read, reset, setEntityContext, setListener, setPBinding, setPClassMapping, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Collection()
| Method Detail |
|---|
public org.objectweb.jorm.api.PIndexedElem createPIndexedElem()
GenClassImpl
createPIndexedElem in interface org.objectweb.jorm.api.PIndexedElemFactorycreatePIndexedElem in class GenClassImplpublic int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic boolean contains(Object o)
contains in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] objects)
toArray in interface Collectionobjects - the array into which the elements of this collection are to be stored
public boolean add(Object o)
add in interface Collectionpublic boolean remove(Object o)
remove in interface Collection
public boolean remove(Object o,
boolean callListener)
public boolean containsAll(Collection collection)
containsAll in interface Collectionpublic boolean addAll(Collection collection)
addAll in interface Collectionpublic boolean removeAll(Collection collection)
removeAll in interface Collectionpublic boolean retainAll(Collection collection)
retainAll in interface Collectionpublic void clear()
clear in interface Collection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||