Class BTTechnicalObjectWithFeaturesUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectWithFeaturesUpdateEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTTechnicalObjectWithFeaturesUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(TechnicalObjectWithFeaturesUpdateEvent.class)
public class BTTechnicalObjectWithFeaturesUpdate
extends BusinessTask<TechnicalObjectWithFeaturesUpdateEvent>
Business task in order to update a
When the
TechnicalObject and its feature values. When the
TechnicalObjectWithFeaturesUpdateEvent is launched the BT notices the call and updates the TechnicalObject basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) Updates a newTechnicalObjectwith all its needed components, i.e. the master data along with the address informations and the feature values.protected DBViewgetExistingFeatureValues(Long technicalObjectId, PoolKit poolKit) Returns the already existing feature values.protected DBViewgetFeatureValuesForUpdate(TechnicalObject technicalObject, List<BOTechnicalObjectFeatureValue> featureValues, PoolKit poolKit) Returns the feature values for update.protected voidupdateFeatures(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) Update the features of the technical objectprotected voidupdateTechnicalObject(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) Update the technical objectMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTechnicalObjectWithFeaturesUpdate
public BTTechnicalObjectWithFeaturesUpdate()
-
-
Method Details
-
body
protected void body(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates a newTechnicalObjectwith all its needed components, i.e. the master data along with the address informations and the feature values.- Specified by:
bodyin classBusinessTask<TechnicalObjectWithFeaturesUpdateEvent>- Parameters:
event- the technical object update eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateTechnicalObject
protected void updateTechnicalObject(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) throws DAValidateException, DAException Update the technical object- Parameters:
event- the technical object update eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateFeatures
protected void updateFeatures(TechnicalObjectWithFeaturesUpdateEvent event, PoolKit poolKit) throws DAValidateException, DAException Update the features of the technical object- Parameters:
event- the technical object update eventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getFeatureValuesForUpdate
protected DBView getFeatureValuesForUpdate(TechnicalObject technicalObject, List<BOTechnicalObjectFeatureValue> featureValues, PoolKit poolKit) throws DAValidateException, DAException Returns the feature values for update.- Parameters:
technicalObject- the technical objectfeatureValues- the technical object's feature valuespoolKit- the pool kit- Returns:
- the feature values for update
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getExistingFeatureValues
protected DBView getExistingFeatureValues(Long technicalObjectId, PoolKit poolKit) throws DAValidateException, DAException Returns the already existing feature values.- Parameters:
technicalObjectId- the technical object idpoolKit- the pool kit- Returns:
- the existing feature values
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-