Package org.apache.openjpa.event
Class LogOrphanedKeyAction
java.lang.Object
org.apache.openjpa.event.LogOrphanedKeyAction
- All Implemented Interfaces:
OrphanedKeyAction
Log a message when an orphaned key is discovered.
- Since:
- 0.3.2.2
- Author:
- Abe White
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe channel to log to.short
getLevel()
The level to log at.orphan
(Object oid, OpenJPAStateManager sm, ValueMetaData vmd) Callback received when OpenJPA discovers an orphaned key.void
setChannel
(String channel) The channel to log to.void
setLevel
(short level) The level to log at.void
The level to log at.
-
Constructor Details
-
LogOrphanedKeyAction
public LogOrphanedKeyAction()
-
-
Method Details
-
getChannel
The channel to log to. Defaults toorg.apache.openjpa.Runtime
. -
setChannel
The channel to log to. Defaults toorg.apache.openjpa.Runtime
. -
getLevel
public short getLevel()The level to log at. Defaults toWARN
. -
setLevel
public void setLevel(short level) The level to log at. Defaults toWARN
. -
setLevel
The level to log at. Defaults toWARN
. -
orphan
Description copied from interface:OrphanedKeyAction
Callback received when OpenJPA discovers an orphaned key.- Specified by:
orphan
in interfaceOrphanedKeyAction
- 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
-