Package com.easydesk.om.util
Class ModuleAttributeFactory
java.lang.Object
com.easydesk.om.util.ModuleAttributeFactory
ModuleAttributeFactory
- Author:
- Youngho Cho
-
Constructor Summary
ConstructorsConstructorDescriptionModuleItemType 에 대한 factory 를 생성한다. -
Method Summary
Modifier and TypeMethodDescriptionAdds module-attribute mapping to module.void여러 속성을 ModuleAttribute 로 등록한다.static ModuleAttributeFactorygetFactory(ModuleItemType rmit) ModuleItemType 에 대한 factory 를 구한다.intgetLastAttributeOrder(String attributeType) : can this be done more efficently?
-
Constructor Details
-
ModuleAttributeFactory
ModuleItemType 에 대한 factory 를 생성한다.- Parameters:
rmit- 대상 ModuleItemType
-
-
Method Details
-
getFactory
ModuleItemType 에 대한 factory 를 구한다.- Parameters:
rmit- 대상 ModuleItemType- Returns:
- ModuleAttributeFactory
-
add
여러 속성을 ModuleAttribute 로 등록한다. 이미 등록된 속성은 제외한다.- Parameters:
attributes- 등록할 Attribute 목록- Throws:
Exception- 등록 중 오류가 발생한 경우
-
add
Adds module-attribute mapping to module.- Parameters:
attribute- 추가할 Attribute- Returns:
- ModuleAttribute
- Throws:
Exception- 추가 중 오류가 발생한 경우
-
getLastAttributeOrder
: 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- 조회 중 오류가 발생한 경우
-