Class MAttribute

    • Constructor Detail

      • MAttribute

        public MAttribute​(Properties ctx,
                          int M_Attribute_ID,
                          String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_Attribute_ID - id
        trxName - transaction
      • MAttribute

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

        public MAttribute​(MAttribute copy)
        Parameters:
        copy -
    • Method Detail

      • getOfClient

        public static MAttribute[] getOfClient​(Properties ctx,
                                               boolean onlyProductAttributes,
                                               boolean onlyListAttributes)
        Get Attributes Of Client
        Parameters:
        ctx - Properties
        onlyProductAttributes - only Product Attributes
        onlyListAttributes - only List Attributes
        Returns:
        array of attributes
      • getMAttributeValues

        public MAttributeValue[] getMAttributeValues()
        Get Values if List
        Returns:
        Values or null if not list
      • getMAttributeInstance

        public MAttributeInstance getMAttributeInstance​(int M_AttributeSetInstance_ID)
        Get Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - attribute set instance
        Returns:
        Attribute Instance or null
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          MAttributeValue value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - value
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          String value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - string value
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          BigDecimal value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - number value
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          int value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - int
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          KeyNamePair value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - KeyNamePair
      • setMAttributeInstance

        public void setMAttributeInstance​(int M_AttributeSetInstance_ID,
                                          Timestamp value)
        Set Attribute Instance
        Parameters:
        M_AttributeSetInstance_ID - id
        value - Timestamp
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true if can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        AfterSave
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • isAttributeValueTypeReference

        public boolean isAttributeValueTypeReference()