Package org.apache.openjpa.event
Interface OrphanedKeyAction
-
- All Known Implementing Classes:
ExceptionOrphanedKeyAction
,LogOrphanedKeyAction
,NoneOrphanedKeyAction
public interface OrphanedKeyAction
Perform an action when OpenJPA detects an orphaned key in the database.- Since:
- 0.3.2.2
- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Callback received when OpenJPA discovers an orphaned key.
-
-
-
Method Detail
-
orphan
java.lang.Object orphan(java.lang.Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
Callback received when OpenJPA discovers an orphaned key.- Parameters:
oid
- the orphaned keysm
- the instance representing the record in which the key was discovered; may be nullvmd
- the value in which the key was discovered- Returns:
- the value to load into field
fmd
; typicallynull
-
-