|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.event.LogOrphanedKeyAction
public class LogOrphanedKeyAction
Log a message when an orphaned key is discovered.
Constructor Summary | |
---|---|
LogOrphanedKeyAction()
|
Method Summary | |
---|---|
java.lang.String |
getChannel()
The channel to log to. |
short |
getLevel()
The level to log at. |
java.lang.Object |
orphan(java.lang.Object oid,
OpenJPAStateManager sm,
ValueMetaData vmd)
Callback received when OpenJPA discovers an orphaned key. |
void |
setChannel(java.lang.String channel)
The channel to log to. |
void |
setLevel(short level)
The level to log at. |
void |
setLevel(java.lang.String level)
The level to log at. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogOrphanedKeyAction()
Method Detail |
---|
public java.lang.String getChannel()
org.apache.openjpa.Runtime
.
public void setChannel(java.lang.String channel)
org.apache.openjpa.Runtime
.
public short getLevel()
WARN
.
public void setLevel(short level)
WARN
.
public void setLevel(java.lang.String level)
WARN
.
public java.lang.Object orphan(java.lang.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 discovered
fmd
; typically
null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |