Class LogOrphanedKeyAction

  • All Implemented Interfaces:
    OrphanedKeyAction

    public class LogOrphanedKeyAction
    extends java.lang.Object
    implements OrphanedKeyAction
    Log a message when an orphaned key is discovered.
    Since:
    0.3.2.2
    Author:
    Abe White
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • LogOrphanedKeyAction

        public LogOrphanedKeyAction()
    • Method Detail

      • getChannel

        public java.lang.String getChannel()
        The channel to log to. Defaults to org.apache.openjpa.Runtime.
      • setChannel

        public void setChannel​(java.lang.String channel)
        The channel to log to. Defaults to org.apache.openjpa.Runtime.
      • getLevel

        public short getLevel()
        The level to log at. Defaults to WARN.
      • setLevel

        public void setLevel​(short level)
        The level to log at. Defaults to WARN.
      • setLevel

        public void setLevel​(java.lang.String level)
        The level to log at. Defaults to WARN.
      • orphan

        public java.lang.Object orphan​(java.lang.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