Class MAcctSchemaDefault

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

public class MAcctSchemaDefault extends X_C_AcctSchema_Default implements ImmutablePOSupport
Default Accounts for MAcctSchema
Version:
$Id: MAcctSchemaDefault.java,v 1.3 2006/07/30 00:58:37 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:
    • Field Details

      • s_log

        protected static CLogger s_log
        Logger
    • Constructor Details

      • MAcctSchemaDefault

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

        public MAcctSchemaDefault(Properties ctx, int C_AcctSchema_ID, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        C_AcctSchema_ID - parent
        trxName - transaction
      • MAcctSchemaDefault

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

        public MAcctSchemaDefault(MAcctSchemaDefault copy)
        Copy constructor
        Parameters:
        copy -
      • MAcctSchemaDefault

        public MAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MAcctSchemaDefault

        public MAcctSchemaDefault(Properties ctx, MAcctSchemaDefault copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • get

        public static MAcctSchemaDefault get(Properties ctx, int C_AcctSchema_ID)
        Get Accounting Schema Default Info
        Parameters:
        ctx - context
        C_AcctSchema_ID - id
        Returns:
        defaults
      • getAcctInfo

        public ArrayList<KeyNamePair> getAcctInfo()
        Get value of all columns that ends with Acct
        Returns:
        KeyNamePair(id, column name) list
      • setValue

        public boolean setValue(String columnName, Integer value)
        Set Value (don't use)
        Parameters:
        columnName - column name
        value - value
        Returns:
        true if value set
      • 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
      • markImmutable

        public MAcctSchemaDefault markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO