Package com.easydesk.om
Class NotificationStatus
java.lang.Object
com.easydesk.om.BaseNotificationStatus
com.easydesk.om.NotificationStatus
- All Implemented Interfaces:
Deletable,Serializable,Comparable<NotificationStatus>,ColumnAccessByName,ObjectModel,Persistent
public class NotificationStatus
extends BaseNotificationStatus
implements Comparable<NotificationStatus>, Deletable
DOCUMENT ME!
- Version:
- $id: NotificationStatus.java $Revision$, 01-29-22 11:11:54 PM KST
- Author:
- YounghoCho
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDOCUMENT ME!static enumDOCUMENT ME! -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NotificationStatus.Status[]발송이 안된 것 Pending 포함static final NotificationStatus.Status[]DOCUMENT ME!static final NotificationStatus.Status[]받는 사람의 Message 상태 -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new NotificationStatus object.NotificationStatus(EasyDeskUser receiver, Activity activity, Integer managerId) Create a new NotificationStatus entry. -
Method Summary
Modifier and TypeMethodDescriptionaddComment(NotificationStatus.CommentType type, String msg) intCompare two Notification objects, following this criteria: managerId ItemId EasyDeskUserImpl Activity type Timestampbooleandelete(EasyDeskUser user) Delete the record.booleandelete(EasyDeskUser user, boolean overrideLock) Delete the record.DOCUMENT ME!String[]getComment(String type) DOCUMENT ME!DOCUMENT ME!getError()이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 구한다.getItem()DOCUMENT ME!DOCUMENT ME!Transform the database representation of the status (INTEGER) into a readable label (String)이 Object 의 uniqueIdvoidsave()Stores the object in the database.voidsave(Connection dbCon) DOCUMENT ME!void이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 임시 보관한다.Methods inherited from class com.easydesk.om.BaseNotificationStatus
copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getActivity, getActivity, getActivityId, getByName, getByPeerName, getByPosition, getChangedDate, getComment, getCreatedDate, getCreatorId, getEasyDeskUserImplRelatedByCreatorId, getEasyDeskUserImplRelatedByCreatorId, getEasyDeskUserImplRelatedByReceiverId, getEasyDeskUserImplRelatedByReceiverId, getFieldNames, getForeignKeyForActivity, getForeignKeyForEasyDeskUserImplRelatedByCreatorId, getForeignKeyForEasyDeskUserImplRelatedByReceiverId, getManagerId, getPeer, getPrimaryKey, getReceiverId, getStatus, getTableMap, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isSaving, resetModified, save, setActivity, setActivityId, setActivityKey, setByName, setByPeerName, setByPosition, setChangedDate, setComment, setCreatedDate, setCreatorId, setDeleted, setEasyDeskUserImplRelatedByCreatorId, setEasyDeskUserImplRelatedByCreatorIdKey, setEasyDeskUserImplRelatedByReceiverId, setEasyDeskUserImplRelatedByReceiverIdKey, setLoading, setManagerId, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey, setReceiverId, setSaving, setStatus, 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
-
Field Details
-
PENDING_STATUS
DOCUMENT ME! -
NOT_SENT_STATUS
발송이 안된 것 Pending 포함 -
RECEIVER_STATUS
받는 사람의 Message 상태
-
-
Constructor Details
-
NotificationStatus
public NotificationStatus()Creates a new NotificationStatus object. -
NotificationStatus
Create a new NotificationStatus entry.- Parameters:
receiver- 통지를 받을 사용자activity- 통지 대상 ActivitymanagerId- 통지 방법(notification manager) id
-
-
Method Details
-
delete
Delete the record. -
delete
Delete the record. -
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 classBaseNotificationStatus- Throws:
Exception- 저장 중 오류가 발생한 경우
-
save
DOCUMENT ME!- Specified by:
savein interfacePersistent- Overrides:
savein classBaseNotificationStatus- Parameters:
dbCon- DOCUMENT ME!- Throws:
Exception- DOCUMENT ME!
-
getActivitySetType
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getItem
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getCreator
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getReceiver
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getUniqueId
이 Object 의 uniqueId- Returns:
- uniqueId
- Throws:
Exception- uniqueId 를 구하는 중 오류가 발생한 경우
-
getStatusLabel
Transform the database representation of the status (INTEGER) into a readable label (String)- Returns:
- string representation
-
compareTo
Compare two Notification objects, following this criteria:- managerId
- ItemId
- EasyDeskUserImpl
- Activity type
- Timestamp
- Specified by:
compareToin interfaceComparable<NotificationStatus>
-
setError
이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 임시 보관한다.- Parameters:
error-
-
getError
이 notificationStatus 를 처리하는 과정에서 발생한 Error 를 구한다.- Returns:
-
getComment
DOCUMENT ME!- Parameters:
type- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
addComment
- Parameters:
type-msg-- Returns:
- add string
- Throws:
Exception
-