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.apache.openjpa.event
Class ExceptionOrphanedKeyAction

    java.lang.Object
      org.apache.openjpa.event.ExceptionOrphanedKeyAction

All Implemented Interfaces:
  OrphanedKeyAction

    public class ExceptionOrphanedKeyAction

extends Object
implements OrphanedKeyAction

Throw a `ObjectNotFoundException` when an orphaned key is discovered.

Since:
  0.3.2.2
Author:
  Abe White

Constructor Summary
`ExceptionOrphanedKeyAction()`

Method Summary
`Object` | `orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)` Callback received when OpenJPA discovers an orphaned key.

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

Constructor Detail

### ExceptionOrphanedKeyAction

    public ExceptionOrphanedKeyAction()

Method Detail

### orphan

    public Object orphan(Object oid,
                         OpenJPAStateManager sm,
                         ValueMetaData vmd)

  Description copied from interface: `OrphanedKeyAction`
  Callback received when OpenJPA discovers an orphaned key.

  Specified by:
    `orphan` in interface `OrphanedKeyAction`
  Parameters:
    `oid` - the orphaned key
    `sm` - the instance representing the record in which the key was discovered; may be null
    `vmd` - the value in which the key was discovered
  Returns:
    the value to load into field `fmd`; typically `null`

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 © 2006-2013 Apache Software Foundation. All Rights Reserved.