Class ModuleAttributeFactory

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

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

    • ModuleAttributeFactory

      public ModuleAttributeFactory(ModuleItemType rmit)
      ModuleItemType 에 대한 factory 를 생성한다.
      Parameters:
      rmit - 대상 ModuleItemType
  • Method Details

    • getFactory

      public static ModuleAttributeFactory getFactory(ModuleItemType rmit)
      ModuleItemType 에 대한 factory 를 구한다.
      Parameters:
      rmit - 대상 ModuleItemType
      Returns:
      ModuleAttributeFactory
    • add

      public void add(List<Attribute> attributes) throws Exception
      여러 속성을 ModuleAttribute 로 등록한다. 이미 등록된 속성은 제외한다.
      Parameters:
      attributes - 등록할 Attribute 목록
      Throws:
      Exception - 등록 중 오류가 발생한 경우
    • add

      public ModuleAttribute add(Attribute attribute) throws Exception
      Adds module-attribute mapping to module.
      Parameters:
      attribute - 추가할 Attribute
      Returns:
      ModuleAttribute
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • getLastAttributeOrder

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