@SuppressWarnings({ "rawtypes", "unchecked" }) public abstract class AbstractPersistentCollection extends Object implements PersistentCollection, Serializable
Abstract base class for persistent collections.
| Modifiers | Name | Description |
|---|---|---|
protected Serializable |
associationKey |
|
protected Class |
childType |
|
protected Collection |
collection |
|
protected boolean |
dirty |
|
protected AssociationQueryExecutor |
indexer |
|
protected boolean |
initialized |
|
protected Object |
initializing |
|
protected Collection |
keys |
|
protected int |
originalSize |
|
protected boolean |
proxyEntities |
|
protected Session |
session |
| Constructor and description |
|---|
protected AbstractPersistentCollection(Class childType, Session session, Collection collection) |
protected AbstractPersistentCollection(Association association, Serializable associationKey, Session session, Collection collection) |
protected AbstractPersistentCollection(Collection keys, Class childType, Session session, Collection collection) |
protected AbstractPersistentCollection(Serializable associationKey, Session session, AssociationQueryExecutor indexer, Collection collection) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
add(Object o) |
|
public boolean |
addAll(Collection c) |
|
public void |
clear() |
|
public boolean |
contains(Object o) |
|
public boolean |
containsAll(Collection c) |
|
protected boolean |
currentlyInitializing() |
|
public boolean |
doesReturnKeys() |
|
public boolean |
equals(Object o) |
|
public PersistentEntity |
getIndexedEntity() |
|
public int |
getOriginalSize() |
|
public boolean |
hasChanged() |
|
public boolean |
hasChangedSize() |
|
public boolean |
hasGrown() |
|
public boolean |
hasNext() |
|
public boolean |
hasShrunk() |
|
public int |
hashCode() |
|
public void |
initialize() |
|
public boolean |
isDirty() |
|
public boolean |
isEmpty() |
|
public boolean |
isInitialized() |
|
public Iterator |
iterator() |
|
protected void |
loadInverseChildKeys(Session session, Class childType, Collection keys) |
|
public void |
markDirty() |
|
public Object |
next() |
|
public List |
query(Object primaryKey) |
|
public void |
remove() |
|
public boolean |
remove(Object o) |
|
public boolean |
removeAll(Collection c) |
|
public void |
resetDirty() |
|
public boolean |
retainAll(Collection c) |
|
protected void |
setInitializing(Boolean initializing) |
|
public void |
setProxyEntities(boolean proxyEntities)Whether to proxy entities by their keys |
|
public int |
size() |
|
public Object[] |
toArray() |
|
public Object[] |
toArray(Object[] a) |
|
public String |
toString() |
Whether to proxy entities by their keys
proxyEntities - True if you wish to proxy entities