Class MChangeLog

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_ChangeLog, I_Persistent, Evaluatee

public class MChangeLog extends X_AD_ChangeLog
Change Log Model
Version:
$Id: MChangeLog.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • NULL

      public static String NULL
      NULL Value
  • Constructor Details

    • MChangeLog

      public MChangeLog(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MChangeLog

      public MChangeLog(Properties ctx, String AD_ChangeLog_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_ChangeLog_UU - UUID key
      trxName - Transaction
    • MChangeLog

      public MChangeLog(Properties ctx, int AD_ChangeLog_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_ChangeLog_ID - id
      trxName - transaction
    • MChangeLog

      public MChangeLog(Properties ctx, int AD_ChangeLog_ID, String TrxName, int AD_Session_ID, int AD_Table_ID, int AD_Column_ID, int Record_ID, int AD_Client_ID, int AD_Org_ID, Object OldValue, Object NewValue)
      Deprecated.
      Preserved for backward compatibility
    • MChangeLog

      public MChangeLog(Properties ctx, int AD_ChangeLog_ID, String TrxName, int AD_Session_ID, int AD_Table_ID, int AD_Column_ID, int Record_ID, int AD_Client_ID, int AD_Org_ID, Object OldValue, Object NewValue, String event)
      Full Constructor
      Parameters:
      ctx - context
      AD_ChangeLog_ID - 0 for new change log
      TrxName - transaction
      AD_Session_ID - session
      AD_Table_ID - table
      AD_Column_ID - column
      Record_ID - record
      AD_Client_ID - client
      AD_Org_ID - org
      OldValue - old
      NewValue - new
    • MChangeLog

      public MChangeLog(Properties ctx, int AD_ChangeLog_ID, String TrxName, int AD_Session_ID, int AD_Table_ID, int AD_Column_ID, int Record_ID, String Record_UU, int AD_Client_ID, int AD_Org_ID, Object OldValue, Object NewValue, String event)
      Full Constructor
      Parameters:
      ctx - context
      AD_ChangeLog_ID - 0 for new change log
      TrxName - transaction
      AD_Session_ID - session
      AD_Table_ID - table
      AD_Column_ID - column
      Record_ID - record
      Record_UU - record UUID
      AD_Client_ID - client
      AD_Org_ID - org
      OldValue - old
      NewValue - new
  • Method Details

    • isLogged

      public static boolean isLogged(int AD_Table_ID)
      Do we track changes for this table
      Parameters:
      AD_Table_ID - table
      Returns:
      true if changes are tracked
    • resetLoggedList

      public static void resetLoggedList()
      Reset logged table list cache
    • setOldValue

      public void setOldValue(Object OldValue)
      Set Old Value
      Parameters:
      OldValue - old
    • isOldNull

      public boolean isOldNull()
      Is Old Value Null
      Returns:
      true if old value is null
    • setNewValue

      public void setNewValue(Object NewValue)
      Set New Value
      Parameters:
      NewValue - new
    • isNewNull

      public boolean isNewNull()
      Is New Value Null
      Returns:
      true if new value is null