Class CompositePipelineAction
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.core.FoundationObject
com.northconcepts.datapipeline.foundations.pipeline.PipelineObject
com.northconcepts.datapipeline.foundations.pipeline.action.PipelineAction
com.northconcepts.datapipeline.foundations.pipeline.action.CompositePipelineAction
- All Implemented Interfaces:
DataExceptionContributor,JsonSerializable,RecordSerializable,XmlSerializable,DataReaderAction,SqlSelectGenerator,JavaCodeGenerator,Serializable
A
PipelineAction that applies a list of nested actions in order, as a single step.- See Also:
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
internalId, internalName, log, TIMESTAMP_FORMATFields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPEFields inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
XML_SERIALIZED_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAction(PipelineAction action) Appends a nested action and attaches it to this action's pipeline.addAction(Integer index, PipelineAction action) Inserts a nested action at the given 0-based index (or appends it if the index is null) and attaches it to this action's pipeline.apply(DataReader reader) Returns a reader that applies this action to the records of the given reader, usually by wrapping it.Loads this object's state from the given JSON text.fromRecord(Record source) Loads this instance's state from a record and returnsthis(for fluid API call chaining).fromXmlElement(Element element) voidAppends Java source code representing this object to the given builder.intReturns a read-only view of the nested actions.Returns a Java program, aDataPipelineDesktopclass whosemainmethod holds the nested actions' generated code.setAction(int index, PipelineAction action) Replaces the nested action at the given 0-based index and attaches it to this action's pipeline.setActions(List<PipelineAction> actions) Replaces the nested actions with the given list and attaches each of them to this action's pipeline.setPipeline(Pipeline pipeline) Sets the pipeline this action belongs to; called byPipelinewhen the action is added to it.toRecord()Converts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.toXmlElement(Document document) Returns an element, created withdocument, describing this object; the default implementation throws aDataException.Methods inherited from class com.northconcepts.datapipeline.foundations.pipeline.action.PipelineAction
escapeJavaString, getCode, getDescription, getDisplayText, getPipeline, setDescription, toStringMethods inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
addExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionPropertiesMethods inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
fromJson, toJson, toJson, toJsonMethods inherited from interface com.northconcepts.datapipeline.jdbc.sql.select.SqlSelectGenerator
generateSqlSelect
-
Constructor Details
-
CompositePipelineAction
public CompositePipelineAction()
-
-
Method Details
-
apply
Description copied from interface:DataReaderActionReturns a reader that applies this action to the records of the given reader, usually by wrapping it.- Throws:
Throwable
-
getActions
Returns a read-only view of the nested actions. -
getActionCount
public int getActionCount() -
addAction
Appends a nested action and attaches it to this action's pipeline. -
addAction
Inserts a nested action at the given 0-based index (or appends it if the index is null) and attaches it to this action's pipeline. -
setPipeline
Description copied from class:PipelineActionSets the pipeline this action belongs to; called byPipelinewhen the action is added to it.- Overrides:
setPipelinein classPipelineAction
-
setAction
Replaces the nested action at the given 0-based index and attaches it to this action's pipeline. -
setActions
Replaces the nested actions with the given list and attaches each of them to this action's pipeline. -
generateJavaCode
Description copied from interface:JavaCodeGeneratorAppends Java source code representing this object to the given builder.- Specified by:
generateJavaCodein interfaceJavaCodeGenerator- Overrides:
generateJavaCodein classPipelineAction
-
getJavaCode
Returns a Java program, aDataPipelineDesktopclass whosemainmethod holds the nested actions' generated code. -
toRecord
Description copied from interface:RecordSerializableConverts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.- Specified by:
toRecordin interfaceRecordSerializable- Overrides:
toRecordin classPipelineAction
-
fromJson
Description copied from interface:JsonSerializableLoads this object's state from the given JSON text. -
fromRecord
Description copied from interface:RecordSerializableLoads this instance's state from a record and returnsthis(for fluid API call chaining). For fluid API call chaining, the overridden method should change the declared return type to its class.- Specified by:
fromRecordin interfaceRecordSerializable- Overrides:
fromRecordin classPipelineAction- Parameters:
source-- Returns:
- this instance.
-
toXmlElement
Description copied from interface:XmlSerializableReturns an element, created withdocument, describing this object; the default implementation throws aDataException.- Specified by:
toXmlElementin interfaceXmlSerializable- Overrides:
toXmlElementin classPipelineAction
-
fromXmlElement
- Specified by:
fromXmlElementin interfaceXmlSerializable- Overrides:
fromXmlElementin classPipelineAction
-