Class ItemTypeAttributeFactory

java.lang.Object
com.easydesk.om.util.ItemTypeAttributeFactory

public class ItemTypeAttributeFactory extends Object
ItemTypeAttributeFactory
Author:
Youngho Cho
  • Constructor Details

    • ItemTypeAttributeFactory

      public ItemTypeAttributeFactory(ItemType itemType)
      ItemType 에 대한 factory 를 생성한다.
      Parameters:
      itemType - 대상 ItemType
  • Method Details

    • getFactory

      public static ItemTypeAttributeFactory getFactory(ItemType itemType)
      ItemType 에 대한 factory 를 구한다.
      Parameters:
      itemType - 대상 ItemType
      Returns:
      ItemTypeAttributeFactory
    • add

      public ItemTypeAttribute add(Attribute attribute) throws Exception
      Adds itemtype-attribute mapping to item type.
      Parameters:
      attribute - 추가할 Attribute
      Returns:
      추가된 ItemTypeAttribute
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • add

      public void add(List<Attribute> attributes) throws Exception
      DOCUMENT ME!
      Parameters:
      attributes - DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getLastAttribute

      public int getLastAttribute(String attributeType) throws TorqueException
      : can this be done more efficently? gets highest sequence number for itemType-attribute map so that a new ItemTypeAttribute can be added at the end.
      Parameters:
      attributeType - attribute 유형
      Returns:
      가장 큰 순서 번호
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우