Class MAttributeSet

    • Constructor Detail

      • 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)
        Parameters:
        copy -
    • Method Detail

      • get

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

        public static MAttributeSet get​(Properties ctx,
                                        int M_AttributeSet_ID)
        Get MAttributeSet from Cache
        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 Attribute Array
        Parameters:
        instanceAttributes - true if for instance
        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)
        Exclude column entry
        Parameters:
        AD_Column_ID - column
        isSOTrx - sales order
        Returns:
        true if excluded
      • excludeTableEntry

        public boolean excludeTableEntry​(int AD_Table_ID,
                                         boolean isSOTrx)
        Exclude table entry
        Parameters:
        AD_Table_ID - column
        isSOTrx - sales order
        Returns:
        true if excluded
      • isExcludeLot

        public boolean isExcludeLot​(int AD_Column_ID,
                                    boolean isSOTrx)
        Exclude Lot creation
        Parameters:
        AD_Column_ID - column
        isSOTrx - SO
        Returns:
        true if excluded
      • isExcludeSerNo

        public boolean isExcludeSerNo​(int AD_Column_ID,
                                      boolean isSOTrx)
        Exclude SerNo creation
        Parameters:
        AD_Column_ID - column
        isSOTrx - SO
        Returns:
        true if excluded
      • getLotCharStart

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

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

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

        public String getSerNoCharEnd()
        Get SerNo Char End
        Returns:
        defined or none
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save. - set instance attribute flag
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save. - Verify Instance Attribute
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success