Class MCharge

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

public class MCharge extends X_C_Charge implements ImmutablePOSupport
Charge Model
Version:
$Id: MCharge.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • FR [ 2214883 ] Remove SQL code and Replace for Query
  • See Also:
    • Constructor Details

      • MCharge

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

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

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

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

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

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

      • getAccount

        @Deprecated(forRemoval=true, since="11") public static MAccount getAccount(int C_Charge_ID, MAcctSchema as, BigDecimal amount)
        Deprecated, for removal: This API element is subject to removal in a future version.
        use getAccount(Charge, as) instead
        Get Charge Account
        Parameters:
        C_Charge_ID - charge
        as - account schema
        amount - amount NOT USED
        Returns:
        Charge Account or null
      • getAccount

        public static MAccount getAccount(int C_Charge_ID, MAcctSchema as)
        Get Charge Account
        Parameters:
        C_Charge_ID - charge
        as - account schema
        Returns:
        Charge Account or null
      • get

        public static MCharge get(int C_Charge_ID)
        Get MCharge from Cache (immutable)
        Parameters:
        C_Charge_ID - id
        Returns:
        MCharge
      • get

        public static MCharge get(Properties ctx, int C_Charge_ID)
        Get MCharge from Cache (immutable)
        Parameters:
        ctx - context
        C_Charge_ID - id
        Returns:
        MCharge
      • getCopy

        public static MCharge getCopy(Properties ctx, int C_Charge_ID, String trxName)
        Get updateable copy of MCharge from cache
        Parameters:
        ctx -
        C_Charge_ID -
        trxName -
        Returns:
        MCharge
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • markImmutable

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

        protected boolean afterDelete(boolean success)
        Description copied from class: PO
        Executed after Delete operation.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success