Package com.easydesk.om.util
Class ModuleOptionFactory
java.lang.Object
com.easydesk.om.util.ModuleOptionFactory
ModuleOptionFactory
- Author:
- Youngho Cho
-
Constructor Summary
ConstructorsConstructorDescriptionModuleOptionFactory(ModuleAttribute moduleAttribute) ModuleAttribute 에 대한 factory 를 생성한다. -
Method Summary
Modifier and TypeMethodDescriptionadd(AttributeOption option) Adds attribute option to a module.add(AttributeOption option, int order) Adds attribute options to a module.voidadd(List<AttributeOption> options) DOCUMENT ME!static ModuleOptionFactorygetFactory(ModuleAttribute moduleAttribute) ModuleAttribute 에 대한 factory 를 구한다.int: can this be done more efficently?voidshiftAttributeOption(TorqueConnection con, int offset) shift all the module options by 1 for all the non-active options with an order higher or equal than offset
-
Constructor Details
-
ModuleOptionFactory
ModuleAttribute 에 대한 factory 를 생성한다.- Parameters:
moduleAttribute- 대상 ModuleAttribute
-
-
Method Details
-
getFactory
ModuleAttribute 에 대한 factory 를 구한다.- Parameters:
moduleAttribute- 대상 ModuleAttribute- Returns:
- ModuleOptionFactory
-
add
Adds attribute option to a module. Adds module-attribute-option mapping to module.- Parameters:
option- 추가할 AttributeOption- Returns:
- 추가된 ModuleOption
- Throws:
Exception- 추가 중 오류가 발생한 경우
-
add
Adds attribute options to a module.- Parameters:
option- 추가할 AttributeOptionorder- if less than 1 than set the number of options value- Returns:
- 추가된 ModuleOption
- Throws:
Exception- 추가 중 오류가 발생한 경우
-
add
DOCUMENT ME!- Parameters:
options- DOCUMENT ME!- Throws:
Exception- DOCUMENT ME!
-
getLastAttributeOptionOrder
: 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
shift all the module options by 1 for all the non-active options with an order higher or equal than offset- Parameters:
con- 사용할 connectionoffset- 이동을 시작할 순서- Throws:
Exception- 저장 중 오류가 발생한 경우
-