Package com.easydesk.attribute
Class VoteValueAttribute
- All Implemented Interfaces:
Viewable,Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
PersonalCorrelatedString 개인별로 지원하기 때문에 Personal 이다. 한 문항이 여러 평가지에 사용될때 , 그평가지만의 값을 가지기 위하여 CorrelateAttribute 를 상속
받는다. 또한 정답을 여러개 가질 수 있지 때문에 multivalued 이다. AttributeValue Table 에 존재하는 정보는 temporary 한 정보이다. 채점이 종료되면 이값은 항상 Deleted
가 되어야 한다.
- Version:
- $Id: VoteValueAttribute.java,v 1.29 2008/12/25 04:03:44 youngho Exp $
- Author:
- Youngho Cho
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.easydesk.om.AttributeValue
AttributeValue.AccessEnum -
Field Summary
Fields inherited from class com.easydesk.om.AttributeValue
activitySet, chainedFields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint0 : 정답이 없는 경우 복수정답은 별도 속성으로 처리 정답이 하나 이상의 선택을 요구하는 경우 ( 복수정답은 제외 ) 복수정답은 별도 속성으로 처리 값이 2 인경우 두개를 선택하여야 정답처리 값이 1 인경우 정답이 2개 이상이면 둘중에 하나를 선택하면 정답처리.intgetCount()정답수intgetType()DOCUMENT ME!booleanneedActivity(ActivitySet activitySet) 저장할 때 변경이 있어도 activity 를 필요로 하지 않는지voidsetCount(int count) DOCUMENT ME!voidsetType(int type) DOCUMENT ME!voidVoteValue 를 위한 MultiValuedStringAttribute 의 setValues 이다.Methods inherited from class com.easydesk.attribute.StringAttribute
getLocalizedValue, getLocalizedValue, hasValueMethods inherited from class com.easydesk.attribute.FreeFormAttribute
getDisplayedValue, getDisplayedValue, getFormatter, init, loadResources, setResourcesMethods inherited from class com.easydesk.om.AttributeValue
alwaysNeedActivity, clear, copy, copy, endActivitySet, getActivity, getActivityDescription, getAttachment, getChainedValue, getChainedValue, getChainedValue, getInputValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValues, getLocalizedValues, getMethodCache, getModuleAttribute, getNewInstance, getNewInstance, getNumericValues, getNumericValues, getNumericValuesAsString, getNumericValuesAsString, getObserverOption, getOptionIdAsString, getOptionIds, getOptionIds, getOptionIdsAsString, getOptionIdsAsString, getOptionValues, getPossibleTransitionCount, getPossibleTransitionCount, getPrimitiveOptionIds, getPrimitiveUserIds, getQueryKey, getRelativePath, getRelativePath, getRepository, getResource, getTransactionId, getUser, getUserIds, getValueList, getValueList, getValues, getValues, getValuesAsString, getValuesAsString, hasAlreadyChained, isModified, isQuickSearchAttribute, isSet, isSetOnly, performAfter, performBefore, register, save, setActivity, setActivityDescription, setAttachment, setChainedValue, setInputValue, setNumericValue, setNumericValueOnly, setNumericValues, setOptionId, setOptionIdOnly, setOptionIds, setOptionValues, setPrimitiveOptionIds, setPrimitiveUserIds, setProperties, setTransactionId, setUser, setUserId, setUserIdOnly, setUserIds, setValue, setValueOnly, startActivitySet, toStringMethods 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, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.attribute.Viewable
getComponentName
-
Constructor Details
-
VoteValueAttribute
public VoteValueAttribute()Creates a new VoteValueAttribute object.
-
-
Method Details
-
getAnswerCount
public int getAnswerCount()0 : 정답이 없는 경우 복수정답은 별도 속성으로 처리 정답이 하나 이상의 선택을 요구하는 경우 ( 복수정답은 제외 ) 복수정답은 별도 속성으로 처리 값이 2 인경우 두개를 선택하여야 정답처리 값이 1 인경우 정답이 2개 이상이면 둘중에 하나를 선택하면 정답처리. 현재는 구현되어 있지 않다.- Returns:
- 정답으로 처리하기 위해 선택해야 하는 수
-
setCount
public void setCount(int count) DOCUMENT ME!- Parameters:
count- DOCUMENT ME!
-
getCount
public int getCount()정답수- Returns:
- 정답수
-
setType
public void setType(int type) DOCUMENT ME!- Parameters:
type- DOCUMENT ME!
-
getType
public int getType()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
needActivity
저장할 때 변경이 있어도 activity 를 필요로 하지 않는지- Overrides:
needActivityin classAttributeValue- Parameters:
activitySet- 현재 처리중인 ActivitySet- Returns:
- activity 가 필요하면
true(기본값true) - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setValues
VoteValue 를 위한 MultiValuedStringAttribute 의 setValues 이다. 선택형 원문자는 변하지 않는 특성을 이용하여 Toggling 처리가 된다. MultiValued 는 한번 value 값이 db 에 입력되면 value 값은 변경이 안되고 단지 deleted or not 으로 처리된다.- Overrides:
setValuesin classAttributeValue- Parameters:
values- can not be null- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-