Class MActivity

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

public class MActivity extends X_C_Activity implements ImmutablePOSupport
Activity Model
Version:
$Id: MActivity.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • FR [ 2736867 ] Add caching support to MActivity
  • See Also:
    • Constructor Details

      • MActivity

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

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

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

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

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

        public MActivity(Properties ctx, MActivity copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
      • MActivity

        public MActivity(Properties ctx, int C_Activity_ID, String trxName, String... virtualColumns)
        Parameters:
        ctx -
        C_Activity_ID -
        trxName -
        virtualColumns -
    • Method Details

      • get

        public static MActivity get(int C_Activity_ID)
        Get/Load Activity [CACHED] (immutable)
        Parameters:
        C_Activity_ID -
        Returns:
        activity or null
      • get

        public static MActivity get(Properties ctx, int C_Activity_ID)
        Get/Load Activity [CACHED] (immutable)
        Parameters:
        ctx - context
        C_Activity_ID -
        Returns:
        activity or null
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        After Save. Insert - create tree
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - insert
        success - save success
        Returns:
        true if saved
      • afterDelete

        protected boolean afterDelete(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success -
        Returns:
        deleted
      • markImmutable

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