Class MFactAcct

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

public class MFactAcct extends X_Fact_Acct
Accounting Fact Model
Version:
$Id: MFactAcct.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, http://www.arhipac.ro
  • FR [ 2079083 ] Add MFactAcct.deleteEx method
  • See Also:
    • Constructor Details

      • MFactAcct

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

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

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

      • delete

        @Deprecated public static int delete(int AD_Table_ID, int Record_ID, String trxName)
        Deprecated.
        Since ADempiere 3.5.2a; please use deleteEx(int, int, String) instead.
        Delete Accounting
        Parameters:
        AD_Table_ID - table
        Record_ID - record
        trxName - transaction
        Returns:
        number of rows deleted or -1 for error
      • deleteEx

        public static int deleteEx(int AD_Table_ID, int Record_ID, String trxName) throws DBException
        Delete Fact_Acct records via table and record id
        Parameters:
        AD_Table_ID - table
        Record_ID - record
        trxName - transaction
        Returns:
        number of rows deleted
        Throws:
        DBException - on database exception
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_Fact_Acct
        Returns:
        info
      • getMAccount

        public MAccount getMAccount()
        Get MAccount from record
        Returns:
        Valid Account Combination
      • createRecordIdQuery

        public static final Query createRecordIdQuery(int AD_Table_ID, int Record_ID, int C_AcctSchema_ID, String trxName)
        Create Fact_Acct query for table and record id
        Parameters:
        AD_Table_ID -
        Record_ID -
        C_AcctSchema_ID -
        trxName -
        Returns:
        query