Class ExecSql
- java.lang.Object
-
- org.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>
-
- org.apache.hop.pipeline.transforms.sql.ExecSql
-
- All Implemented Interfaces:
IExtensionData,IHasLogChannel,ILoggingObject,IVariables,org.apache.hop.pipeline.engine.IEngineComponent,org.apache.hop.pipeline.transform.ITransform
public class ExecSql extends org.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>
Execute one or more SQL statements in a script, one time or parameterised (for every row)
-
-
Field Summary
-
Fields inherited from class org.apache.hop.pipeline.transform.BaseTransform
data, deadLockCounter, executionEndDate, executionStartDate, extensionDataMap, first, firstRowReadDate, initStartDate, lastRowWrittenDate, log, meta, metadataProvider, rowListeners, safeStopped, terminator, terminatorRows, variables
-
-
Constructor Summary
Constructors Constructor Description ExecSql(org.apache.hop.pipeline.transform.TransformMeta transformMeta, ExecSqlMeta meta, ExecSqlData data, int copyNr, org.apache.hop.pipeline.PipelineMeta pipelineMeta, org.apache.hop.pipeline.Pipeline pipeline)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()static RowMetaAndDatagetResultRow(Result result, String upd, String ins, String del, String read)booleaninit()booleanprocessRow()voidstopRunning()Stop the running query-
Methods inherited from class org.apache.hop.pipeline.transform.BaseTransform
addResultFile, addRowListener, addRowSetToInputRowSets, addRowSetToOutputRowSets, addTransformFinishedListener, addTransformStartedListener, batchComplete, canProcessOneRow, checkFeedback, cleanup, clearInputRowSets, clearOutputRowSets, closeQuietly, copyFrom, decrementLinesRead, decrementLinesWritten, dispatch, findInputRowSet, findInputRowSet, findOutputRowSet, findOutputRowSet, finishBundle, getContainerId, getCopy, getCopyNr, getCurrentInputRowSetNr, getCurrentOutputRowSetNr, getData, getDispatcher, getErrorRowMeta, getErrors, getExecutionDuration, getExecutionEndDate, getExecutionStartDate, getExtensionDataMap, getFilename, getFirstInputRowSet, getFirstRowReadDate, getInitStartDate, getInputBufferSize, getInputRowMeta, getInputRowSets, getLastRowWrittenDate, getLinesInput, getLinesOutput, getLinesRead, getLinesRejected, getLinesSkipped, getLinesUpdated, getLinesWritten, getLogChannel, getLogChannelId, getLogLevel, getLogText, getMeta, getMetadataProvider, getName, getObjectCopy, getObjectName, getObjectType, getOutputBufferSize, getOutputRowSets, getParent, getParentVariables, getPartitionId, getPartitionTargets, getPipeline, getPipelineMeta, getPreviewRowMeta, getProcessed, getRegistrationDate, getRepartitioning, getResultFiles, getRow, getRowFrom, getRowHandler, getRowListeners, getStatus, getStatusDescription, getTransformFinishedListeners, getTransformMeta, getTransformName, getTransformPluginId, getTransformStartedListeners, getVariable, getVariable, getVariableBoolean, getVariableNames, handleGetRowFrom, handlePutError, handlePutRowTo, identifyErrorOutput, incrementLinesInput, incrementLinesOutput, incrementLinesRead, incrementLinesRejected, incrementLinesSkipped, incrementLinesUpdated, incrementLinesWritten, initBeforeStart, initializeFrom, isAllowEmptyFieldNamesAndTypes, isBasic, isDebug, isDetailed, isDistributed, isForcingSeparateLogging, isGatheringMetrics, isInitialising, isMapping, isPartitioned, isPaused, isRowLevel, isRunning, isSafeStopped, isSelected, isStopped, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, logSummary, markStart, markStop, outputIsDone, pauseRunning, putError, putRow, putRowTo, removeRowListener, resolve, resolve, resolve, resumeRunning, rowsetInputSize, rowsetOutputSize, safeModeChecking, safeModeChecking, setAllowEmptyFieldNamesAndTypes, setCarteObjectId, setCopy, setCopyNr, setCurrentInputRowSetNr, setCurrentOutputRowSetNr, setDistributed, setErrorRowMeta, setErrors, setExecutionEndDate, setExecutionStartDate, setFirstRowReadDate, setForcingSeparateLogging, setGatheringMetrics, setInitStartDate, setInputRowMeta, setInputRowSets, setInternalVariables, setLastRowWrittenDate, setLinesInput, setLinesOutput, setLinesRead, setLinesRejected, setLinesSkipped, setLinesUpdated, setLinesWritten, setLogLevel, setMetadataProvider, setOutputDone, setOutputRowSets, setParentVariables, setPartitioned, setPartitionId, setPartitionTargets, setPaused, setPaused, setPreviewRowMeta, setRepartitioning, setRowHandler, setRunning, setSafeStopped, setStopped, setTransformFinishedListeners, setTransformName, setTransformStartedListeners, setVariable, setVariables, shareWith, startBundle, stopAll, swapFirstInputRowSetIfExists, toString, waitUntilPipelineIsStarted
-
-
-
-
Constructor Detail
-
ExecSql
public ExecSql(org.apache.hop.pipeline.transform.TransformMeta transformMeta, ExecSqlMeta meta, ExecSqlData data, int copyNr, org.apache.hop.pipeline.PipelineMeta pipelineMeta, org.apache.hop.pipeline.Pipeline pipeline)
-
-
Method Detail
-
getResultRow
public static final RowMetaAndData getResultRow(Result result, String upd, String ins, String del, String read)
-
processRow
public boolean processRow() throws HopException- Specified by:
processRowin interfaceorg.apache.hop.pipeline.transform.ITransform- Overrides:
processRowin classorg.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>- Throws:
HopException
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.apache.hop.pipeline.transform.ITransform- Overrides:
disposein classorg.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>
-
stopRunning
public void stopRunning() throws HopExceptionStop the running query- Specified by:
stopRunningin interfaceorg.apache.hop.pipeline.transform.ITransform- Overrides:
stopRunningin classorg.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>- Throws:
HopException
-
init
public boolean init()
- Specified by:
initin interfaceorg.apache.hop.pipeline.transform.ITransform- Overrides:
initin classorg.apache.hop.pipeline.transform.BaseTransform<ExecSqlMeta,ExecSqlData>
-
-