java.util.HashSet
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| protected Set | |
| protected transient List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PersistentSet(SessionImplementor
The session to which this set will belong. session)Constructor matching super. |
| public | PersistentSet(SessionImplementor
The session to which this set will belong. session, Set<E> The underlying set data. set)Instantiates a non-lazy set (the underlying set is constructed from the incoming set reference). |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be added to this set value)Implements java. |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this set coll)Implements java. |
| public void | beforeInitialize(CollectionPersister
The underlying collection persister. persister, int The anticipated size of the collection after initilization is complete. anticipatedSize)Implements org. |
| public void | beginRead()
Overrides org. Implements org. |
| public void | clear()
Implements java. |
| public boolean | contains(Object
element whose presence in this set is to be tested object)Implements java. true if this set contains the specified element.
|
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this set coll)Implements java. true if this set contains all of the elements of the
specified collection.
|
| public Serializable | disassemble(CollectionPersister persister)
Implements org. |
| public boolean | empty()
Implements abstract org. Implements org. |
| public boolean | endRead()
Overrides org. Implements org. |
| public Iterator | entries(CollectionPersister persister)
Implements org. |
| public boolean | entryExists(Object key, int i)
Implements org. |
| public boolean | equals(Object
object to be compared for equality with this set other)Overrides java. Implements java. |
| public boolean | equalsSnapshot(CollectionPersister persister)
Implements org. |
| public Iterator | getDeletes(CollectionPersister persister, boolean indexIsFormula)
Implements org. |
| public Object | getElement(Object entry)
Implements org. |
| public Object | getIndex(Object entry, int i, CollectionPersister
it was more elegant before we added this... persister)Implements org. |
| public Collection | getOrphans(Serializable snapshot, String entityName)
Implements abstract org. Implements org. |
| public Serializable | getSnapshot(CollectionPersister persister)
Implements org. |
| public Object | getSnapshotElement(Object entry, int i)
Implements org. |
| public int | hashCode()
Overrides java. Implements java. |
| public void | initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
Implements org. |
| public boolean | |
| public boolean | |
| public boolean | isSnapshotEmpty(Serializable snapshot)
Implements org. |
| public boolean | isWrapper(Object collection)
Implements org. |
| public Iterator | |
| public boolean | needsInserting(Object entry, int i, Type elemType)
Implements org. |
| public boolean | needsUpdating(Object entry, int i, Type elemType)
Implements org. |
| public Object | readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
Implements org. |
| public boolean | remove(Object
object to be removed from this set, if present value)Implements java. |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this set coll)Implements java. |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this set coll)Implements java. |
| public int | |
| public Object[] | toArray()
Implements java. |
| public Object[] | toArray(Object[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. array)Implements java. |
| public String |
| set | back to summary |
|---|---|
| protected Set<E> set | |
| tempList | back to summary |
|---|---|
| protected transient List<E> tempList | |
| PersistentSet | back to summary |
|---|---|
| public PersistentSet() Empty constructor. Note this form is not ever ever ever used by Hibernate; it is, however, needed for SOAP libraries and other such marshalling code. | |
| PersistentSet | back to summary |
|---|---|
| public PersistentSet(SessionImplementor session) Constructor matching super. Instantiates a lazy set (the underlying set is un-initialized).
| |
| PersistentSet | back to summary |
|---|---|
| public PersistentSet(SessionImplementor session, Set<E> set) Instantiates a non-lazy set (the underlying set is constructed from the incoming set reference).
| |
| add | back to summary |
|---|---|
| public boolean add(Object value) Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<E> coll) Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| beforeInitialize | back to summary |
|---|---|
| public void beforeInitialize(CollectionPersister persister, int anticipatedSize) Implements org. Doc from org. Called before any elements are read into the collection, allowing appropriate initializations to occur.
| |
| beginRead | back to summary |
|---|---|
| public void beginRead() Overrides org. Implements org. Doc from org. Called just before reading any rows from the JDBC result set | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object object) Implements java. Doc from java. Returns
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<E> coll) Implements java. Doc from java. Returns
| |
| disassemble | back to summary |
|---|---|
| public Serializable disassemble(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Disassemble the collection, ready for the cache | |
| empty | back to summary |
|---|---|
| public boolean empty() Implements abstract org. Implements org. Doc from org. Is the initialized collection empty? | |
| endRead | back to summary |
|---|---|
| public boolean endRead() Overrides org. Implements org. Doc from org. Called after reading all rows from the JDBC result set | |
| entries | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Iterate all collection entries, during update of the database | |
| entryExists | back to summary |
|---|---|
| public boolean entryExists(Object key, int i) Implements org. Doc from org. Does an element exist at this entry in the collection? | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| equalsSnapshot | back to summary |
|---|---|
| public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Does the current state exactly match the snapshot? | |
| getDeletes | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Get all the elements that need deleting | |
| getElement | back to summary |
|---|---|
| public Object getElement(Object entry) Implements org. Doc from org. Get the value of the given collection entry | |
| getIndex | back to summary |
|---|---|
| public Object getIndex(Object entry, int i, CollectionPersister persister) Implements org. Doc from org. Get the index of the given collection entry
| |
| getOrphans | back to summary |
|---|---|
| public Collection Implements abstract org. Implements org. Doc from org. get all "orphaned" elements | |
| getSnapshot | back to summary |
|---|---|
| public Serializable getSnapshot(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Return a new snapshot of the current state of the collection | |
| getSnapshotElement | back to summary |
|---|---|
| public Object getSnapshotElement(Object entry, int i) Implements org. Doc from org. Get the snapshot value of the given collection entry | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| initializeFromCache | back to summary |
|---|---|
| public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException Implements org. Doc from org. Read the state of the collection from a disassembled cached value | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| isRowUpdatePossible | back to summary |
|---|---|
| public boolean isRowUpdatePossible() Overrides org. Implements org. | |
| isSnapshotEmpty | back to summary |
|---|---|
| public boolean isSnapshotEmpty(Serializable snapshot) Implements org. Doc from org. Is the snapshot empty? | |
| isWrapper | back to summary |
|---|---|
| public boolean isWrapper(Object collection) Implements org. Doc from org. Is this the wrapper for the given underlying collection instance? | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| needsInserting | back to summary |
|---|---|
| public boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException Implements org. Doc from org. Do we need to insert this element? | |
| needsUpdating | back to summary |
|---|---|
| public boolean needsUpdating(Object entry, int i, Type elemType) Implements org. Doc from org. Do we need to update this element? | |
| readFrom | back to summary |
|---|---|
| public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner) throws HibernateException, SQLException Implements org. Doc from org. Read a row from the JDBC result set | |
| remove | back to summary |
|---|---|
| public boolean remove(Object value) Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<E> coll) Implements java. Doc from java. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<E> coll) Implements java. Doc from java. Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Implements java. Doc from java. Returns an array containing all of the elements in this set. If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. The returned array will be "safe" in that no references to it are maintained by this set. (In other words, this method must allocate a new array even if this set is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray(Object[] array) Implements java. Doc from java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. If the set fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this set. If this set fits in the specified array with room to spare
(i.e., the array has more elements than this set), the element in
the array immediately following the end of the set is set to
If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. Like the Suppose
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Clear | back to summary |
|---|---|
| pack-priv Clear() | |
| getAddedInstance | back to summary |
|---|---|
| public Object getAddedInstance() Implements org. | |
| getOrphan | back to summary |
|---|---|
| public Object getOrphan() Implements org. | |
| operate | back to summary |
|---|---|
| public void operate() Implements org. | |
| value | back to summary |
|---|---|
| private Object value | |
| SimpleAdd | back to summary |
|---|---|
| public SimpleAdd(Object value) | |
| getAddedInstance | back to summary |
|---|---|
| public Object getAddedInstance() Implements org. | |
| getOrphan | back to summary |
|---|---|
| public Object getOrphan() Implements org. | |
| operate | back to summary |
|---|---|
| public void operate() Implements org. | |
| Access | Constructor and Description |
|---|---|
| public |
| value | back to summary |
|---|---|
| private Object value | |
| SimpleRemove | back to summary |
|---|---|
| public SimpleRemove(Object value) | |
| getAddedInstance | back to summary |
|---|---|
| public Object getAddedInstance() Implements org. | |
| getOrphan | back to summary |
|---|---|
| public Object getOrphan() Implements org. | |
| operate | back to summary |
|---|---|
| public void operate() Implements org. | |