|
||||||||||
| 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,
List<Identity> ids)
Creates an instance of LazyHashSet. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E entity)
|
|
boolean |
addAll(Collection<? extends E> collection)
|
|
void |
clear()
|
|
void |
committed(TransactionContext tx)
Called at the end of a transaction after commit. |
|
boolean |
contains(Object entity)
|
|
boolean |
containsAll(Collection<?> collection)
|
|
boolean |
equals(Object o)
|
|
List<E> |
getAddedEntitiesList()
|
|
List<Identity> |
getIdsList()
|
|
List<Identity> |
getRemovedIdsList()
|
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
boolean |
remove(Object entity)
|
|
boolean |
removeAll(Collection<?> collection)
|
|
boolean |
retainAll(Collection<?> collection)
|
|
void |
rolledback(TransactionContext tx)
Called at the end of a transaction after rollback. |
|
int |
size()
|
|
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,
List<Identity> ids)
tx - Current transaction contextmolder - Associated ClassMolderids - Set of identifiers.| Method Detail |
|---|
public boolean add(E entity)
add in interface Collection<E>add in interface Set<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>addAll in interface Set<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>public boolean contains(Object entity)
contains in interface Collection<E>contains in interface Set<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>public boolean remove(Object entity)
remove in interface Collection<E>remove in interface Set<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>removeAll in interface Set<E>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>retainAll in interface Set<E>public int size()
size in interface Collection<E>size in interface Set<E>public Object[] toArray()
toArray in interface Collection<E>toArray in interface Set<E>public <A> A[] toArray(A[] array)
toArray in interface Collection<E>toArray in interface Set<E>public boolean equals(Object o)
equals in interface Collection<E>equals in interface Set<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class Objectpublic List<Identity> getIdsList()
getIdsList in interface LazyCollection<E>public List<Identity> getRemovedIdsList()
getRemovedIdsList in interface LazyCollection<E>public 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 | |||||||||