org.apache.cayenne.util

## Interface PersistentObjectCollection

- All Superinterfaces:
    Collection, Iterable
  All Known Implementing Classes:
    PersistentObjectList, PersistentObjectSet, ToManyList

      public interface PersistentObjectCollection
      extends Collection

  Simple interface to unify PersistentObject* collections in way of setting properties directly
  Since:
    3.1
  See Also:
    `ToManyMapProperty`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addDirectly(Object target)` Adds an object without triggering an event
    `void` | `removeDirectly(Object target)` Removes an object without triggering an event

    - ### Methods inherited from interface java.util.Collection

      `add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach`

- - ### Method Detail

    - #### addDirectly

          void addDirectly(Object target)

      Adds an object without triggering an event

    - #### removeDirectly

          void removeDirectly(Object target)

      Removes an object without triggering an event

Copyright © 2001–2018 Apache Cayenne. All rights reserved.