|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.collection.AbstractPersistentCollection
org.hibernate.collection.PersistentList
ca.odell.glazedlists.hibernate.PersistentEventList
public final class PersistentEventList
A Hibernate persistent wrapper for an EventList
. Underlying
collection implementation is BasicEventList
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.hibernate.collection.AbstractPersistentCollection |
---|
AbstractPersistentCollection.DelayedOperation |
Field Summary | |
---|---|
protected ListEventAssembler |
updates
the change event and notification system |
Fields inherited from class org.hibernate.collection.PersistentList |
---|
list |
Fields inherited from class org.hibernate.collection.AbstractPersistentCollection |
---|
UNKNOWN |
Constructor Summary | |
---|---|
PersistentEventList(SessionImplementor session,
EventList newList)
Constructor with session and EventList. |
|
PersistentEventList(SessionImplementor session,
EventListFactory listFactory)
Constructor with session. |
Method Summary | |
---|---|
void |
addListEventListener(ListEventListener listChangeListener)
Registers the specified listener to receive change updates for this list. |
void |
beforeInitialize(CollectionPersister persister)
Kept for compatibility with older Hibernate versions. |
void |
beforeInitialize(CollectionPersister persister,
int anticipatedSize)
|
void |
dispose()
Disposing an EventList will make it eligible for garbage collection. |
ListEventPublisher |
getPublisher()
Get the publisher used to distribute ListEvent s. |
ReadWriteLock |
getReadWriteLock()
Gets the lock required to share this list between multiple threads. |
void |
listChanged(ListEvent listChanges)
When the underlying list changes, this notification allows the object to repaint itself or update itself as necessary. |
void |
removeListEventListener(ListEventListener listChangeListener)
Removes the specified listener from receiving change updates for this list. |
Methods inherited from class org.hibernate.collection.PersistentList |
---|
add, add, addAll, addAll, clear, contains, containsAll, disassemble, empty, entries, entryExists, equals, equalsSnapshot, get, getDeletes, getElement, getIndex, getOrphans, getSnapshot, getSnapshotElement, hashCode, indexOf, initializeFromCache, isEmpty, isSnapshotEmpty, isWrapper, iterator, lastIndexOf, listIterator, listIterator, needsInserting, needsUpdating, readFrom, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Field Detail |
---|
protected transient ListEventAssembler updates
Constructor Detail |
---|
public PersistentEventList(SessionImplementor session, EventListFactory listFactory)
session
- the sessionlistFactory
- factory for EventListspublic PersistentEventList(SessionImplementor session, EventList newList)
session
- the sessionnewList
- the EventListMethod Detail |
---|
public void beforeInitialize(CollectionPersister persister)
public void beforeInitialize(CollectionPersister persister, int anticipatedSize)
beforeInitialize
in interface PersistentCollection
beforeInitialize
in class PersistentList
public ListEventPublisher getPublisher()
ListEvent
s.
getPublisher
in interface EventList
public ReadWriteLock getReadWriteLock()
getReadWriteLock
in interface EventList
ReadWriteLock
that guarantees thread safe
access to this list.public void addListEventListener(ListEventListener listChangeListener)
addListEventListener
in interface EventList
public void removeListEventListener(ListEventListener listChangeListener)
removeListEventListener
in interface EventList
public void listChanged(ListEvent listChanges)
It is mandatory that the calling thread has obtained the write lock on the source list. This is because the calling thread will have written to the source list to cause this event. This condition guarantees that no writes can occur while the listener is handling this event. It is an error to write to the source list while processing an event.
listChanged
in interface ListEventListener
public void dispose()
Warning: It is an error
to call any method on an EventList
after it has been disposed.
dispose
in interface EventList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |