Package com.easydesk.om
Class AttributeValue
java.lang.Object
com.easydesk.om.BaseAttributeValue
com.easydesk.om.AttributeValue
- All Implemented Interfaces:
Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
- Direct Known Subclasses:
AbstractMapAttribute,FreeFormAttribute,NonActivityAttribute,NumericProxyAttribute,SkipIndexStringAttribute,ValueProxyAttribute
public abstract class AttributeValue
extends BaseAttributeValue
implements Observed, Cacheable, Retrievable
DOCUMENT ME!
- Version:
- $id: AttributeValue.java $Revision$, 03-01-22 8:08:58 PM KST
- Author:
- Youngho Cho
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum사용자가 AttributeValue 에 접속 및 편집 권한에 관련된 Key 를 정의 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivitySet이 속성값을 저장하거나 변경할 때의 ActivitySet 이다.protected booleanDOCUMENT ME!Fields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanalwaysNeedActivity(ActivitySet activitySet) 저장할 때 변경이 없어도 기록을 위하여 activity 를 항상 필요로 하는지voidclear()clear this Serializable instance cachecopy(boolean deepcopy) Makes a copy of this object.copy(boolean deepcopy, Connection con) Makes a copy of this object using connection.protected voidDOCUMENT ME!Gets the Activity record associated with this AttributeValue It can only be retrieved after the save() method has been called since that is when it is generated.extra info to save description in activity recordGets the Activity Attachment record associated with this AttributeValue It can only be retrieved after the save() method has been called since that is when it is generated.Get the value of current chainedValue.getChainedValue(AttributeOption option) Get the value of current chainedValue.getChainedValue(Depend depend) Get the value of current chainedValue with same depend.DOCUMENT ME!DOCUMENT ME!getLocalizedValue(String type) text type attribute 의 경우에 value 와 실제 보여주는 value 가 다를 때 사용한다. fomatter 가 정의되어 있으면 formatter 를 적용하여 처리한다.getLocalizedValue(String type, Locale locale) value 와 실제 보여주는 value 가 다를 때 사용한다. fomatter 가 정의되어 있으면 formatter 를 적용하여 처리한다.getLocalizedValue(Locale locale) DOCUMENT ME!DOCUMENT ME!getLocalizedValues(Locale locale) DOCUMENT ME!attributeValue 의 item, itemType, module 정보가 존재하여야 한다.static final AttributeValuegetNewInstance(Attribute attribute, Item item) Creates, initializes and returns a new AttributeValue.static AttributeValuegetNewInstance(AttributeValue value) getNewInstance for AttributeValue update ( Chained Value 까지 모두 참조한다. )Long[]DOCUMENT ME!Long[]getNumericValues(boolean includeDeleted) DOCUMENT ME!Get the current NumericValues as String 삭제되어 있는것이 포함되어 있다.getNumericValuesAsString(boolean includeDeleted) 숫자 값들을 문자열로 구한다.getObserverOption(OptionRelationship relationShip) 관계(relationShip) 에 따라 이 값과 관련된 observer option 들을 구한다.Get the OptionIdInteger[]Returns current Options IdsInteger[]getOptionIds(boolean includeDeleted) Returns current Options IdsGet the current OptionIds as StringgetOptionIdsAsString(boolean includeDeleted) option id 들을 문자열로 구한다.String[]OptionId 에 설정된 값을 Option Name 값으로 구한다.check user can change a state of this value access, edit 를 정의한다.getPossibleTransitionCount(String fromValue, EasyDeskUser actor) check user can change a state of this value access, edit 를 정의한다.int[]DOCUMENT ME!long[]DOCUMENT ME!OID for AttributeValuegetRelativePath(String name) 이름에 해당하는 파일의 상대 경로를 구한다.getRelativePath(String name, String variant) 이름과 variant 에 해당하는 파일의 상대 경로를 구한다.이 object 의 file repository 경로를 구한다.getResource(String name) 이름에 해당하는 resource 파일을 구한다.DOCUMENT ME!getUser()DOCUMENT ME!Long[]현재 설정된 user id 들을 구한다.This method returns a flat List of all AttributeValues that might be chained to this one.getValueList(boolean db) This method returns a flat List of all AttributeValues that might be chained to this one.String[]삭제는 보이지 않는다.String[]getValues(boolean includeDeleted) chain 된 모든 값을 구한다.Deleted 를 포함하여 지금 object 부터의 value array 를 구한다.getValuesAsString(boolean includeDeleted) 정렬은 valueId 로 되어 있다.protected booleanhasAlreadyChained(AttributeValue value) 동일한 속성값이 이미 Chained 되어 있는지 value 를 비교한다.abstract booleanDOCUMENT ME!voidinit()Override this method if you need any initialization for this attr.booleanisModified(AttributeValue value) 값이 동일한지 아니면 변경되었는지 비교한다.booleanDeprecated.please use ModuleUserAttribute.getQuickSearch insteadbooleanisSet()값이 설정 되어 있는지 Chained 되어 있는 것 까지 판단한다.boolean값이 설정 되어 있는지 이 object 하나만 판단한다.loadResources(ActivitySet activitySet) Loads from database data specific for this Attribute including Name.booleanneedActivity(ActivitySet activitySet) 저장할 때 변경이 있어도 activity 를 필요로 하지 않는지voidValue 가 변할 때 행동을 실행한다.voidObserver 를 실행voidregister()Value 가 변할 때 행동을 등록한다.voidsave(Connection dbcon) DOCUMENT ME!voidsetActivity(Activity activity) DOCUMENT ME!voidsetActivityDescription(String string) Allows you to override the description for the activity that is generated when this attributevalue is saved.voidsetAttachment(Attachment attachment) DOCUMENT ME!voidSet the value of chainedValue.voidsetInputValue(String value) DOCUMENT ME!voidMakes sure to set the Value as wellprotected voidDOCUMENT ME!voidsetNumericValues(Long[] numerics) DOCUMENT ME!voidsetOptionId(Integer optionId) Makes sure to set the Value as well, to make display of the option easierprotected voidsetOptionIdOnly(Integer optionId) option id 만 설정한다.voidsetOptionIds(Integer[] ids) 여러 option id 를 설정한다.voidsetOptionValues(String[] values) option 이름들로 option id 를 찾아 설정한다.voidsetPrimitiveOptionIds(int[] ints) DOCUMENT ME!voidsetPrimitiveUserIds(long[] ints) DOCUMENT ME!voidsetProperties(AttributeValue attVal1) DOCUMENT ME!voidsetResources(Object resources) This method is used by an Attribute instance to obtain specific resources such as option list for SelectOneAttribute.voidsetTransactionId(Long transactionId) DOCUMENT ME!voidsetUser(EasyDeskUser user) DOCUMENT ME!voidMakes sure to set the Value as well, to make display of the user easierprotected voidsetUserIdOnly(Long userId) Makes sure to set the Value as well, to make display of the user easiervoidsetUserIds(Long[] ids) DOCUMENT ME!voidValue 값이 Condition 값의 비교에 사용되기 때문에 Option Name 은 항상 database 에 저장된 Option Name 으로 Value 값이 설정되어야 한다.protected voidsetValueOnly(String value) DOCUMENT ME!voidMultiValued 를 위한 setter 이다.voidstartActivitySet(ActivitySet activitySet) Enters this attribute value into a activitySet.toString()DOCUMENT ME!Methods inherited from class com.easydesk.om.BaseAttributeValue
copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getDepend, getDepend, getDependId, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForDepend, getForeignKeyForEasyDeskUserImpl, getForeignKeyForItem, getItem, getItem, getItemId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getTableMap, getUserId, getValue, getValueId, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRemoved, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setDepend, setDependId, setDependKey, setEasyDeskUserImpl, setEasyDeskUserImplKey, setItem, setItemId, setItemKey, setLoading, setModified, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setValueId, valueEquals
-
Field Details
-
activitySet
이 속성값을 저장하거나 변경할 때의 ActivitySet 이다. -
chained
protected transient boolean chainedDOCUMENT ME!
-
-
Constructor Details
-
AttributeValue
protected AttributeValue()Creates a new attributeValue. Do not do anything here. All initialization should be performed in init().
-
-
Method Details
-
getNewInstance
public static final AttributeValue getNewInstance(Attribute attribute, Item item) throws TorqueException Creates, initializes and returns a new AttributeValue.- Parameters:
attribute- the Attributeitem- Item object which this attributeValue is associated- Returns:
- new AttributeValue instance
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getNewInstance
getNewInstance for AttributeValue update ( Chained Value 까지 모두 참조한다. )- Parameters:
value- 복사할 원본 AttributeValue- Returns:
- 새 AttributeValue
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
copy
Makes a copy of this object. It creates a new object filling in the simple attributes. If the parameter deepcopy is true, it then fills all the association collections and sets the related objects to isNew=true.- Overrides:
copyin classBaseAttributeValue- Parameters:
deepcopy- whether to copy the associated objects.- Throws:
TorqueException- if retrieval of the associated objects fails
-
copy
Makes a copy of this object using connection. It creates a new object filling in the simple attributes. If the parameter deepcopy is true, it then fills all the association collections and sets the related objects to isNew=true.- Overrides:
copyin classBaseAttributeValue- Parameters:
deepcopy- whether to copy the associated objects.con- the database connection to read associated objects.- Throws:
TorqueException- if retrieval of the associated objects fails
-
loadResources
Loads from database data specific for this Attribute including Name. These are data common to all Attribute instances with same id. Data retrieved here will then be used in setResources.- Parameters:
activitySet- specific activitySet- Returns:
- Object containing Attribute resources which will be used in setResources.
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
setResources
This method is used by an Attribute instance to obtain specific resources such as option list for SelectOneAttribute. It may, for example put them into instance variables. Attributes may use common resources as-is or create it's own resources based on common, it should not, however, modify common resources since they will be used by other Attribute instances.- Parameters:
resources- Resources common for Attributes with the specified id.
-
init
Override this method if you need any initialization for this attr.- Throws:
Exception- Generic Exception
-
getUser
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setUser
DOCUMENT ME!- Parameters:
user- 이 속성값과 관련된 사용자- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttachment
Gets the Activity Attachment record associated with this AttributeValue It can only be retrieved after the save() method has been called since that is when it is generated.- Returns:
- Activity Attachment
-
setAttachment
DOCUMENT ME!- Parameters:
attachment- DOCUMENT ME!
-
setActivityDescription
Allows you to override the description for the activity that is generated when this attributevalue is saved.- Parameters:
string- activity 설명
-
getActivityDescription
extra info to save description in activity record- Returns:
- activity 설명
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
Gets the Activity record associated with this AttributeValue It can only be retrieved after the save() method has been called since that is when it is generated.- Returns:
- 저장 시 생성된 Activity
-
setActivity
DOCUMENT ME!- Parameters:
activity- DOCUMENT ME!
-
getTransactionId
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setTransactionId
DOCUMENT ME!- Parameters:
transactionId- DOCUMENT ME!
-
getOptionIdAsString
Get the OptionId- Returns:
- String
-
getOptionIdsAsString
Get the current OptionIds as String- Returns:
- String
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getOptionIdsAsString
option id 들을 문자열로 구한다.- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- option id 문자열
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getOptionIds
Returns current Options Ids- Returns:
- a
Integer[]value - Throws:
TorqueException- if an error occurs
-
getOptionIds
Returns current Options Ids- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- a
Integer[]value - Throws:
TorqueException- if an error occurs
-
setOptionId
Makes sure to set the Value as well, to make display of the option easier- Overrides:
setOptionIdin classBaseAttributeValue- Parameters:
optionId- aIntegervalue
-
setOptionIdOnly
option id 만 설정한다. 값이 바뀌면 변경 상태로 표시한다.- Parameters:
optionId- 설정할 option id
-
setOptionIds
여러 option id 를 설정한다. MultifulStateAttribute 만 동작한다.- Parameters:
ids- 설정할 option id 배열- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getOptionValues
OptionId 에 설정된 값을 Option Name 값으로 구한다.- Returns:
- Option Name array
- Throws:
TorqueException
-
setOptionValues
option 이름들로 option id 를 찾아 설정한다.- Parameters:
values- option 이름 배열- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getUserIds
현재 설정된 user id 들을 구한다.- Returns:
- a
Long[]value - Throws:
TorqueException- if an error occurs
-
setUserId
Makes sure to set the Value as well, to make display of the user easier- Overrides:
setUserIdin classBaseAttributeValue- Parameters:
userId- aIntegervalue
-
setUserIdOnly
Makes sure to set the Value as well, to make display of the user easier- Parameters:
userId- aIntegervalue
-
setUserIds
DOCUMENT ME!- Parameters:
ids- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
getValues
삭제는 보이지 않는다.- Returns:
- ChainedValue String Array
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getValues
chain 된 모든 값을 구한다.- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- all ChainedValue String Array 순서는 valueId 의 asc ordering 이다.
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getValuesAsString
Deleted 를 포함하여 지금 object 부터의 value array 를 구한다. 잘못되었다. getValuesAsString(false, false) 가 되어야 한다.- Returns:
- 값들을 연결한 문자열
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getValuesAsString
정렬은 valueId 로 되어 있다.- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- 값들을 연결한 문자열
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setValues
MultiValued 를 위한 setter 이다. MultiValued 는 한번 value 값이 db 에 입력되면 value 값은 변경이 안되고 단지 deleted or not 으로 처리된다.- Parameters:
values- can not be null- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
save
DOCUMENT ME!- Specified by:
savein interfacePersistent- Overrides:
savein classBaseAttributeValue- Parameters:
dbcon- DOCUMENT ME!- Throws:
Exception- DOCUMENT ME!
-
getQueryKey
OID for AttributeValue- Specified by:
getQueryKeyin interfaceRetrievable- Returns:
- DOCUMENT ME!
-
needActivity
저장할 때 변경이 있어도 activity 를 필요로 하지 않는지- Parameters:
activitySet- 현재 처리중인 ActivitySet- Returns:
- activity 가 필요하면
true(기본값true) - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
alwaysNeedActivity
저장할 때 변경이 없어도 기록을 위하여 activity 를 항상 필요로 하는지- Parameters:
activitySet- 현재 처리중인 ActivitySet- Returns:
- 항상 activity 가 필요하면
true(기본값false)
-
setPrimitiveOptionIds
DOCUMENT ME!- Parameters:
ints- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
getPrimitiveOptionIds
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
setPrimitiveUserIds
DOCUMENT ME!- Parameters:
ints- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
getPrimitiveUserIds
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getInputValue
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setInputValue
DOCUMENT ME!- Parameters:
value- DOCUMENT ME!
-
setValue
Value 값이 Condition 값의 비교에 사용되기 때문에 Option Name 은 항상 database 에 저장된 Option Name 으로 Value 값이 설정되어야 한다.- Overrides:
setValuein classBaseAttributeValue- Parameters:
value- 설정할 값
-
setValueOnly
DOCUMENT ME!- Parameters:
value- DOCUMENT ME!
-
getNumericValues
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getNumericValues
DOCUMENT ME!- Parameters:
includeDeleted- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getNumericValuesAsString
Get the current NumericValues as String 삭제되어 있는것이 포함되어 있다.- Returns:
- String
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getNumericValuesAsString
숫자 값들을 문자열로 구한다.- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- 숫자 값들을 연결한 문자열
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setNumericValue
Makes sure to set the Value as well- Overrides:
setNumericValuein classBaseAttributeValue- Parameters:
v- 설정할 값,null이거나 음수이면 무시한다.
-
setNumericValueOnly
DOCUMENT ME!- Parameters:
v- DOCUMENT ME!
-
setNumericValues
DOCUMENT ME!- Parameters:
numerics- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
getChainedValue
Get the value of current chainedValue with same depend.- Parameters:
depend- 대상 Depend- Returns:
- new value of chainedValue.
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getChainedValue
Get the value of current chainedValue.- Parameters:
option- 대상 AttributeOption- Returns:
- value of chainedValue.
-
getChainedValue
Get the value of current chainedValue.- Returns:
- value of chainedValue.
-
setChainedValue
Set the value of chainedValue.- Parameters:
v- Value to assign to chainedValue.
-
getValueList
This method returns a flat List of all AttributeValues that might be chained to this one. This AttributeValue will be first in the List.- Returns:
- a
Listof AttributeValue's including deleted one - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getValueList
This method returns a flat List of all AttributeValues that might be chained to this one. This AttributeValue will be first in the List.- Parameters:
db- if true get from database- Returns:
- a
Listof AttributeValue's including deleted one - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
startActivitySet
Enters this attribute value into a activitySet. All changes to a value must occur within a activitySet. The activitySet is cleared once the attribute value is saved.- Parameters:
activitySet- aActivitySetvalue
-
endActivitySet
protected void endActivitySet()DOCUMENT ME! -
setProperties
DOCUMENT ME!- Parameters:
attVal1- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
hasAlreadyChained
동일한 속성값이 이미 Chained 되어 있는지 value 를 비교한다.- Parameters:
value- 비교할 AttributeValue- Returns:
- true if already chain same value object ( see valueEquals method )
-
isSet
public boolean isSet()값이 설정 되어 있는지 Chained 되어 있는 것 까지 판단한다.- Returns:
- true/false including chained value
-
isSetOnly
public boolean isSetOnly()값이 설정 되어 있는지 이 object 하나만 판단한다.- Returns:
- true/false only for this object
-
hasValue
DOCUMENT ME!- Parameters:
checkValue- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
isModified
값이 동일한지 아니면 변경되었는지 비교한다.- Parameters:
value- 비교할 AttributeValue- Returns:
- true/false return true when the value is not modified
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getModuleAttribute
attributeValue 의 item, itemType, module 정보가 존재하여야 한다. 그러나 다중검색에서 module 또는 itemType 이 다중인 경우 처리가 아직 안된다- Returns:
- ModuleAttribute or null
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
isQuickSearchAttribute
Deprecated.please use ModuleUserAttribute.getQuickSearch insteadif the Attribute related to this value is marked as relevant to quick search in the module related to the Item related to this value.- Returns:
- a
booleanvalue - Throws:
TorqueException
-
getPossibleTransitionCount
check user can change a state of this value access, edit 를 정의한다.- Parameters:
actor- 작업하는 사용자- Returns:
- 0 can not access, 1 accessable only, 2 editable
- Throws:
Exception- 확인 중 오류가 발생한 경우
-
getPossibleTransitionCount
public AttributeValue.AccessEnum getPossibleTransitionCount(String fromValue, EasyDeskUser actor) throws Exception check user can change a state of this value access, edit 를 정의한다. TODO : 별도 class 로 분리한다.- Parameters:
fromValue- 현재 값actor- 작업하는 사용자- Returns:
- 0 can not access, 1 accessable only, 2 editable
- Throws:
Exception- 확인 중 오류가 발생한 경우
-
getLocalizedValue
text type attribute 의 경우에 value 와 실제 보여주는 value 가 다를 때 사용한다. fomatter 가 정의되어 있으면 formatter 를 적용하여 처리한다.pipeline type 은 DisplayedValue 가 각 동작조건에 따라서 다양하게 존재할 수 있기 때문에, 그것들을 구분하기 위하여 도입하였다. Default 는 "" 이다.
적용되어 있는 것은 default 와 stripped 가 구현되어 있다.
- Parameters:
type- pipeline type- Returns:
- DOCUMENT ME!
- Throws:
Exception- Generic Exception
-
getLocalizedValue
value 와 실제 보여주는 value 가 다를 때 사용한다. fomatter 가 정의되어 있으면 formatter 를 적용하여 처리한다.- Parameters:
type- pipeline typelocale- 표시에 사용할 locale- Returns:
- 화면에 표시할 값
- Throws:
Exception- Generic Exception
-
getLocalizedValue
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getLocalizedValue
DOCUMENT ME!- Parameters:
locale- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getLocalizedValues
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getLocalizedValues
DOCUMENT ME!- Parameters:
locale- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
toString
DOCUMENT ME!- Overrides:
toStringin classBaseAttributeValue- Returns:
- DOCUMENT ME!
-
register
public void register()Value 가 변할 때 행동을 등록한다. -
getObserverOption
public List<AttributeOption> getObserverOption(OptionRelationship relationShip) throws TorqueException 관계(relationShip) 에 따라 이 값과 관련된 observer option 들을 구한다.- Parameters:
relationShip- 대상 OptionRelationship- Returns:
- attributeOption list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
performBefore
Observer 를 실행- Specified by:
performBeforein interfaceObserved- Throws:
Exception- Observer 실행 중 오류가 발생한 경우
-
performAfter
Value 가 변할 때 행동을 실행한다.- Specified by:
performAfterin interfaceObserved- Throws:
Exception- Observer 실행 중 오류가 발생한 경우
-
getRepository
이 object 의 file repository 경로를 구한다. 현재는 구현되어 있지 않다.- Returns:
- file repository path file of this object
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 입출력 중 오류가 발생한 경우UnsupportedOperationException- 항상 발생 (미구현)
-
getResource
이름에 해당하는 resource 파일을 구한다. 현재는 구현되어 있지 않다.- Parameters:
name- resource 이름- Returns:
- file
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 입출력 중 오류가 발생한 경우UnsupportedOperationException- 항상 발생 (미구현)
-
getRelativePath
이름에 해당하는 파일의 상대 경로를 구한다. 현재는 구현되어 있지 않다.- Parameters:
name- 파일 이름- Returns:
- file
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 입출력 중 오류가 발생한 경우UnsupportedOperationException- 항상 발생 (미구현)
-
getRelativePath
이름과 variant 에 해당하는 파일의 상대 경로를 구한다. 현재는 구현되어 있지 않다.- Parameters:
name- 파일 이름variant- 파일 variant- Returns:
- file
- Throws:
TorqueException- 조회 중 오류가 발생한 경우IOException- 입출력 중 오류가 발생한 경우UnsupportedOperationException- 항상 발생 (미구현)
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-