Package com.easydesk.om
Class EasyDeskValidator
java.lang.Object
com.easydesk.om.BaseEasyDeskValidator
com.easydesk.om.EasyDeskValidator
- All Implemented Interfaces:
Cacheable,Deletable,AttributeValueValidator,Serializable,ColumnAccessByName,ObjectModel,Persistent
public class EasyDeskValidator
extends BaseEasyDeskValidator
implements AttributeValueValidator, Deletable, Cacheable
아래 class 에서 사용하고 있다.
Attribute.getValidator(),
ItemTypeAttribute.getValidator(),
ModuleAttribute.getValidator()- Version:
- $id: EasyDeskValidator.java $Revision$, 03-08-22 11:43:05 PM KST
- Author:
- YounghoCho
-
Field Summary
Fields inherited from interface com.easydesk.validator.AttributeValueValidator
DEFAULT, FLEXIBLE_RULE_NAME, FORMAT_RULE_NAME, GROUP_NAME, INVALID_NUMBER_RULE_NAME, MASK_RULE_NAME, MAX_LENGTH_RULE_NAME, MAX_VALUE_RULE_NAME, MIN_LENGTH_RULE_NAME, MIN_VALUE_RULE_NAME, REQUIRED_RULE_NAME, TRUE_VALIDATOR, VALIDATOR_PKG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CharSequenceDOCUMENT ME!voidclear()clear this Serializable instance cachebooleandelete(EasyDeskUser user) Delete the record.booleandelete(EasyDeskUser user, boolean overrideLock) Delete the record.검증 대상 ActivitySet 을 구한다.protected booleanDOCUMENT ME!protected booleanDOCUMENT ME!protected booleanDOCUMENT ME!isValid(AttributeValue value, Map<Integer, AttributeValue> newValues) 속성값이 올바른지 검증한다.voidsave()Stores the object in the database.voidsetActivitySet(ActivitySet activitySet) 검증 대상 ActivitySet 을 설정한다.Methods inherited from class com.easydesk.om.BaseEasyDeskValidator
copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getEasyDeskModule, getEasyDeskModule, getExpression, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForEasyDeskModule, getForeignKeyForItemType, getItemType, getItemType, getItemTypeId, getJavaClass, getMask, getMaxLength, getMaxValue, getMinLength, getMinValue, getModuleId, getObjectdata, getOptionId, getPeer, getPrimaryKey, getTableMap, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRequired, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setExpression, setItemType, setItemTypeId, setItemTypeKey, setJavaClass, setLoading, setMask, setMaxLength, setMaxValue, setMinLength, setMinValue, setModified, setModuleId, setNew, setObjectdata, setOptionId, setPrimaryKey, setPrimaryKey, setPrimaryKey, setRequired, setSaving, toString, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKeyMethods inherited from interface org.apache.torque.om.Persistent
save, save
-
Constructor Details
-
EasyDeskValidator
public EasyDeskValidator()새로운EasyDeskValidator인스턴스를 생성한다.
-
-
Method Details
-
save
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.- Specified by:
savein interfacePersistent- Overrides:
savein classBaseEasyDeskValidator- Throws:
Exception- 저장 중 오류가 발생한 경우
-
delete
Delete the record. -
delete
Delete the record. -
setActivitySet
검증 대상 ActivitySet 을 설정한다.- Specified by:
setActivitySetin interfaceAttributeValueValidator- Parameters:
activitySet- 현재 처리중인 ActivitySet
-
getActivitySet
검증 대상 ActivitySet 을 구한다.- Specified by:
getActivitySetin interfaceAttributeValueValidator- Returns:
- current ActivitySet for this Validation
-
isValid
public ValidateError[] isValid(AttributeValue value, Map<Integer, AttributeValue> newValues) throws Exception속성값이 올바른지 검증한다.- Specified by:
isValidin interfaceAttributeValueValidator- Parameters:
value- 검증할 AttributeValuenewValues- 함께 저장되는 새 속성값 map ({ attributeId, attributeValue })- Returns:
- ValidateError array
- Throws:
Exception- 검증 중 오류가 발생한 경우
-
getValidator
- Throws:
Exception
-
hasCondition
protected boolean hasCondition()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isForNumberValidation
protected boolean isForNumberValidation()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
isForStringValidation
protected boolean isForStringValidation()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
buildRule
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-