Package com.easydesk.om
Class AttributeOption
java.lang.Object
com.easydesk.om.BaseAttributeOption
com.easydesk.om.AttributeOption
- All Implemented Interfaces:
Artifactizable,LocalizableOM,Identifiable<Integer>,Serializable,ColumnAccessByName,ObjectModel,Persistent
public class AttributeOption
extends BaseAttributeOption
implements LocalizableOM, Identifiable<Integer>, Artifactizable
AttributeOption
- Author:
- Youngho Cho
-
Field Summary
Fields inherited from class com.easydesk.om.BaseAttributeOption
collActivitysRelatedByNewOptionId, collActivitysRelatedByOldOptionId, collAnonymousNotificationFilters, collAttributeValues, collEasyDeskValidators, collItemTypeOptions, collLocalizedConditionInfos, collLocalizedErrorInfos, collLocalizedListInfos, collLocalizedOptionInfosRelatedByLangId, collLocalizedOptionInfosRelatedByOptionId, collLocalizedSequenceInfos, collLocalizedTransitionInfos, collModuleOptions, collNotificationFilters, collOptionOptionsRelatedByOption1Id, collOptionOptionsRelatedByOption2Id, collQueryValues, collReportHeads, collUserAttributeOptionsFields inherited from interface com.easydesk.om.Artifactizable
ARTIFACTIZABLE_PATTERN, ATTRIBUTE_MAP_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of AttributeOptions which are ancestors of this AttributeOption.ArtifactType 을 구한다.getAttributeOptionWithInheritance(OptionRelationship relationShip, ItemType itemType, Module module) 이 AttributeOption 과 관련이 있는 AttributeOption 을 구한다.이름에 해당하는 자식 AttributeOption 을 구한다.Returns a list of AttributeOption's which are children of this AttributeOption.getChildren(OptionRelationship optionRelationship) Returns a list of AttributeOption's which are children of this AttributeOption.static Comparator<AttributeOption> Compares numeric value and in cases where the numeric value is the same it compares the display values.static Comparator<AttributeOption> getComparator(int mode) DOCUMENT ME!자손의 이름을 구한다.Returns a list of AttributeOptions which are descendants of this AttributeOption.getId()Get the Id of the Identifiable Entity.getLocalized(Locale locale) locale 에 해당하는 localized 정보를 구한다.Returns direct parent of this child.Returns a list of AttributeOption's which are parents of this AttributeOption.getParents(OptionRelationship optionRelationship) Returns a list of AttributeOption's which are parents of this AttributeOption.Root 를 제외한 부모경로이름/이름 을 구한다.DOCUMENT ME!booleanDoes this AttributeOption have children?booleanhasChildren(String name) Does this AttributeOption have a child of the given name?booleanisAncestorsOf(AttributeOption descendant) Checks to see if this Attribute option is an ancestor of the passed in AttributeOption descendant.booleanisChildOf(AttributeOption parent) Checks to see if this Attribute option is a child of the passed in AttributeOption parent.booleanisDescendantOf(AttributeOption ancestor) Checks to see if this Attribute option is a descendant of the passed in AttributeOption ancestor.booleanisParentOf(AttributeOption child) Checks to see if this Attribute option is a parent of the passed in AttributeOption child.booleanisRoot()Top OptionId Checkvoidsave()Stores the object in the database.voidIdentifiable implementationMethods inherited from class com.easydesk.om.BaseAttributeOption
addActivityRelatedByNewOptionId, addActivityRelatedByNewOptionId, addActivityRelatedByOldOptionId, addActivityRelatedByOldOptionId, addAnonymousNotificationFilter, addAnonymousNotificationFilter, addAttributeValue, addAttributeValue, addEasyDeskValidator, addEasyDeskValidator, addItemTypeOption, addItemTypeOption, addLocalizedConditionInfo, addLocalizedConditionInfo, addLocalizedErrorInfo, addLocalizedErrorInfo, addLocalizedListInfo, addLocalizedListInfo, addLocalizedOptionInfoRelatedByLangId, addLocalizedOptionInfoRelatedByLangId, addLocalizedOptionInfoRelatedByOptionId, addLocalizedOptionInfoRelatedByOptionId, addLocalizedSequenceInfo, addLocalizedSequenceInfo, addLocalizedTransitionInfo, addLocalizedTransitionInfo, addModuleOption, addModuleOption, addNotificationFilter, addNotificationFilter, addOptionOptionRelatedByOption1Id, addOptionOptionRelatedByOption1Id, addOptionOptionRelatedByOption2Id, addOptionOptionRelatedByOption2Id, addQueryValue, addQueryValue, addReportHead, addReportHead, addUserAttributeOption, addUserAttributeOption, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getActivityRelatedByNewOptionIds, getActivityRelatedByNewOptionIds, getActivityRelatedByNewOptionIds, getActivityRelatedByNewOptionIds, getActivityRelatedByNewOptionIdsJoinActivitySet, getActivityRelatedByNewOptionIdsJoinActivitySet, getActivityRelatedByNewOptionIdsJoinAttachment, getActivityRelatedByNewOptionIdsJoinAttachment, getActivityRelatedByNewOptionIdsJoinAttribute, getActivityRelatedByNewOptionIdsJoinAttribute, getActivityRelatedByNewOptionIdsJoinAttributeOptionRelatedByOldOptionId, getActivityRelatedByNewOptionIdsJoinAttributeOptionRelatedByOldOptionId, getActivityRelatedByNewOptionIdsJoinDepend, getActivityRelatedByNewOptionIdsJoinDepend, getActivityRelatedByNewOptionIdsJoinEasyDeskUserImplRelatedByNewUserId, getActivityRelatedByNewOptionIdsJoinEasyDeskUserImplRelatedByNewUserId, getActivityRelatedByNewOptionIdsJoinEasyDeskUserImplRelatedByOldUserId, getActivityRelatedByNewOptionIdsJoinEasyDeskUserImplRelatedByOldUserId, getActivityRelatedByNewOptionIdsJoinItem, getActivityRelatedByNewOptionIdsJoinItem, getActivityRelatedByOldOptionIds, getActivityRelatedByOldOptionIds, getActivityRelatedByOldOptionIds, getActivityRelatedByOldOptionIds, getActivityRelatedByOldOptionIdsJoinActivitySet, getActivityRelatedByOldOptionIdsJoinActivitySet, getActivityRelatedByOldOptionIdsJoinAttachment, getActivityRelatedByOldOptionIdsJoinAttachment, getActivityRelatedByOldOptionIdsJoinAttribute, getActivityRelatedByOldOptionIdsJoinAttribute, getActivityRelatedByOldOptionIdsJoinAttributeOptionRelatedByNewOptionId, getActivityRelatedByOldOptionIdsJoinAttributeOptionRelatedByNewOptionId, getActivityRelatedByOldOptionIdsJoinDepend, getActivityRelatedByOldOptionIdsJoinDepend, getActivityRelatedByOldOptionIdsJoinEasyDeskUserImplRelatedByNewUserId, getActivityRelatedByOldOptionIdsJoinEasyDeskUserImplRelatedByNewUserId, getActivityRelatedByOldOptionIdsJoinEasyDeskUserImplRelatedByOldUserId, getActivityRelatedByOldOptionIdsJoinEasyDeskUserImplRelatedByOldUserId, getActivityRelatedByOldOptionIdsJoinItem, getActivityRelatedByOldOptionIdsJoinItem, getAnonymousNotificationFilters, getAnonymousNotificationFilters, getAnonymousNotificationFilters, getAnonymousNotificationFilters, getAnonymousNotificationFiltersJoinActivitySetType, getAnonymousNotificationFiltersJoinActivitySetType, getAnonymousNotificationFiltersJoinEasyDeskModule, getAnonymousNotificationFiltersJoinEasyDeskModule, getAttribute, getAttribute, getAttributeId, getAttributeValues, getAttributeValues, getAttributeValues, getAttributeValues, getAttributeValuesJoinAttribute, getAttributeValuesJoinAttribute, getAttributeValuesJoinDepend, getAttributeValuesJoinDepend, getAttributeValuesJoinEasyDeskUserImpl, getAttributeValuesJoinEasyDeskUserImpl, getAttributeValuesJoinItem, getAttributeValuesJoinItem, getByName, getByPeerName, getByPosition, getEasyDeskValidators, getEasyDeskValidators, getEasyDeskValidators, getEasyDeskValidators, getEasyDeskValidatorsJoinAttribute, getEasyDeskValidatorsJoinAttribute, getEasyDeskValidatorsJoinEasyDeskModule, getEasyDeskValidatorsJoinEasyDeskModule, getEasyDeskValidatorsJoinItemType, getEasyDeskValidatorsJoinItemType, getFieldNames, getForeignKeyForAttribute, getItemTypeOptions, getItemTypeOptions, getItemTypeOptions, getItemTypeOptions, getItemTypeOptionsJoinItemType, getItemTypeOptionsJoinItemType, getLocalizedConditionInfos, getLocalizedConditionInfos, getLocalizedConditionInfos, getLocalizedConditionInfos, getLocalizedConditionInfosJoinCondition, getLocalizedConditionInfosJoinCondition, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfosJoinEasyDeskModule, getLocalizedErrorInfosJoinEasyDeskModule, getLocalizedErrorInfosJoinEasyError, getLocalizedErrorInfosJoinEasyError, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfos, getLocalizedListInfosJoinEasyDeskModule, getLocalizedListInfosJoinEasyDeskModule, getLocalizedListInfosJoinMITList, getLocalizedListInfosJoinMITList, getLocalizedOptionInfoRelatedByLangIds, getLocalizedOptionInfoRelatedByLangIds, getLocalizedOptionInfoRelatedByLangIds, getLocalizedOptionInfoRelatedByLangIds, getLocalizedOptionInfoRelatedByLangIdsJoinAttributeOptionRelatedByOptionId, getLocalizedOptionInfoRelatedByLangIdsJoinAttributeOptionRelatedByOptionId, getLocalizedOptionInfoRelatedByLangIdsJoinEasyDeskModule, getLocalizedOptionInfoRelatedByLangIdsJoinEasyDeskModule, getLocalizedOptionInfoRelatedByLangIdsJoinItemType, getLocalizedOptionInfoRelatedByLangIdsJoinItemType, getLocalizedOptionInfoRelatedByOptionIds, getLocalizedOptionInfoRelatedByOptionIds, getLocalizedOptionInfoRelatedByOptionIds, getLocalizedOptionInfoRelatedByOptionIds, getLocalizedOptionInfoRelatedByOptionIdsJoinAttributeOptionRelatedByLangId, getLocalizedOptionInfoRelatedByOptionIdsJoinAttributeOptionRelatedByLangId, getLocalizedOptionInfoRelatedByOptionIdsJoinEasyDeskModule, getLocalizedOptionInfoRelatedByOptionIdsJoinEasyDeskModule, getLocalizedOptionInfoRelatedByOptionIdsJoinItemType, getLocalizedOptionInfoRelatedByOptionIdsJoinItemType, getLocalizedSequenceInfos, getLocalizedSequenceInfos, getLocalizedSequenceInfos, getLocalizedSequenceInfos, getLocalizedSequenceInfosJoinAttribute, getLocalizedSequenceInfosJoinAttribute, getLocalizedSequenceInfosJoinWorkflow, getLocalizedSequenceInfosJoinWorkflow, getLocalizedTransitionInfos, getLocalizedTransitionInfos, getLocalizedTransitionInfos, getLocalizedTransitionInfos, getLocalizedTransitionInfosJoinTransition, getLocalizedTransitionInfosJoinTransition, getModuleOptions, getModuleOptions, getModuleOptions, getModuleOptions, getModuleOptionsJoinEasyDeskModule, getModuleOptionsJoinEasyDeskModule, getModuleOptionsJoinItemType, getModuleOptionsJoinItemType, getName, getNotificationFilters, getNotificationFilters, getNotificationFilters, getNotificationFilters, getNotificationFiltersJoinActivitySetType, getNotificationFiltersJoinActivitySetType, getNotificationFiltersJoinEasyDeskModule, getNotificationFiltersJoinEasyDeskModule, getNotificationFiltersJoinEasyDeskUserImpl, getNotificationFiltersJoinEasyDeskUserImpl, getOptionId, getOptionOptionRelatedByOption1Ids, getOptionOptionRelatedByOption1Ids, getOptionOptionRelatedByOption1Ids, getOptionOptionRelatedByOption1Ids, getOptionOptionRelatedByOption1IdsJoinAttributeOptionRelatedByOption2Id, getOptionOptionRelatedByOption1IdsJoinAttributeOptionRelatedByOption2Id, getOptionOptionRelatedByOption1IdsJoinEasyDeskModule, getOptionOptionRelatedByOption1IdsJoinEasyDeskModule, getOptionOptionRelatedByOption1IdsJoinItemType, getOptionOptionRelatedByOption1IdsJoinItemType, getOptionOptionRelatedByOption1IdsJoinOptionRelationship, getOptionOptionRelatedByOption1IdsJoinOptionRelationship, getOptionOptionRelatedByOption2Ids, getOptionOptionRelatedByOption2Ids, getOptionOptionRelatedByOption2Ids, getOptionOptionRelatedByOption2Ids, getOptionOptionRelatedByOption2IdsJoinAttributeOptionRelatedByOption1Id, getOptionOptionRelatedByOption2IdsJoinAttributeOptionRelatedByOption1Id, getOptionOptionRelatedByOption2IdsJoinEasyDeskModule, getOptionOptionRelatedByOption2IdsJoinEasyDeskModule, getOptionOptionRelatedByOption2IdsJoinItemType, getOptionOptionRelatedByOption2IdsJoinItemType, getOptionOptionRelatedByOption2IdsJoinOptionRelationship, getOptionOptionRelatedByOption2IdsJoinOptionRelationship, getPeer, getPrimaryKey, getQueryValues, getQueryValues, getQueryValues, getQueryValues, getQueryValuesJoinAttribute, getQueryValuesJoinAttribute, getQueryValuesJoinEasyDeskModule, getQueryValuesJoinEasyDeskModule, getQueryValuesJoinMITList, getQueryValuesJoinMITList, getReportHeads, getReportHeads, getReportHeads, getReportHeads, getReportHeadsJoinAttribute, getReportHeadsJoinAttribute, getReportHeadsJoinReport, getReportHeadsJoinReport, getTableMap, getUserAttributeOptions, getUserAttributeOptions, getUserAttributeOptions, getUserAttributeOptions, getUserAttributeOptionsJoinAttribute, getUserAttributeOptionsJoinAttribute, getUserAttributeOptionsJoinEasyDeskModule, getUserAttributeOptionsJoinEasyDeskModule, getUserAttributeOptionsJoinEasyDeskUserImpl, getUserAttributeOptionsJoinEasyDeskUserImpl, hashCode, initActivityRelatedByNewOptionIds, initActivityRelatedByOldOptionIds, initAnonymousNotificationFilters, initAttributeValues, initEasyDeskValidators, initItemTypeOptions, initLocalizedConditionInfos, initLocalizedErrorInfos, initLocalizedListInfos, initLocalizedOptionInfoRelatedByLangIds, initLocalizedOptionInfoRelatedByOptionIds, initLocalizedSequenceInfos, initLocalizedTransitionInfos, initModuleOptions, initNotificationFilters, initOptionOptionRelatedByOption1Ids, initOptionOptionRelatedByOption2Ids, initQueryValues, initReportHeads, initUserAttributeOptions, isActivityRelatedByNewOptionIdsInitialized, isActivityRelatedByOldOptionIdsInitialized, isAnonymousNotificationFiltersInitialized, isAttributeValuesInitialized, isCacheOnSave, isDeleted, isEasyDeskValidatorsInitialized, isItemTypeOptionsInitialized, isLoading, isLocalizedConditionInfosInitialized, isLocalizedErrorInfosInitialized, isLocalizedListInfosInitialized, isLocalizedOptionInfoRelatedByLangIdsInitialized, isLocalizedOptionInfoRelatedByOptionIdsInitialized, isLocalizedSequenceInfosInitialized, isLocalizedTransitionInfosInitialized, isModified, isModuleOptionsInitialized, isNew, isNotificationFiltersInitialized, isOptionOptionRelatedByOption1IdsInitialized, isOptionOptionRelatedByOption2IdsInitialized, isQueryValuesInitialized, isRemoved, isReportHeadsInitialized, isSaving, isUserAttributeOptionsInitialized, resetActivityRelatedByNewOptionId, resetActivityRelatedByOldOptionId, resetAnonymousNotificationFilter, resetAttributeValue, resetEasyDeskValidator, resetItemTypeOption, resetLocalizedConditionInfo, resetLocalizedErrorInfo, resetLocalizedListInfo, resetLocalizedOptionInfoRelatedByLangId, resetLocalizedOptionInfoRelatedByOptionId, resetLocalizedSequenceInfo, resetLocalizedTransitionInfo, resetModified, resetModuleOption, resetNotificationFilter, resetOptionOptionRelatedByOption1Id, resetOptionOptionRelatedByOption2Id, resetQueryValue, resetReportHead, resetUserAttributeOption, save, save, setAttribute, setAttributeId, setAttributeKey, setByName, setByPeerName, setByPosition, setDeleted, setLoading, setModified, setName, setNew, setOptionId, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, toString, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.om.Artifactizable
getArtifact, getArtifactKey, getArtifactModule, getPrimaryKey, getTableMap
-
Constructor Details
-
AttributeOption
public AttributeOption()새로운AttributeOption인스턴스를 생성한다.
-
-
Method Details
-
getId
Description copied from interface:IdentifiableGet the Id of the Identifiable Entity.- Specified by:
getIdin interfaceIdentifiable<Integer>- Returns:
- The Id of the entity.
-
setId
Identifiable implementation- Specified by:
setIdin interfaceIdentifiable<Integer>- Parameters:
id- The new Id of the entity
-
getQueryKey
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isRoot
public boolean isRoot()Top OptionId Check- Returns:
- ROOT option 이면
true
-
getParent
Returns direct parent of this child. 문제점 : 하나의 child 에 여러 부모가 설정될 수 있다. 이 경우는 어떻게 처리 ???- Returns:
- parent AttributeOption
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAncestors
Returns a list of AttributeOptions which are ancestors of this AttributeOption. An Ancestor is the parent tree going up from this AO. The order is bottom up.Root 는 포함하지 않는다.
- Returns:
- 조상 AttributeOption 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getParents
Returns a list of AttributeOption's which are parents of this AttributeOption.- Returns:
- A_PARENT_CHILD_B 관계의 부모 AttributeOption 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getParents
public List<AttributeOption> getParents(OptionRelationship optionRelationship) throws TorqueException Returns a list of AttributeOption's which are parents of this AttributeOption.- Parameters:
optionRelationship- 부모를 찾을 OptionRelationship- Returns:
- 부모 AttributeOption 목록, ROOT 이면 빈 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getChildren
Returns a list of AttributeOption's which are children of this AttributeOption.- Returns:
- A_PARENT_CHILD_B 관계의 자식 AttributeOption 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getChildren
public List<AttributeOption> getChildren(OptionRelationship optionRelationship) throws TorqueException Returns a list of AttributeOption's which are children of this AttributeOption.- Parameters:
optionRelationship- 자식을 찾을 OptionRelationship- Returns:
- 자식 AttributeOption 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getPathName
Root 를 제외한 부모경로이름/이름 을 구한다.- Returns:
- path/name
-
getDescendants
Returns a list of AttributeOptions which are descendants of this AttributeOption. The descendants is the child tree going down from this AO. The order is bottom up.- Returns:
- 자손 AttributeOption 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getDescendantNames
자손의 이름을 구한다.- Returns:
- 자손 AttributeOption 이름 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isDescendantOf
Checks to see if this Attribute option is a descendant of the passed in AttributeOption ancestor. Root 를 포함하여 확인한다.- Parameters:
ancestor- 조상인지 확인할 AttributeOption- Returns:
- 자손이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isAncestorsOf
Checks to see if this Attribute option is an ancestor of the passed in AttributeOption descendant.- Parameters:
descendant- 자손인지 확인할 AttributeOption- Returns:
- 조상이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isChildOf
Checks to see if this Attribute option is a child of the passed in AttributeOption parent.- Parameters:
parent- 부모인지 확인할 AttributeOption- Returns:
- 자식이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isParentOf
Checks to see if this Attribute option is a parent of the passed in AttributeOption child.- Parameters:
child- 자식인지 확인할 AttributeOption- Returns:
- 부모이면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
hasChildren
Does this AttributeOption have children?- Returns:
- 자식이 있으면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
hasChildren
Does this AttributeOption have a child of the given name?- Parameters:
name- 자식 option 이름- Returns:
- 이름에 해당하는 자식이 있으면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getChild
이름에 해당하는 자식 AttributeOption 을 구한다.- Parameters:
name- 자식 option 이름- Returns:
- AttributeOption or 없으면 null
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttributeOptionWithInheritance
public List<AttributeOption> getAttributeOptionWithInheritance(OptionRelationship relationShip, ItemType itemType, Module module) throws TorqueException 이 AttributeOption 과 관련이 있는 AttributeOption 을 구한다.- Parameters:
relationShip- 관계 OptionRelationshipitemType- 대상 ItemTypemodule- 대상 Module- Returns:
- AttributeOption
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getComparator
Compares numeric value and in cases where the numeric value is the same it compares the display values.- Returns:
- 순서 Comparator
-
getComparator
DOCUMENT ME!- Parameters:
mode- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. 사용상 주의 : insert 의 경우에 save() 가 종료될 떄까지 아직 OptionOption 이 db 에 존재하지 않는다. 따라서 save() 후 oo.save() 가 종료되기 전 까지는 relationship 관련 내용을 call 해서는 안된다.- Specified by:
savein interfacePersistent- Overrides:
savein classBaseAttributeOption- Throws:
Exception- 저장 중 오류가 발생한 경우
-
getArtifactType
ArtifactType 을 구한다. AttributeOption 은 다양한 Attribute 의 ArtifactType 을 처리 할 수 있기 떄문에 OptionOption Relation 을 적용한다.- Specified by:
getArtifactTypein interfaceArtifactizable- Returns:
- itemType
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getLocalized
locale 에 해당하는 localized 정보를 구한다.- Specified by:
getLocalizedin interfaceLocalizableOM- Parameters:
locale- 대상 locale- Returns:
- localized[] always global only
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-