Package com.easydesk.om.util
Class ItemTypeOptionFactory
java.lang.Object
com.easydesk.om.util.ItemTypeOptionFactory
ItemTypeOptionFactory
- Author:
- Youngho Cho
-
Constructor Summary
ConstructorsConstructorDescriptionItemTypeOptionFactory(ItemTypeAttribute itemTypeAttribute) ItemTypeAttribute 에 대한 factory 를 생성한다. -
Method Summary
Modifier and TypeMethodDescriptionadd(AttributeOption option) Adds itemtype-attribute-option mapping to module.add(AttributeOption option, int order) Adds itemtype-attribute-option mapping to module.add(List<AttributeOption> options) 여러개의 option 을 한 Transaction 에서 add, 주의 사전에 등록된 것이 없는지 먼저 확인이 필요하다.static ItemTypeOptionFactorygetFactory(ItemTypeAttribute itemTypeAttribute) ItemTypeAttribute 에 대한 factory 를 구한다.int: can this be done more efficently?
-
Constructor Details
-
ItemTypeOptionFactory
ItemTypeAttribute 에 대한 factory 를 생성한다.- Parameters:
itemTypeAttribute- 대상 ItemTypeAttribute
-
-
Method Details
-
getFactory
ItemTypeAttribute 에 대한 factory 를 구한다.- Parameters:
itemTypeAttribute- 대상 ItemTypeAttribute- Returns:
- ItemTypeOptionFactory
-
add
Adds itemtype-attribute-option mapping to module. 순서는 마지막에 추가된다.- Parameters:
option- 추가할 AttributeOption- Returns:
- 추가된 ItemTypeOption
- Throws:
Exception- 추가 중 오류가 발생한 경우
-
add
Adds itemtype-attribute-option mapping to module.- Parameters:
option- 추가할 AttributeOptionorder- 표시 순서- Returns:
- 추가된 ItemTypeOption
- Throws:
Exception- 추가 중 오류가 발생한 경우
-
add
여러개의 option 을 한 Transaction 에서 add, 주의 사전에 등록된 것이 없는지 먼저 확인이 필요하다.- Parameters:
options- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getLastAttributeOption
: 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- 조회 중 오류가 발생한 경우
-