Package com.easydesk.attribute
Class CounterAttribute
- All Implemented Interfaces:
Countable,Viewable,Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
- Direct Known Subclasses:
NonActivityCounterAttribute,PersonalCounterAttribute
The result is the sum of all Counts.
- Version:
- $Revision: 1.24 $ $Date: 2008/12/25 04:03:44 $
- 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.attribute.Countable
ONE, WHITE_COLORFields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.easydesk.attribute.NumericAttribute
getLowerBound, getLowerValue, getRangePattern, getSortableString, getUpperBound, getUpperValue, hasValue, setNumericValueMethods inherited from class com.easydesk.attribute.StringAttribute
getLocalizedValue, getLocalizedValueMethods 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, needActivity, 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, setValues, 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
-
CounterAttribute
public CounterAttribute()새로운CounterAttribute인스턴스를 생성한다.
-
-
Method Details
-
getTotalCounts
public int getTotalCounts()DOCUMENT ME!- Specified by:
getTotalCountsin interfaceCountable- Returns:
- DOCUMENT ME!
-
addCounts
public void addCounts(int counts) DOCUMENT ME! -
addCount
public void addCount()DOCUMENT ME! -
removeCounts
public void removeCounts(int counts) DOCUMENT ME!- Specified by:
removeCountsin interfaceCountable- Parameters:
counts- DOCUMENT ME!
-
removeCount
public void removeCount()DOCUMENT ME!- Specified by:
removeCountin interfaceCountable
-
getColor
DOCUMENT ME!- Specified by:
getColorin interfaceCountable- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- 값 조회 중 오류가 발생한 경우
-
add
public void add(int v) 총 수에 더한다.- Parameters:
v- 더할 값
-
remove
public void remove(int v) 총 수에서 뺀다.- Parameters:
v- 뺄 값
-