CollectionRemoveAction (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.action.internal
Class CollectionRemoveAction

    java.lang.Object
      org.hibernate.action.internal.CollectionAction
          org.hibernate.action.internal.CollectionRemoveAction

All Implemented Interfaces:
  Serializable, Comparable, Executable

    public final class CollectionRemoveAction

extends CollectionAction

See Also:
  Serialized Form

Constructor Summary
`CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)` Removes a persistent collection from a specified owner.
`CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)` Removes a persistent collection from its loaded owner.

Method Summary
`void` | `execute()` Execute this action

Methods inherited from class org.hibernate.action.internal.CollectionAction
`afterDeserialize, beforeExecutions, compareTo, eventSource, evict, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getCollection, getKey, getPersister, getPropertySpaces, getSession, listenerGroup, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CollectionRemoveAction

    public CollectionRemoveAction(PersistentCollection collection,
                                  CollectionPersister persister,
                                  Serializable id,
                                  boolean emptySnapshot,
                                  SessionImplementor session)

  Removes a persistent collection from its loaded owner. Use this constructor when the collection is non-null.

  Parameters:
    `collection` - The collection to to remove; must be non-null
    `persister` - The collection's persister
    `id` - The collection key
    `emptySnapshot` - Indicates if the snapshot is empty
    `session` - The session
  Throws:
    `AssertionFailure` - if collection is null.

### CollectionRemoveAction

    public CollectionRemoveAction(Object affectedOwner,
                                  CollectionPersister persister,
                                  Serializable id,
                                  boolean emptySnapshot,
                                  SessionImplementor session)

  Removes a persistent collection from a specified owner. Use this constructor when the collection to be removed has not been loaded.

  Parameters:
    `affectedOwner` - The collection's owner; must be non-null
    `persister` - The collection's persister
    `id` - The collection key
    `emptySnapshot` - Indicates if the snapshot is empty
    `session` - The session
  Throws:
    `AssertionFailure` - if affectedOwner is null.

Method Detail

### execute

    public void execute()
                 throws HibernateException

  Description copied from interface: `Executable`
  Execute this action

  Throws:
    `HibernateException` - Indicates a problem during execution.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.