Module io.ebean.api

Class BeanSet<E>

java.lang.Object
io.ebean.common.BeanSet<E>
All Implemented Interfaces:
BeanCollection<E>, BeanCollectionAdd, ToStringAware, Serializable, Iterable<E>, Collection<E>, Set<E>

public final class BeanSet<E> extends Object implements Set<E>, BeanCollectionAdd
Set capable of lazy loading and modification aware.
See Also:
  • Field Details

    • lock

      protected final ReentrantLock lock
    • disableLazyLoad

      protected boolean disableLazyLoad
    • loader

      protected transient BeanCollectionLoader loader
      The Database this is associated with. (used for lazy fetch).
    • filterMany

      protected transient ExpressionList<?> filterMany
    • registeredWithLoadContext

      protected boolean registeredWithLoadContext
      Flag set when registered with the batch loading context.
    • ebeanServerName

      protected String ebeanServerName
    • ownerBean

      protected EntityBean ownerBean
      The owning bean (used for lazy fetch).
    • propertyName

      protected String propertyName
      The name of this property in the owning bean (used for lazy fetch).
    • modifyHolder

      protected io.ebean.common.ModifyHolder<E> modifyHolder
    • modifyListenMode

      protected BeanCollection.ModifyListenMode modifyListenMode
    • modifyListening

      protected boolean modifyListening
  • Constructor Details

    • BeanSet

      public BeanSet(Set<E> set)
      Create with a specific Set implementation.
    • BeanSet

      public BeanSet()
      Create using an underlying LinkedHashSet.
    • BeanSet

      public BeanSet(BeanCollectionLoader loader, EntityBean ownerBean, String propertyName)
  • Method Details