Class DBProcMeta
- java.lang.Object
- 
- org.pentaho.di.trans.step.BaseStepMeta
- 
- org.pentaho.di.trans.steps.dbproc.DBProcMeta
 
 
- 
- All Implemented Interfaces:
- Cloneable,- StepAttributesInterface,- StepMetaInterface
 
 public class DBProcMeta extends BaseStepMeta implements StepMetaInterface 
- 
- 
Field Summary- 
Fields inherited from class org.pentaho.di.trans.step.BaseStepMetaattributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DBProcMeta()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(int nrargs)voidcheck(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Checks the settings of this step and puts the findings in a remarks List.Objectclone()Make an exact copy of this step, make sure to explicitly copy Collections etc.String[]getArgument()String[]getArgumentDirection()int[]getArgumentType()org.pentaho.di.core.database.DatabaseMetagetDatabase()voidgetFields(org.pentaho.di.core.row.RowMetaInterface r, String name, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore)Gets the fields.StringgetProcedure()StringgetResultName()intgetResultType()StepInterfacegetStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans)Get the executing step, needed by Trans to launch a step.StepDataInterfacegetStepData()Get a new instance of the appropriate data class.org.pentaho.di.core.database.DatabaseMeta[]getUsedDatabaseConnections()This method returns all the database connections that are used by the step.StringgetXML()Produces the XML string that describes this step's information.booleanisAutoCommit()voidloadXML(Node stepnode, List<org.pentaho.di.core.database.DatabaseMeta> databases, org.pentaho.metastore.api.IMetaStore metaStore)Load the values for this step from an XML NodevoidreadRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases)Read the steps information from a Kettle repositoryvoidsaveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step)Save the steps data into a Kettle repositoryvoidsetArgument(String[] argument)voidsetArgumentDirection(String[] argumentDirection)voidsetArgumentType(int[] argumentType)voidsetAutoCommit(boolean autoCommit)voidsetDatabase(org.pentaho.di.core.database.DatabaseMeta database)voidsetDefault()Set default valuesvoidsetProcedure(String procedure)voidsetResultName(String resultName)voidsetResultType(int resultType)booleansupportsErrorHandling()- 
Methods inherited from class org.pentaho.di.trans.step.BaseStepMetaanalyseImpact, analyseImpact, cancelQueries, check, check, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pentaho.di.trans.step.StepMetaInterfaceanalyseImpact, analyseImpact, cancelQueries, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedLibraries, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setParentStepMeta
 
- 
 
- 
- 
- 
Method Detail- 
getArgumentpublic String[] getArgument() - Returns:
- Returns the argument.
 
 - 
setArgumentpublic void setArgument(String[] argument) - Parameters:
- argument- The argument to set.
 
 - 
getArgumentDirectionpublic String[] getArgumentDirection() - Returns:
- Returns the argumentDirection.
 
 - 
setArgumentDirectionpublic void setArgumentDirection(String[] argumentDirection) - Parameters:
- argumentDirection- The argumentDirection to set.
 
 - 
getArgumentTypepublic int[] getArgumentType() - Returns:
- Returns the argumentType.
 
 - 
setArgumentTypepublic void setArgumentType(int[] argumentType) - Parameters:
- argumentType- The argumentType to set.
 
 - 
getDatabasepublic org.pentaho.di.core.database.DatabaseMeta getDatabase() - Returns:
- Returns the database.
 
 - 
setDatabasepublic void setDatabase(org.pentaho.di.core.database.DatabaseMeta database) - Parameters:
- database- The database to set.
 
 - 
getProcedurepublic String getProcedure() - Returns:
- Returns the procedure.
 
 - 
setProcedurepublic void setProcedure(String procedure) - Parameters:
- procedure- The procedure to set.
 
 - 
getResultNamepublic String getResultName() - Returns:
- Returns the resultName.
 
 - 
setResultNamepublic void setResultName(String resultName) - Parameters:
- resultName- The resultName to set.
 
 - 
getResultTypepublic int getResultType() - Returns:
- Returns the resultType.
 
 - 
setResultTypepublic void setResultType(int resultType) - Parameters:
- resultType- The resultType to set.
 
 - 
isAutoCommitpublic boolean isAutoCommit() - Returns:
- Returns the autoCommit.
 
 - 
setAutoCommitpublic void setAutoCommit(boolean autoCommit) - Parameters:
- autoCommit- The autoCommit to set.
 
 - 
