Class DateAttribute

All Implemented Interfaces:
Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent
Direct Known Subclasses:
ChainedDateAttribute, CorrelateDateAttribute, DueDateAttribute, MultiValuedCorrelateDateAttribute, NonActivityDateAttribute, PersonalCorrelateDateAttribute, PersonalDateAttribute, StartDateAttribute

public class DateAttribute extends RangeAttribute
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:
  • Field Details

    • RANGE_PATTERN

      public static final Pattern RANGE_PATTERN
      검색을 위하여 RangePattern 을 설정할 수 있도록 한다. '$' 가 존재하면 현재의 시간으로 설정된다. ymd 가 존재하면 그 기간 만큼 더한다. max/min 이 존재하지 않은 수 있다.
    • NOW_MARK

      public static final String NOW_MARK
      입력 DateAttributeValue 값에 설정이 되면 현재시간으로 설정하는 key
      See Also:
  • Constructor Details

    • DateAttribute

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

    • init

      public void init() throws Exception
      DOCUMENT ME!
      Overrides:
      init in class FreeFormAttribute
      Throws:
      Exception - DOCUMENT ME!
    • setResources

      public void setResources(Object resources)
      DOCUMENT ME!
      Overrides:
      setResources in class FreeFormAttribute
      Parameters:
      resources - DOCUMENT ME!
    • loadResources

      public Object loadResources(ActivitySet activitySet) throws Exception
      이 AttributeValue 가 저장되었던 Activity 를 구한다.
      Overrides:
      loadResources in class FreeFormAttribute
      Parameters:
      activitySet - specific activitySet
      Returns:
      Object containing Attribute resources which will be used in setResources.
      Throws:
      Exception - 처리 중 오류가 발생한 경우
    • setDate

      public void setDate(Date date)
      NumericValue 에는 long , value 에는 formatted String
      Parameters:
      date - if set null than value set null
    • getDate

      public Date getDate()
      NumericValue 에 저장된 값을 Date 로 구한다.
      Returns:
      Date NumericValue 값의 Date representation , NumericValue 가 설정되어 있지 않은면 null
    • getDates

      public Date[] getDates()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isExpired

      public boolean isExpired()
      true 는 EndDate 는 이미 기간이 종료된 것을 의미하고 StartDate 는 아직 시작이 안된 것을 의미한다.
      Returns:
      값이 없거나 , 기간이 종료되었으면 true, 아직 유효하면 false
    • isExpired

      public boolean isExpired(Date date)
      true 는 EndDate 는 이미 기간이 종료된 것을 의미하고 StartDate 는 아직 시작이 안된 것을 의미한다. 날짜가 설정이 않되어 있으면 false
      Parameters:
      date - 비교 기준 시간
      Returns:
      값이 없거나 시작일의 경우 비교시간 나중이거나 종료일의 경우 비교시간이 이전이면 false , 아니면 true
    • getSortableString

      public String getSortableString()
      indexing 용 SortableString 을 구한다.
      Specified by:
      getSortableString in class RangeAttribute
      Returns:
      SortableString
    • getLowerBound

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

      public String getUpperBound()
      RangeQuery 에서 UpperBound String 을 구한다.
      Specified by:
      getUpperBound in class RangeAttribute
      Returns:
      SortableString or padded date String
    • getLowerValue

      public String getLowerValue()
      RangeQuery 에서 LowerBound String 을 구한다.
      Specified by:
      getLowerValue in class RangeAttribute
      Returns:
      SortableString or padded date String
    • getUpperValue

      public String getUpperValue()
      RangeQuery 에서 UpperBound String 을 구한다.
      Specified by:
      getUpperValue in class RangeAttribute
      Returns:
      SortableString or padded date String
    • getLowerDate

      public Date getLowerDate()
      Range [yyyy-MM-dd yyyy-MM-dd) 에서 lower date 를 구한다. matching 이 없으면 null 을
      Returns:
      date
    • getUpperDate

      public Date getUpperDate()
      Range [yyyy-MM-dd yyyy-MM-dd) 에서 upper date 를 구한다. matching 이 없으면 null 을
      Returns:
      date
    • getRangePattern

      public Pattern getRangePattern()
      DOCUMENT ME!
      Specified by:
      getRangePattern in class RangeAttribute
      Returns:
      DOCUMENT ME!
    • hasLowerBound

      public boolean hasLowerBound()
      범위 값의 하한(lower bound)을 가지는지 여부. 날짜 속성은 하한을 가지지 않는다.
      Returns:
      항상 false
    • hasUpperBound

      public boolean hasUpperBound()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • hasValue

      public boolean hasValue(Object checkValue) throws Exception
      DOCUMENT ME!
      Overrides:
      hasValue in class StringAttribute
      Parameters:
      checkValue - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!