Class DATCalculateNotificationsStatuses
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.notification.dat.DATCalculateNotificationsStatuses
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Longprotected LongSetprotected List<Notification> static final Stringstatic final Stringstatic final StringFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody()Abstract method, that must be implemented, that represent the start point of the task.protected voidvoidexecute(PooledConnection conn) protected voidprotected voidvoidsetParams(List<HashGetter> notificationsHeaders, Long notificationEventID) voidprotected voidsetParams(Notification notification) Methods inherited from class overit.geocall.da.DATask
commit, deliverCourier, getConnection, getDA, getIdentity, getServiceConnection, holdFactoryCourier, holdUserCourier, releaseConnection, rollback, run, setIdentity, start, startInBackground, synchronizeOn
-
Field Details
-
POOL
- See Also:
-
TASK_NAME
- See Also:
-
NOTIFICATION_ID_DBFIELD
- See Also:
-
_notifications
-
_notificationIDs
-
_eventID
-
_differentStatusLists
-
_notificationsNextStatuses
-
_notificationsNextStatusesIDs
-
-
Constructor Details
-
DATCalculateNotificationsStatuses
public DATCalculateNotificationsStatuses()
-
-
Method Details
-
body
Description copied from class:DATaskAbstract method, that must be implemented, that represent the start point of the task. The method contains the application logic of the specific task.- Specified by:
bodyin classDATask- Throws:
DAException- If there is a (blocking) data-access error, a DAException is thrown to the callerDAValidateException- If there are error in the data validation phase, a DAValidateException is thrown
-
execute
- Throws:
DAExceptionDAValidateException
-
calculateStatuses
- Throws:
DAExceptionDAValidateException
-
setParams
public void setParams(List<HashGetter> notificationsHeaders, Long notificationEventID) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setParams
public void setParams(LongSet notificationIDs, Long notificationEventID) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setParams
-
preConditions
protected void preConditions() -
postConditions
protected void postConditions() -
haveDifferentStatusLists
-
getNotificationsNextStatuses
-
getNotificationsNextStatusesIDs
-