loadXMLpublic void loadXML(Node stepnode, List<org.pentaho.di.core.database.DatabaseMeta> databases, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleXMLException Description copied from interface:StepMetaInterfaceLoad the values for this step from an XML Node- Specified by:
- loadXMLin interface- StepMetaInterface
- Overrides:
- loadXMLin class- BaseStepMeta
- Parameters:
- stepnode- the Node to get the info from
- databases- The available list of databases to reference to
- metaStore- the metastore to optionally load external reference metadata from
- Throws:
- org.pentaho.di.core.exception.KettleXMLException- When an unexpected XML error occurred. (malformed etc.)
 
 - 
allocatepublic void allocate(int nrargs) 
 - 
clonepublic Object clone() Description copied from interface:StepMetaInterfaceMake an exact copy of this step, make sure to explicitly copy Collections etc.- Specified by:
- clonein interface- StepMetaInterface
- Overrides:
- clonein class- BaseStepMeta
- Returns:
- an exact copy of this step
 
 - 
setDefaultpublic void setDefault() Description copied from interface:StepMetaInterfaceSet default values- Specified by:
- setDefaultin interface- StepMetaInterface
 
 - 
getFieldspublic void getFields(org.pentaho.di.core.row.RowMetaInterface r, String name, org.pentaho.di.core.row.RowMetaInterface[] info, StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStepMetaGets the fields.- Specified by:
- getFieldsin interface- StepMetaInterface
- Overrides:
- getFieldsin class- BaseStepMeta
- Parameters:
- r- the input row meta that is modified in this method to reflect the output row metadata of the step
- name- Name of the step to use as input for the origin field in the values
- info- Fields used as extra lookup information
- nextStep- the next step that is targeted
- space- the space The variable space to use to replace variables
- repository- the repository to use to load Kettle metadata objects impacting the output fields
- metaStore- the MetaStore to use to load additional external data or metadata impacting the output fields
- Throws:
- org.pentaho.di.core.exception.KettleStepException- the kettle step exception
 
 - 
getXMLpublic String getXML() Description copied from class:BaseStepMetaProduces the XML string that describes this step's information.- Specified by:
- getXMLin interface- StepMetaInterface
- Overrides:
- getXMLin class- BaseStepMeta
- Returns:
- String containing the XML describing this step.
 
 - 
readReppublic void readRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepMetaInterfaceRead the steps information from a Kettle repository- Specified by:
- readRepin interface- StepMetaInterface
- Overrides:
- readRepin class- BaseStepMeta
- Parameters:
- rep- The repository to read from
- metaStore- The MetaStore to read external information from
- id_step- The step ID
- databases- The databases to reference
- Throws:
- org.pentaho.di.core.exception.KettleException- When an unexpected error occurred (database, network, etc)
 
 - 
saveReppublic void saveRep(Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepMetaInterfaceSave the steps data into a Kettle repository- Specified by:
- saveRepin interface- StepMetaInterface
- Overrides:
- saveRepin class- BaseStepMeta
- Parameters:
- rep- The Kettle repository to save to
- metaStore- the metaStore to optionally write to
- id_transformation- The transformation ID
- id_step- The step ID
- Throws:
- org.pentaho.di.core.exception.KettleException- When an unexpected error occurred (database, network, etc)
 
 - 
checkpublic void check(List<org.pentaho.di.core.CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info, org.pentaho.di.core.variables.VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Description copied from interface:StepMetaInterfaceChecks the settings of this step and puts the findings in a remarks List.- Specified by:
- checkin interface- StepMetaInterface
- Overrides:
- checkin class- BaseStepMeta
- Parameters:
- remarks- The list to put the remarks in @see org.pentaho.di.core.CheckResult
- stepMeta- The stepMeta to help checking
- prev- The fields coming from the previous step
- input- The input step names
- output- The output step names
- info- The fields that are used as information by the step
- space- the variable space to resolve variable expressions with
- repository- the repository to use to load Kettle metadata objects impacting the output fields
- metaStore- the MetaStore to use to load additional external data or metadata impacting the output fields
 
 - 
getSteppublic StepInterface getStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr, TransMeta transMeta, Trans trans) Description copied from interface:StepMetaInterfaceGet the executing step, needed by Trans to launch a step.- Specified by:
- getStepin interface- StepMetaInterface
- Parameters:
- stepMeta- The step info
- stepDataInterface- the step data interface linked to this step. Here the step can store temporary data, database connections, etc.
- cnr- The copy nr to get
- transMeta- The transformation info
- trans- The launching transformation
 
 - 
getStepDatapublic StepDataInterface getStepData() Description copied from interface:StepMetaInterfaceGet a new instance of the appropriate data class. This data class implements the StepDataInterface. It basically contains the persisting data that needs to live on, even if a worker thread is terminated.- Specified by:
- getStepDatain interface- StepMetaInterface
- Returns:
- The appropriate StepDataInterface class.
 
 - 
getUsedDatabaseConnectionspublic org.pentaho.di.core.database.DatabaseMeta[] getUsedDatabaseConnections() Description copied from class:BaseStepMetaThis method returns all the database connections that are used by the step.- Specified by:
- getUsedDatabaseConnectionsin interface- StepMetaInterface
- Overrides:
- getUsedDatabaseConnectionsin class- BaseStepMeta
- Returns:
- an array of database connections meta-data. Return an empty array if no connections are used.
 
 - 
supportsErrorHandlingpublic boolean supportsErrorHandling() - Specified by:
- supportsErrorHandlingin interface- StepMetaInterface
- Overrides:
- supportsErrorHandlingin class- BaseStepMeta
- Returns:
- true if this step supports error "reporting" on rows: the ability to send rows to a certain target step.
 
 
- 
 
-