Interface SCOCollection

    • Method Detail

      • reset

        void reset()
        Resets removed and added lists after flush
      • markDeferred

        void markDeferred()
      • isDeferred

        boolean isDeferred()
      • applyDeferredUpdates

        void applyDeferredUpdates​(Collection c)
      • addInternal

        void addInternal​(Object o)
        Adds object to the Collection without recording the event. Used internaly to initially populate the Collection
      • addAllInternal

        void addAllInternal​(Collection c)
        Adds objects of the given Collection to this Collection without recording the event. Used internaly to initially populate the Collection
      • addToBaseCollection

        void addToBaseCollection​(Object o)
        Adds an object to the list without recording changes.
      • removeAllInternal

        void removeAllInternal​(Collection c)
        Removes objects of the given Collection from this Collection without recording the event. Used internaly to remove a collection of elements from this collection.
      • clearInternal

        void clearInternal()
        Clears Collection without recording the event. Used internaly to clear the Collection
      • removeInternal

        void removeInternal​(Object o)
        Removes element from the Collection without recording the event. Used internaly to update the Collection
      • getAdded

        Collection getAdded()
        Returns the Collection of added elements
        Returns:
        Collection of the added elements as java.util.Collection
      • getRemoved

        Collection getRemoved()
        Returns the Collection of removed elements
        Returns:
        Collection of the removed elements as java.util.Collection
      • setOwner

        void setOwner​(Object owner,
                      String fieldName,
                      Class elementType)
        Sets a new owner for the SCO instance that is not owned by any other object.
        Parameters:
        owner - the new owner
        fieldName - as java.lang.String
        elementType - the new element type as Class, or null if type is not to be checke.
        Throws:
        JDOUserException - if the instance is owned by another owner.