Class ModuleOptionFactory

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

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

    • ModuleOptionFactory

      public ModuleOptionFactory(ModuleAttribute moduleAttribute)
      ModuleAttribute 에 대한 factory 를 생성한다.
      Parameters:
      moduleAttribute - 대상 ModuleAttribute
  • Method Details

    • getFactory

      public static ModuleOptionFactory getFactory(ModuleAttribute moduleAttribute)
      ModuleAttribute 에 대한 factory 를 구한다.
      Parameters:
      moduleAttribute - 대상 ModuleAttribute
      Returns:
      ModuleOptionFactory
    • add

      public ModuleOption add(AttributeOption option) throws Exception
      Adds attribute option to a module. Adds module-attribute-option mapping to module.
      Parameters:
      option - 추가할 AttributeOption
      Returns:
      추가된 ModuleOption
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • add

      public ModuleOption add(AttributeOption option, int order) throws Exception
      Adds attribute options to a module.
      Parameters:
      option - 추가할 AttributeOption
      order - if less than 1 than set the number of options value
      Returns:
      추가된 ModuleOption
      Throws:
      Exception - 추가 중 오류가 발생한 경우
    • add

      public void add(List<AttributeOption> options) throws Exception
      DOCUMENT ME!
      Parameters:
      options - DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • getLastAttributeOptionOrder

      public int getLastAttributeOptionOrder() throws TorqueException
      : 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.
      Returns:
      가장 큰 순서 번호
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • shiftAttributeOption

      public void shiftAttributeOption(TorqueConnection con, int offset) throws Exception
      shift all the module options by 1 for all the non-active options with an order higher or equal than offset
      Parameters:
      con - 사용할 connection
      offset - 이동을 시작할 순서
      Throws:
      Exception - 저장 중 오류가 발생한 경우