Package com.easydesk.om
Class EasyError
java.lang.Object
com.easydesk.om.BaseEasyError
com.easydesk.om.EasyError
- All Implemented Interfaces:
Artifactizable,DeleteMarkerable,LocalizableOM,ValidateError,Serializable,ColumnAccessByName,ObjectModel,Persistent
public class EasyError
extends BaseEasyError
implements Artifactizable, DeleteMarkerable, ValidateError
EasyError 는 사용자의 Error 를 정의하고, 그 것에 대한 Message 및 해결방안을 제시한다.
EasyError 의 검색은 먼저 해당 Module 을 검색하고 없으면 Web Module 을 검색한다.
Error > Module > WebModule (module, ItemType, attribute, name )- Author:
- YounghoCho
-
Field Summary
Fields inherited from class com.easydesk.om.BaseEasyError
collLocalizedErrorInfosFields inherited from interface com.easydesk.om.Artifactizable
ARTIFACTIZABLE_PATTERN, ATTRIBUTE_MAP_PATTERN, loggerFields inherited from interface com.easydesk.validator.ValidateError
EMPTY_ERRORS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandelete(boolean overrideLock) DOCUMENT ME!Object 의 속성을 서술하는 아이템을 구한다.itemable Object 의 itemType처리 과정중 발생한 Exception 을 반환한다.getLocalized(Locale locale) locale 에 해당하는 localized 정보를 구한다.intgetMode()DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!booleangetWarn()DOCUMENT ME!voidsave()Stores the object in the database.voidsetException(Throwable exception) 처리 과정중 발생한 Exception 을 설정한다.voidsetMode(int mode) DOCUMENT ME!voidDOCUMENT ME!voidsetWarn(boolean warn) DOCUMENT ME!Methods inherited from class com.easydesk.om.BaseEasyError
addLocalizedErrorInfo, addLocalizedErrorInfo, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getByName, getByPeerName, getByPosition, getEasyDeskModule, getEasyDeskModule, getErrorId, getFieldNames, getForeignKeyForAttribute, getForeignKeyForEasyDeskModule, getForeignKeyForItemType, getItemType, getItemType, getItemTypeId, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfos, getLocalizedErrorInfosJoinAttributeOption, getLocalizedErrorInfosJoinAttributeOption, getLocalizedErrorInfosJoinEasyDeskModule, getLocalizedErrorInfosJoinEasyDeskModule, getModuleId, getName, getPeer, getPrimaryKey, getTableMap, hashCode, initLocalizedErrorInfos, isCacheOnSave, isDeleted, isLoading, isLocalizedErrorInfosInitialized, isModified, isNew, isRemoved, isSaving, resetLocalizedErrorInfo, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setErrorId, setItemType, setItemTypeId, setItemTypeKey, setLoading, setModified, setModuleId, setName, setNew, 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
getArtifactKey, getArtifactModule, getPrimaryKey, getTableMapMethods inherited from interface com.easydesk.om.DeleteMarkerable
isDeletedMethods inherited from interface org.apache.torque.om.ObjectModel
getPrimaryKey, isModified, isNew, setModified, setNew, setPrimaryKey, setPrimaryKeyMethods inherited from interface org.apache.torque.om.Persistent
save, saveMethods inherited from interface com.easydesk.validator.ValidateError
getName, setName
-
Constructor Details
-
EasyError
public EasyError()새로운EasyError인스턴스를 생성한다.
-
-
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 classBaseEasyError- Throws:
Exception- 저장 중 오류가 발생한 경우
-
getResult
DOCUMENT ME!- Specified by:
getResultin interfaceValidateError- Returns:
- DOCUMENT ME!
-
setResult
DOCUMENT ME!- Specified by:
setResultin interfaceValidateError- Parameters:
result- DOCUMENT ME!
-
setMode
public void setMode(int mode) DOCUMENT ME!- Specified by:
setModein interfaceValidateError- Parameters:
mode- DOCUMENT ME!
-
getMode
public int getMode()DOCUMENT ME!- Specified by:
getModein interfaceValidateError- Returns:
- DOCUMENT ME!
-
setWarn
public void setWarn(boolean warn) DOCUMENT ME!- Specified by:
setWarnin interfaceValidateError- Parameters:
warn- DOCUMENT ME!
-
getWarn
public boolean getWarn()DOCUMENT ME!- Specified by:
getWarnin interfaceValidateError- Returns:
- DOCUMENT ME!
-
getException
Description copied from interface:ValidateError처리 과정중 발생한 Exception 을 반환한다. (Exception 이 발생하지 않은 경우 null 을 반환한다.)- Specified by:
getExceptionin interfaceValidateError- Returns:
-
setException
Description copied from interface:ValidateError처리 과정중 발생한 Exception 을 설정한다. (Exception 이 발생하지 않은 경우 null 을 설정한다.)- Specified by:
setExceptionin interfaceValidateError- Parameters:
exception-
-
delete
DOCUMENT ME!- Specified by:
deletein interfaceDeleteMarkerable- Parameters:
overrideLock- lock 이 걸려 있어도 삭제할지 여부- Returns:
- true success false not success
- Throws:
Exception- DOCUMENT ME!
-
getArtifactType
itemable Object 의 itemType- Specified by:
getArtifactTypein interfaceArtifactizable- Returns:
- itemType
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getArtifact
Object 의 속성을 서술하는 아이템을 구한다.- Specified by:
getArtifactin interfaceArtifactizable- Returns:
- item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getModule
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getLocalized
locale 에 해당하는 localized 정보를 구한다.- Specified by:
getLocalizedin interfaceLocalizableOM- Parameters:
locale- 대상 locale- Returns:
- localized[]
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-