Class MAttributeInstance

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

public class MAttributeInstance extends X_M_AttributeInstance
Attribute Instance Model (Instance of attribute for a particular attribute set instance record)
Version:
$Id: MAttributeInstance.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MAttributeInstance

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

      public MAttributeInstance(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MAttributeInstance

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

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, String trxName)
      General Constructor
      Parameters:
      ctx - context
      M_Attribute_ID - attribute
      M_AttributeSetInstance_ID - instance
      trxName - transaction
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, String Value, String trxName)
      String Value Constructor
      Parameters:
      ctx - context
      M_Attribute_ID - attribute
      M_AttributeSetInstance_ID - instance
      Value - string value
      trxName - transaction
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, BigDecimal BDValue, String trxName)
      Number Value Constructor
      Parameters:
      ctx - context
      M_Attribute_ID - attribute
      M_AttributeSetInstance_ID - instance
      BDValue - number value
      trxName - transaction
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, int M_AttributeValue_ID, String Value, String trxName)
      Selection Value Constructor
      Parameters:
      ctx - context
      M_Attribute_ID - attribute
      M_AttributeSetInstance_ID - instance
      M_AttributeValue_ID - selection
      Value - String representation for fast display
      trxName - transaction
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, int Value, String trxName)
      Integer Value Constructor
      Parameters:
      ctx -
      M_Attribute_ID -
      M_AttributeSetInstance_ID -
      Value -
      trxName -
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, Timestamp value, String trxName)
      TimeStamp Value Constructor
      Parameters:
      ctx -
      M_Attribute_ID -
      M_AttributeSetInstance_ID -
      value -
      trxName -
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, String multiSelectValue, String multiSelectDisplayValue, String trxName)
      Multiple Selection Value Constructor
      Parameters:
      ctx -
      M_Attribute_ID -
      M_AttributeSetInstance_ID -
      multiSelectValue -
      multiSelectDisplayValue -
      trxName -
    • MAttributeInstance

      public MAttributeInstance(Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, KeyNamePair value, String trxName)
      KeyNamePair Value Constructor Use for table direct or table type reference
      Parameters:
      ctx -
      M_Attribute_ID -
      M_AttributeSetInstance_ID -
      value -
      trxName -
    • MAttributeInstance

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

    • setValueNumber

      public void setValueNumber(BigDecimal ValueNumber)
      Set ValueNumber
      Specified by:
      setValueNumber in interface I_M_AttributeInstance
      Overrides:
      setValueNumber in class X_M_AttributeInstance
      Parameters:
      ValueNumber - number
    • setValueDate

      public void setValueDate(Timestamp valueDate)
      Set valueDate
      Specified by:
      setValueDate in interface I_M_AttributeInstance
      Overrides:
      setValueDate in class X_M_AttributeInstance
      Parameters:
      valueDate -
    • setMultiSelectValueAndDisplay

      public void setMultiSelectValueAndDisplay(String value, String displayValue)
      Set valueMultipleSelection
      Parameters:
      value - - comma separated IDs
      displayValue - - comma separated display values
    • setValueInt

      public void setValueInt(int valueInt)
      Set ValueInt
      Parameters:
      valueInt -
    • getValueInt

      public int getValueInt()
      Get Value as Integer
      Returns:
      integer value
    • setValueKeyNamePair

      public void setValueKeyNamePair(KeyNamePair value)
      Set Value as keyNamePair
      Parameters:
      value -
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_M_AttributeInstance
      Returns:
      info