Class DATNewNotificationCode
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.notification.dat.DATNewNotificationCode
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected DAXWFMAProgressiviAvvisiprotected Longprotected LongFields 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 StringbuildCode(Long typeId, Long progressivo, PooledConnection pc) voidgetCode()protected Longvoidprotected voidupdateProgressivo(Long lastProgressivo, Long newProgressivo, PooledConnection pc) 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
-
_daAProgressiviAvvisi
-
_typeId
-
_code
-
_progressivoId
-
-
Constructor Details
-
DATNewNotificationCode
public DATNewNotificationCode()
-
-
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
-
getLastProgressivo
- Throws:
DAValidateExceptionDAException
-
buildCode
protected String buildCode(Long typeId, Long progressivo, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateProgressivo
protected void updateProgressivo(Long lastProgressivo, Long newProgressivo, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setTypeId
-
getCode
-