Class ItemTypeOptionFactory

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

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

    • ItemTypeOptionFactory

      public ItemTypeOptionFactory(ItemTypeAttribute itemTypeAttribute)
      ItemTypeAttribute 에 대한 factory 를 생성한다.
      Parameters:
      itemTypeAttribute - 대상 ItemTypeAttribute
  • Method Details

    • getFactory

      public static ItemTypeOptionFactory getFactory(ItemTypeAttribute itemTypeAttribute)
      ItemTypeAttribute 에 대한 factory 를 구한다.
      Parameters:
      itemTypeAttribute - 대상 ItemTypeAttribute
      Returns:
      ItemTypeOptionFactory
    • add

      public ItemTypeOption add(AttributeOption option) throws Exception
      Adds itemtype-attribute-option mapping to module. 순서는 마지막에 추가된다.
      Parameters:
      option - 추가할 AttributeOption
      Returns:
      추가된 ItemTypeOption
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • add

      public ItemTypeOption add(AttributeOption option, int order) throws Exception
      Adds itemtype-attribute-option mapping to module.
      Parameters:
      option - 추가할 AttributeOption
      order - 표시 순서
      Returns:
      추가된 ItemTypeOption
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • add

      public List<ItemTypeOption> add(List<AttributeOption> options) throws Exception
      여러개의 option 을 한 Transaction 에서 add, 주의 사전에 등록된 것이 없는지 먼저 확인이 필요하다.
      Parameters:
      options - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getLastAttributeOption

      public int getLastAttributeOption() throws Exception
      : can this be done more efficently? gets highest sequence number for module-attribute map so that a new ItemTypeOption can be added at the end.
      Returns:
      가장 큰 순서 번호
      Throws:
      Exception - 조회 중 오류가 발생한 경우