Class MAttributeSet

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

public class MAttributeSet extends X_M_AttributeSet implements ImmutablePOSupport
Product Attribute Set
Version:
$Id: MAttributeSet.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

      • MAttributeSet

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

        public MAttributeSet(Properties ctx, int M_AttributeSet_ID, String trxName)
        Standard constructor
        Parameters:
        ctx - context
        M_AttributeSet_ID - id
        trxName - transaction
      • MAttributeSet

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

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

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

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

      • get

        public static MAttributeSet get(int M_AttributeSet_ID)
        Get MAttributeSet from Cache (Immutable)
        Parameters:
        M_AttributeSet_ID - id
        Returns:
        MAttributeSet
      • get

        public static MAttributeSet get(Properties ctx, int M_AttributeSet_ID)
        Get MAttributeSet from Cache (Immutable)
        Parameters:
        ctx - context
        M_AttributeSet_ID - id
        Returns:
        MAttributeSet
      • getCopy

        public static MAttributeSet getCopy(Properties ctx, int M_AttributeSet_ID, String trxName)
        Get updateable copy of MAttributeSet from cache
        Parameters:
        ctx -
        M_AttributeSet_ID -
        Returns:
        MAttributeSet
      • getMAttributes

        public MAttribute[] getMAttributes(boolean instanceAttributes)
        Get instance or product attributes
        Parameters:
        instanceAttributes - true for instance attributes, false for product attributes
        Returns:
        instance or product attribute array
      • isMandatory

        public boolean isMandatory()
        Something is Mandatory
        Returns:
        true if something is mandatory
      • isMandatoryAlways

        public boolean isMandatoryAlways()
        Is always mandatory
        Returns:
        mandatory
      • isMandatoryShipping

        public boolean isMandatoryShipping()
        Is Mandatory when Shipping
        Returns:
        true if required for shipping
      • excludeEntry

        public boolean excludeEntry(int AD_Column_ID, boolean isSOTrx)
        Check if mandatory checking is excluded for a table
        Parameters:
        AD_Column_ID - column of table to check
        isSOTrx - true for sales transactions, false otherwise
        Returns:
        true if excluded
      • excludeTableEntry

        public boolean excludeTableEntry(int AD_Table_ID, boolean isSOTrx)
        Check if mandatory checking is excluded for a table
        Parameters:
        AD_Table_ID - column
        isSOTrx - true for sales transactions, false otherwise
        Returns:
        true if excluded
      • isExcludeLot

        public boolean isExcludeLot(int AD_Column_ID, boolean isSOTrx)
        Check if Lot creation is excluded for a table
        Parameters:
        AD_Column_ID - column of table to check
        isSOTrx - SO
        Returns:
        true if excluded
      • isExcludeSerNo

        public boolean isExcludeSerNo(int AD_Column_ID, boolean isSOTrx)
        Check if SerNo creation is excluded for a table
        Parameters:
        AD_Column_ID - column of table to check
        isSOTrx - true for sales transactions, false otherwise
        Returns:
        true if excluded
      • getLotCharStart

        public String getLotCharStart()
        Get Lot Char Start
        Returns:
        defined start character or «
      • getLotCharEnd

        public String getLotCharEnd()
        Get Lot Char End
        Returns:
        defined end character or »
      • getSerNoCharStart

        public String getSerNoCharStart()
        Get SerNo Char Start
        Returns:
        defined start character or #
      • getSerNoCharEnd

        public String getSerNoCharEnd()
        Get SerNo Char End
        Returns:
        defined end character or empty string
      • 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
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - true if it is a new record
        success - true if save operation was success
        Returns:
        if save was a success
      • markImmutable

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

        public MAttributeUse[] getMAttributeUse()
        Returns:
        Arrays of MAttributeUse