Class TimeScope

All Implemented Interfaces:
Artifactizable, Optionable<TimeScope>, Identifiable<Integer>, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class TimeScope extends BaseTimeScope implements Artifactizable, Optionable<TimeScope>, Identifiable<Integer>
Author:
Youngho Cho
  • Constructor Details

    • TimeScope

      public TimeScope()
      새로운 TimeScope 인스턴스를 생성한다.
  • Method Details

    • getId

      public Integer getId()
      Description copied from interface: Identifiable
      Get the Id of the Identifiable Entity.
      Specified by:
      getId in interface Identifiable<Integer>
      Returns:
      The Id of the entity.
    • setId

      public void setId(Integer id)
      Identifiable implementation
      Specified by:
      setId in interface Identifiable<Integer>
      Parameters:
      id - The new Id of the entity
    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseTimeScope
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getArtifactType

      public ItemType getArtifactType() throws TorqueException
      itemable Object 의 itemType
      Specified by:
      getArtifactType in interface Artifactizable
      Returns:
      itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getParent

      public TimeScope getParent()
      same as getDependTypeRelatedByParentId() Optionable impelements
      Specified by:
      getParent in interface Optionable<TimeScope>
      Returns:
      DependType which is parent DependType
    • setParent

      public void setParent(TimeScope optionable)
      부모 TimeScope 를 설정한다.
      Specified by:
      setParent in interface Optionable<TimeScope>
      Parameters:
      optionable - 부모 TimeScope
    • getAttribute

      public Attribute getAttribute() throws TorqueException
      DOCUMENT ME!
      Specified by:
      getAttribute in interface Optionable<TimeScope>
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getAttributeOption

      public AttributeOption getAttributeOption() throws TorqueException
      DOCUMENT ME!
      Specified by:
      getAttributeOption in interface Optionable<TimeScope>
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getDuration

      public Date[] getDuration()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • setDuration

      public void setDuration(Date[] duration)
      DOCUMENT ME!
      Parameters:
      duration - DOCUMENT ME!
    • getRange

      public Date[] getRange(Date date, boolean includeOffset)
      Parameters:
      date - startDate
      includeOffset - Monthly 인 경우 offset 을 포함하면 6주 를 처리
      Returns:
      Date array [ min date, max date ]