Class MAcctProcessor

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, AdempiereProcessor, AdempiereProcessor2, I_C_AcctProcessor, I_Persistent, Evaluatee

public class MAcctProcessor extends X_C_AcctProcessor implements AdempiereProcessor, AdempiereProcessor2
Accounting Processor Model
Version:
$Id: MAcctProcessor.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com, www.e-evolution.com
  • RF [ 2214883 ] Remove SQL code and Replace for Query https://sourceforge.net/p/adempiere/feature-requests/557/
  • See Also:
    • Constructor Details

      • MAcctProcessor

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

        public MAcctProcessor(Properties ctx, int C_AcctProcessor_ID, String trxName)
        Standard Construvtor
        Parameters:
        ctx - context
        C_AcctProcessor_ID - id
        trxName - transaction
      • MAcctProcessor

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

        public MAcctProcessor(MClient client, int Supervisor_ID)
        Parent Constructor
        Parameters:
        client - parent
        Supervisor_ID - admin
    • Method Details

      • getActive

        public static MAcctProcessor[] getActive(Properties ctx)
        Get Active
        Parameters:
        ctx - context
        Returns:
        active processors
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - true if it is a new record
        Returns:
        true if record can be saved
      • getServerID

        public String getServerID()
        Get Server ID
        Specified by:
        getServerID in interface AdempiereProcessor
        Returns:
        id
      • getDateNextRun

        public Timestamp getDateNextRun(boolean requery)
        Get Date Next Run
        Specified by:
        getDateNextRun in interface AdempiereProcessor
        Parameters:
        requery - requery
        Returns:
        date next run
      • getLogs

        public AdempiereProcessorLog[] getLogs()
        Get Logs
        Specified by:
        getLogs in interface AdempiereProcessor
        Returns:
        logs
      • deleteLog

        public int deleteLog()
        Delete old Request Log
        Returns:
        number of records
      • getFrequencyType

        public String getFrequencyType()
        Description copied from interface: AdempiereProcessor
        Get the frequency type
        Specified by:
        getFrequencyType in interface AdempiereProcessor
        Returns:
        frequency type
      • getFrequency

        public int getFrequency()
        Description copied from interface: AdempiereProcessor
        Get the frequency
        Specified by:
        getFrequency in interface AdempiereProcessor
        Returns:
        frequency
      • isIgnoreProcessingTime

        public boolean isIgnoreProcessingTime()
        Specified by:
        isIgnoreProcessingTime in interface AdempiereProcessor2
        Returns:
        True if previous DateNextRun should be use as base to calculate the new DateNextRun value. False to follow the legacy behaviour where current server time is use as the base to calculate the new DateNextRun value.
      • getScheduleType

        public String getScheduleType()
        Description copied from interface: AdempiereProcessor
        Get the schedule type
        Specified by:
        getScheduleType in interface AdempiereProcessor
        Returns:
        schedule type
      • getCronPattern

        public String getCronPattern()
        Description copied from interface: AdempiereProcessor
        Get the cron pattern
        Specified by:
        getCronPattern in interface AdempiereProcessor
        Returns:
        cron pattern