Class FloatAttribute

All Implemented Interfaces:
Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent
Direct Known Subclasses:
CorrelateFloatAttribute, CurrencyAttribute, PersonalFloatAttribute

public class FloatAttribute extends NumericAttribute
The skeleton for this class was autogenerated by Torque on: [Sat Dec 04 21:34:36 KST 2021] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
See Also:
  • Constructor Details

    • FloatAttribute

      public FloatAttribute()
      Creates a new FloatAttribute object.
  • Method Details

    • setNumericValue

      public void setNumericValue(String v)
      Description copied from class: NumericAttribute
      문자열로 주어진 숫자 값을 설정한다.
      Overrides:
      setNumericValue in class NumericAttribute
      Parameters:
      v - number String may be have ',' and '.' for example 12,000 or 12,000.00 will be valid.
    • setNumericValue

      public void setNumericValue(Long v)
      Float 는 NumericValue 를 설정하지 않는다. 음수는 무시하고, 값을 형식화하여 value 에만 저장한다.
      Overrides:
      setNumericValue in class AttributeValue
      Parameters:
      v - 설정할 값, null 이면 값을 지운다.
    • setNumericValue

      public void setNumericValue(Float v)
      Float 는 NumericValue 를 설정하지 않는다. 소수점 처리...
      Parameters:
      v - 설정할 값, null 이면 값을 지운다.
    • getFloat

      public Float getFloat()
      값을 Float 로 구한다.
      Returns:
      값이 설정되어 있지 않으면 null
    • floatValue

      public float floatValue()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • add

      public float add(float v)
      DOCUMENT ME!
      Parameters:
      v - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getSortableString

      public String getSortableString()
      indexing 용 SortableString 을 구한다.
      Overrides:
      getSortableString in class NumericAttribute
      Returns:
      SortableString
    • getLowerBound

      public String getLowerBound()
      RangeQuery 에서 LowerBound String 을 구한다.
      Overrides:
      getLowerBound in class NumericAttribute
      Returns:
      SortableString or padded date String
    • getUpperBound

      public String getUpperBound()
      RangeQuery 에서 UpperBound String 을 구한다.
      Overrides:
      getUpperBound in class NumericAttribute
      Returns:
      SortableString or padded date String
    • setProperties

      public void setProperties(AttributeValue attVal1) throws TorqueException
      float 는 소숫점처리때문에 NumericValue 가 처리되지 않음으로 setProperties 는 AttributeValue 의 Default 를 이용한다.
      Overrides:
      setProperties in class AttributeValue
      Parameters:
      attVal1 - 속성을 복사할 원본 AttributeValue
      Throws:
      TorqueException - DOCUMENT ME!
    • floatValue

      public static float floatValue(String str) throws Exception
      DOCUMENT ME!
      Parameters:
      str - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!