Class AttributeGroup

All Implemented Interfaces:
Cacheable, Deletable, Orderable<AttributeGroup>, Identifiable<Integer>, Serializable, Comparable<AttributeGroup>, ColumnAccessByName, ObjectModel, Persistent

public class AttributeGroup extends BaseAttributeGroup implements Deletable, Orderable<AttributeGroup>, Identifiable<Integer>, Cacheable
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

    • AttributeGroup

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

      public boolean isGlobal() throws TorqueException
      Global ItemType 의 AttributeGroup 인지 아니면 ModuleItemType 의 AttributeGroup 인지
      Returns:
      true/false
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • 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)
      Description copied from interface: Identifiable
      Sets the Id of the Identifiable Entity.
      Specified by:
      setId in interface Identifiable<Integer>
      Parameters:
      id - The new Id of the entity
    • getOrder

      public int getOrder()
      Description copied from class: BaseAttributeGroup
      Get the value of order.
      Specified by:
      getOrder in interface Orderable<AttributeGroup>
      Overrides:
      getOrder in class BaseAttributeGroup
      Returns:
      the value of order as int
    • getModule

      public Module getModule() throws TorqueException
      AttributeGroup 이 속한 Module 을 구한다. Global group 이면 null 이다.
      Returns:
      Module
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • setModule

      public void setModule(Module module)
      DOCUMENT ME!
      Parameters:
      module - DOCUMENT ME!
    • getAttributes

      public List<Attribute> getAttributes() throws TorqueException
      List of Attributes in this group.
      Returns:
      attribute list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getItemTypeAttributes

      public List<ItemTypeAttribute> getItemTypeAttributes() throws Exception
      List of global issuetype-attribute mappings in this group. If there are no attributes in this group, then this returns an empty list.
      Returns:
      ItemTypeAttribute 목록
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getModuleAttribute

      public ModuleAttribute getModuleAttribute(Attribute attribute) throws Exception
      DOCUMENT ME!
      Parameters:
      attribute - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getModuleAttributes

      public List<ModuleAttribute> getModuleAttributes() throws Exception
      List of module-attribute mappings in this group. If there are no attributes, this method returns an empty list.
      Returns:
      ModuleAttribute 목록
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • 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 - 삭제 중 오류가 발생한 경우
      See Also:
    • 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 - 삭제 중 오류가 발생한 경우
      See Also:
    • has

      public boolean has(Attribute attribute) throws TorqueException
      이 group 에 attribute 가 있는지 확인한다.
      Parameters:
      attribute - The attribute to check for the existance of in this group.
      Returns:
      Whether this attribute group has attribute as an attribute.
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleItemType

      public ModuleItemType getModuleItemType() throws Exception
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getAttributeAttributeGroup

      public AttributeAttributeGroup getAttributeAttributeGroup(Attribute attribute) throws Exception
      Retrieves _ATTRIBUTE_ATTRIBUTEGROUP mapping object for this group And the given attribute except user type attribute.
      Parameters:
      attribute - 대상 Attribute
      Returns:
      AttributeAttributeGroup mapping object
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • isDefaultGroup

      public boolean isDefaultGroup()
      이름이 DefaultGroup 인지 여부 reserved group 이다.
      Returns:
      true/false
    • getMethodCache

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

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