public class LogOrphanedKeyAction extends Object implements OrphanedKeyAction
Constructor and Description |
---|
LogOrphanedKeyAction() |
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
The channel to log to.
|
short |
getLevel()
The level to log at.
|
Object |
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 |
setLevel(String level)
The level to log at.
|
public String getChannel()
org.apache.openjpa.Runtime
.public void setChannel(String channel)
org.apache.openjpa.Runtime
.public short getLevel()
WARN
.public void setLevel(short level)
WARN
.public void setLevel(String level)
WARN
.public Object orphan(Object oid, OpenJPAStateManager sm, ValueMetaData vmd)
OrphanedKeyAction
orphan
in interface OrphanedKeyAction
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 discoveredfmd
; typically
null
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.