@StableMinor(version="12.2", sinceVersion="10.4") public class SourcePostAddDataEvent extends SourceAddDataEvent
Source
after data is added.Constructor and Description |
---|
SourcePostAddDataEvent(Source<?> source,
IParameters parameters,
ISourceAddDataResult sourceAddDataResult)
Creates a new event for after add of source data.
|
Modifier and Type | Method and Description |
---|---|
List<ISourceData> |
getAddedData()
Returns the added data.
|
ISourceAddDataResult |
getSourceAddDataResult()
Returns the result of the source's add data operation.
|
getParameters, getSource
getSessionConfig, getTransaction
getEventGroups, getOperationType, setEventGroups, setOperationType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public SourcePostAddDataEvent(Source<?> source, IParameters parameters, ISourceAddDataResult sourceAddDataResult)
source
- the source.parameters
- the data provided to the add operation as parameters.sourceAddDataResult
- the result of the add operation.public ISourceAddDataResult getSourceAddDataResult()
public List<ISourceData> getAddedData()
This method may require reading the added data from the persistence. So if the required information is available using another method of this event, it may be more efficient to use that other method.
Source.readData(String...)
for the item identifier obtained with
getSourceAddDataResult()
.getItemId()
. For optimizations
purpose, the returned data is reused on multiple calls to this method and it must not be modified to prevent
incorrect result on future calls to this method.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.