Class ItemTypeAttribute

java.lang.Object
com.easydesk.om.BaseItemTypeAttribute
com.easydesk.om.ItemTypeAttribute
All Implemented Interfaces:
Deletable, LocalizableOM, Orderable<ItemTypeAttribute>, Serializable, Comparable<ItemTypeAttribute>, ColumnAccessByName, ObjectModel, Persistent

public class ItemTypeAttribute extends BaseItemTypeAttribute implements Deletable, LocalizableOM, Orderable<ItemTypeAttribute>
The skeleton for this class was autogenerated by Torque on: [Sun Nov 14 20:29:22 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.
  • Constructor Details

    • ItemTypeAttribute

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

    • 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 BaseItemTypeAttribute
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • isDefaultText

      public boolean isDefaultText() throws Exception
      Avoids a problem with intake and not having a getter. It always returns false, but the method is not used in code. Assuming some logic should be used here, see RModuleAttribute for a similar method that is functional.
      Returns:
      false
      Throws:
      Exception - 처리 중 오류가 발생한 경우
    • getAvailableAttributeOptions

      public List<AttributeOption> getAvailableAttributeOptions() throws Exception
      Gets a list of all of the global attributes options that are not associated with this item type
      Returns:
      이 item type 에 연결되지 않은 AttributeOption 목록
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getItemTypeOptions

      public List<ItemTypeOption> getItemTypeOptions() throws TorqueException
      Gets all active associated attribute options. 순서는 PreferedOrder 와 Option Name 순이다.
      Returns:
      active ItemTypeOption 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getItemTypeOptions

      public List<ItemTypeOption> getItemTypeOptions(boolean activeOnly) throws TorqueException
      Gets all associated attribute options. 순서는 PreferedOrder 와 Option Name 순이다.
      Parameters:
      activeOnly - active 인 것만 구할지 여부
      Returns:
      ItemTypeOption 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getItemTypeOption

      public ItemTypeOption getItemTypeOption(AttributeOption option) throws TorqueException, NoSuchElementException
      option 에 해당하는 ItemTypeOption 을 구한다.
      Parameters:
      option - 대상 AttributeOption
      Returns:
      ItemTypeOption or 없으면 null
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
      NoSuchElementException - option 에 해당하는 ItemTypeOption 이 없는 경우
    • has

      public boolean has(AttributeOption option) throws TorqueException
      DOCUMENT ME!
      Parameters:
      option - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user, boolean overrideLock) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • getLocalized

      public Localized[] getLocalized(Locale locale) throws TorqueException
      locale 에 해당하는 localized 정보를 구한다.
      Specified by:
      getLocalized in interface LocalizableOM
      Parameters:
      locale - 대상 locale
      Returns:
      localized[]
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getLocalized

      public Localized getLocalized(AttributeOption option, Locale locale) throws TorqueException
      Global module 에서 option 의 localized 정보(OptionDescription)를 구한다.
      Parameters:
      option - 대상 AttributeOption
      locale - 대상 locale
      Returns:
      OptionDescription
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getFormatter

      public ValueFormatter getFormatter() throws Exception
      Deprecated.
      use getValueFormatter();
      Date, Number, String 등의 Format String 을 구한다. 정의가 안되어 있으며 Attribute 에서 구한다.
      Returns:
      ValueFormatter
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getValueFormatter

      public ValueFormatter getValueFormatter() throws TorqueException
      Date, Number, String 등의 Format String 을 구한다. 정의가 안되어 있으며 Attribute 에서 구한다.
      Returns:
      ValueFormatter
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getValidator

      public EasyDeskValidator getValidator() throws TorqueException
      Global itemTypeAttribute 의 validator 를 구한다.
      Returns:
      Validator for global itemTypeAttribute if not defined return global attribute validator
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getTransitions

      public List<Transition> getTransitions() throws TorqueException
      이 ItemTypeAttribute 에 정의된 Transition List 을 구한다.
      Returns:
      transition list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우