Class RelationSet<E extends Entity>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
ch.tocco.nice2.persist.core.impl.hibernate.pojo.relation.RelationSet<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
Set
implementation that wraps a (to-many) Relation
.
An instance of this class is returned from the generated getters of to many relations.
The actual hibernate PersistentCollection
is wrapped and modified by the ToManyRelationAdapter
.
This class is used to ensure that behaviour is the same (listeners, interceptors) if the generated
getters are used directly instead of the Entity
interface.
Currently only Set.add(Object)
and Set.remove(Object)
are supported.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
RelationSet
-
-
Method Details
-
add
-
remove
-
iterator
-
size
public int size()
-