Package wt.change2.listeners
Class ResultingChangeEventHandler
java.lang.Object
wt.services.ServiceEventListenerAdapter
wt.change2.listeners.ChangeStatusEventHandler
wt.change2.listeners.ResultingChangeEventHandler
- All Implemented Interfaces:
KeyedEventListener
- Direct Known Subclasses:
DefaultResultingChangeEventHandler
This class is responsible for implementing the common functionality for
processing the events that can change the resulting change status of a
changeable.
Supported API: true
Extended API: true
Supported API: true
Extended API: true
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendChangeNoticeCondition(QuerySpec querySpec, int changeIdx) Implementation of the appendChangeNoticeCondition method from ResultingChangeEventHandler.Methods inherited from class wt.change2.listeners.ChangeStatusEventHandler
appendByChangeables, appendByChangeItem, appendLatestChangeCondition, buildCompoundQuerySpec, buildCompoundQuerySpec2, buildJoinQuerySpec, calculate, getChangeableQueryClass, getChangeables, getChangeables, getChangeablesToResetIndicator, getChangeablesToResetIndicator, getChangeablesToSetIndicator, getChangeablesToSetIndicator, getGeneratedEventKeys, notifyVetoableMultiObjectEvent, setChangeableQueryClass, updateChangeStatus, updateChangeStatus
-
Method Details
-
appendChangeNoticeCondition
protected void appendChangeNoticeCondition(QuerySpec querySpec, int changeIdx) throws QueryException Implementation of the appendChangeNoticeCondition method from ResultingChangeEventHandler. By default, the change notice is resulting if the life cycle state matches a state defined in the propertywt.change2.pendingResultingStatesfor type Changeable2.HAS_RESULTING_CHANGE, fromwt.properties. The current implementation would append the following condition phrase to the specified query spec, where A0 is the changeIdx(the table index for the change Item):A0.statestate = 'IMPLEMENTATION
Supported API: true- Overrides:
appendChangeNoticeConditionin classChangeStatusEventHandler- Parameters:
querySpec- - query Spec to which the condition need to be appendedchangeIdx- - table index for the change item- Throws:
QueryException
-