|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.persist.proxy.LazyHashSet<E>
public final class LazyHashSet<E>
It is a lazy Collection. The collection initially contains only the identities of elements of one type. If any element is needed, it will be fetched "on the fly".
| Constructor Summary | |
|---|---|
LazyHashSet(TransactionContext tx,
ClassMolder molder,
java.util.List<Identity> ids)
Creates an instance of LazyHashSet. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E entity)
|
|
boolean |
addAll(java.util.Collection<? extends E> collection)
|
|
void |
clear()
|
|
void |
committed(TransactionContext tx)
Called at the end of a transaction after commit. |
|
boolean |
contains(java.lang.Object entity)
|
|
boolean |
containsAll(java.util.Collection<?> collection)
|
|
boolean |
equals(java.lang.Object o)
|
|
java.util.List<E> |
getAddedEntitiesList()
|
|
java.util.List<Identity> |
getIdsList()
|
|
java.util.List<Identity> |
getRemovedIdsList()
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
java.util.Iterator<E> |
iterator()
|
|
boolean |
remove(java.lang.Object entity)
|
|
boolean |
removeAll(java.util.Collection<?> collection)
|
|
boolean |
retainAll(java.util.Collection<?> collection)
|
|
void |
rolledback(TransactionContext tx)
Called at the end of a transaction after rollback. |
|
int |
size()
|
|
java.lang.Object[] |
toArray()
|
|
|
toArray(A[] array)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyHashSet(TransactionContext tx,
ClassMolder molder,
java.util.List<Identity> ids)
tx - Current transaction contextmolder - Associated ClassMolderids - Set of identifiers.| Method Detail |
|---|
public boolean add(E entity)
add in interface java.util.Collection<E>add in interface java.util.Set<E>public boolean addAll(java.util.Collection<? extends E> collection)
addAll in interface java.util.Collection<E>addAll in interface java.util.Set<E>public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.Set<E>public boolean contains(java.lang.Object entity)
contains in interface java.util.Collection<E>contains in interface java.util.Set<E>public boolean containsAll(java.util.Collection<?> collection)
containsAll in interface java.util.Collection<E>containsAll in interface java.util.Set<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in interface java.util.Set<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>public boolean remove(java.lang.Object entity)
remove in interface java.util.Collection<E>remove in interface java.util.Set<E>public boolean removeAll(java.util.Collection<?> collection)
removeAll in interface java.util.Collection<E>removeAll in interface java.util.Set<E>public boolean retainAll(java.util.Collection<?> collection)
retainAll in interface java.util.Collection<E>retainAll in interface java.util.Set<E>public int size()
size in interface java.util.Collection<E>size in interface java.util.Set<E>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>toArray in interface java.util.Set<E>public <A> A[] toArray(A[] array)
toArray in interface java.util.Collection<E>toArray in interface java.util.Set<E>public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<E>equals in interface java.util.Set<E>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<E>hashCode in interface java.util.Set<E>hashCode in class java.lang.Objectpublic java.util.List<Identity> getIdsList()
getIdsList in interface LazyCollection<E>public java.util.List<Identity> getRemovedIdsList()
getRemovedIdsList in interface LazyCollection<E>public java.util.List<E> getAddedEntitiesList()
getAddedEntitiesList in interface LazyCollection<E>public void committed(TransactionContext tx)
TxSynchronizable
committed in interface TxSynchronizablepublic void rolledback(TransactionContext tx)
TxSynchronizable
rolledback in interface TxSynchronizable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||