Class MChangeLog

    • Field Detail

      • NULL

        public static String NULL
        NULL Value
    • Constructor Detail

      • MChangeLog

        public MChangeLog​(Properties ctx,
                          ResultSet rs,
                          String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        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
    • Method Detail

      • 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()
      • setOldValue

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

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

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

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