public class JMFPersistentCollectionSnapshot extends Object implements PersistentCollectionSnapshot
| Modifier and Type | Field and Description |
|---|---|
protected String |
comparatorClassName |
protected boolean |
dirty |
protected Object[] |
elements |
protected boolean |
initialized |
protected boolean |
sorted |
| Constructor and Description |
|---|
JMFPersistentCollectionSnapshot(boolean sorted,
String detachedState) |
JMFPersistentCollectionSnapshot(boolean initialized,
String detachedState,
boolean dirty,
Collection<?> collection) |
JMFPersistentCollectionSnapshot(boolean initialized,
String detachedState,
boolean dirty,
Map<?,?> collection) |
JMFPersistentCollectionSnapshot(String detachedState) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComparatorClassName() |
String |
getDetachedState() |
<T> Collection<T> |
getElementsAsCollection() |
<K,V> Map<K,V> |
getElementsAsMap() |
boolean |
isDirty() |
boolean |
isInitialized() |
boolean |
isSorted() |
<T> Comparator<T> |
newComparator(ObjectInput in) |
void |
readCoreData(ObjectInput in) |
void |
readExternal(ObjectInput in) |
void |
readInitializationData(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
protected boolean initialized
protected boolean dirty
protected boolean sorted
protected String comparatorClassName
public JMFPersistentCollectionSnapshot(String detachedState)
public JMFPersistentCollectionSnapshot(boolean sorted, String detachedState)
public JMFPersistentCollectionSnapshot(boolean initialized, String detachedState, boolean dirty, Collection<?> collection)
public JMFPersistentCollectionSnapshot(boolean initialized, String detachedState, boolean dirty, Map<?,?> collection)
public boolean isInitialized()
isInitialized in interface PersistentCollectionSnapshotpublic String getDetachedState()
getDetachedState in interface PersistentCollectionSnapshotpublic boolean isDirty()
isDirty in interface PersistentCollectionSnapshotpublic boolean isSorted()
isSorted in interface PersistentCollectionSnapshotpublic String getComparatorClassName()
public <T> Comparator<T> newComparator(ObjectInput in) throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException
public <T> Collection<T> getElementsAsCollection()
getElementsAsCollection in interface PersistentCollectionSnapshotpublic <K,V> Map<K,V> getElementsAsMap()
getElementsAsMap in interface PersistentCollectionSnapshotpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void readInitializationData(ObjectInput in) throws IOException
readInitializationData in interface PersistentCollectionSnapshotIOExceptionpublic void readCoreData(ObjectInput in) throws IOException, ClassNotFoundException
readCoreData in interface PersistentCollectionSnapshotIOExceptionClassNotFoundException