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
Constructors -
Method Summary
Methods inherited from class AbstractSet
equals, hashCode, removeAllMethods inherited from class AbstractCollection
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
addAll, clear, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
RelationSet
-
-
Method Details
-
add
-
remove
-
iterator
-
size
-