Class AttributeType

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

public class AttributeType extends BaseAttributeType implements Artifactizable, Optionable<AttributeType>, Identifiable<Integer>, Cacheable
속성 유형(AttributeType) OM. 속성 값의 저장 방식(ValidationKey)과 화면 표시 유형을 판단한다.
Author:
Youngho Cho
  • Constructor Details

    • AttributeType

      public AttributeType()
      새로운 AttributeType 인스턴스를 생성한다.
  • 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 BaseAttributeType
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getJavaClass

      public Class<?> getJavaClass() throws ClassNotFoundException
      JavaClassName field 에 해당하는 JavaClass 를 구한다.
      Returns:
      class
      Throws:
      ClassNotFoundException - class 를 찾을 수 없는 경우
    • getValidationKeyEnum

      public AttributeType.ValidationKey getValidationKeyEnum()
      Returns:
      DOCUMENT ME!
    • isUserType

      public boolean isUserType()
      Attribute 가 UserType 인지 확인
      Returns:
      USER_ID 또는 USER_IDS 유형이면 true
    • isOptionType

      public boolean isOptionType() throws TorqueException
      attribute type 의 class name 이 SelectOne 또는 mulit-select 인지를 확인한다.
      Returns:
      boolean
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isNumericType

      public boolean isNumericType() throws TorqueException
      Attribute 가 NumberType 인지 확인
      Returns:
      숫자 유형이면 true
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isFileType

      public boolean isFileType() throws TorqueException
      파일 유형인지 확인한다.
      Returns:
      boolean
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isSelectOne

      public boolean isSelectOne() throws TorqueException
      Option Type 이 SelectOne 인 경우
      Returns:
      boolean
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isSelectMultiple

      public boolean isSelectMultiple()
      Option Type 이 select-many 인 경우
      Returns:
      boolean
    • isMultiValued

      public boolean isMultiValued()
      multi-valued 인 경우
      Returns:
      boolean
    • isFloatNumberType

      public boolean isFloatNumberType()
      Attribute 가 소수점을 가지는 NumberType 인지 확인
      Returns:
      소수점 숫자 유형이면 true
    • isDateType

      public boolean isDateType() throws TorqueException
      날짜 유형인지 확인한다.
      Returns:
      날짜 유형이면 true
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isDueDateType

      public boolean isDueDateType()
      종료시간을 나타내는 날짜 유형인지
      Returns:
      종료시간 날짜 유형이면 true
    • isTextType

      public boolean isTextType()
      text 유형인지 확인한다.
      Returns:
      text 유형이면 true
    • isLongText

      public boolean isLongText()
      Text Type 중 LongText 를 이용할 유형인지.. 주의 : LongText 유형은 Activity 에 OldValue, NewValue 를 저장할 때 압축을 실행한다. 따라서 LongText 의 유형변경은 가급적 하지 않아야 한다.
      Returns:
      LongText 유형이면 true
    • isRangeType

      public boolean isRangeType() throws TorqueException
      attribute type 이 Date 또는 numeric
      Returns:
      boolean
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • isCorrelateType

      public boolean isCorrelateType()
      Attribute Type 이 CorrelatedType 인 경우 이름에 Correlated 을 비교한다.
      Returns:
      boolean
    • isMultiValuedCorrelate

      public boolean isMultiValuedCorrelate()
      이 유형은 ModuleAttributeValuesMap 의 설정에서 personal 과 동일하게 취급한다. 즉 personal 처럼 item 에 속성값의 정보를 저장하지 않는다.
      Returns:
      true/false
    • isPersonal

      public boolean isPersonal()
      Personal 인지 여부를 확인한다.
      Returns:
      true/false
    • isCurrency

      public boolean isCurrency()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isKeyWord

      public boolean isKeyWord()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isSingleTriggeredType

      public boolean isSingleTriggeredType()
      저장할 때 한번 실행하는 속성인지
      Returns:
      저장할 때 한번 실행하는 유형이면 true
    • isPickUpType

      public boolean isPickUpType()
      PickUp Type
      Returns:
      PickUp 유형이면 true
    • isLowerType

      public boolean isLowerType()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isUpperType

      public boolean isUpperType()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isDropDownType

      public boolean isDropDownType()
      DropDown
      Returns:
      DropDown 유형이면 true
    • isRadioType

      public boolean isRadioType()
      CheckBox, RadioBox
      Returns:
      Radio 유형이면 true
    • isCheckBoxType

      public boolean isCheckBoxType()
      CheckBox, RadioBox
      Returns:
      CheckBox 유형이면 true
    • isAsyncType

      public boolean isAsyncType()
      Is Ajax used type ...
      Returns:
      비동기(Ajax) 유형이면 true
    • isToolTipType

      public boolean isToolTipType()
      is Need ToolTip 속성값을 누루면 편집할 수 있는 ToolTip 이 생성된다
      Returns:
      ToolTip 유형이면 true
    • isCounterType

      public boolean isCounterType()
      type 의 이름이 Counter 로 끝나는 것
      Returns:
      Counter 유형이면 true
    • getArtifactType

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

      public AttributeType getParent()
      부모 Attribute 를 구한다.
      Specified by:
      getParent in interface Optionable<AttributeType>
      Returns:
      parent attribute
    • setParent

      public void setParent(AttributeType optionable)
      DOCUMENT ME!
      Specified by:
      setParent in interface Optionable<AttributeType>
      Parameters:
      optionable - DOCUMENT ME!
    • getAttribute

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

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

      public MethodResultCache getMethodCache()
      Specified by:
      getMethodCache in interface Cacheable
      Returns:
      MethodResultCache
    • clear

      public void clear()
      Description copied from interface: Cacheable
      clear this Serializable instance cache
      Specified by:
      clear in interface Cacheable