Package org.pentaho.di.core.util
Class AbstractStepMeta
java.lang.Object
org.pentaho.di.trans.step.BaseStepMeta
org.pentaho.di.core.util.AbstractStepMeta
- All Implemented Interfaces:
Cloneable
,StepAttributesInterface
,StepMetaInterface
- Author:
- Michael Gugerell(asc145)
-
Field Summary
Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.di.core.database.DatabaseMeta
Get a new instance of the appropriate data class.getXML()
Produces the XML string that describes this step's information.void
loadXML
(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databaseMeta, org.pentaho.metastore.api.IMetaStore metaStore) Load the values for this step from an XML Nodevoid
Read properties from preferences.void
readRep
(Repository repo, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId stepId, List<org.pentaho.di.core.database.DatabaseMeta> databaseList) Read the steps information from a Kettle repositoryvoid
Saves properties to preferences.void
saveRep
(Repository repo, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId transformationId, org.pentaho.di.repository.ObjectId stepId) Save the steps data into a Kettle repositoryvoid
setConnectionName
(StringPluginProperty connectionName) void
setDbMeta
(org.pentaho.di.core.database.DatabaseMeta dbMeta) Methods inherited from class org.pentaho.di.trans.step.BaseStepMeta
analyseImpact, analyseImpact, cancelQueries, check, check, check, clone, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, 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, getUsedDatabaseConnections, 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, supportsErrorHandling
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.di.trans.step.StepMetaInterface
analyseImpact, analyseImpact, cancelQueries, check, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, clone, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStep, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setDefault, setParentStepMeta, supportsErrorHandling
-
Constructor Details
-
AbstractStepMeta
public AbstractStepMeta()Default constructor.
-
-
Method Details
-
getPropertyFactory
- Returns:
- the propertyFactory
-
getProperties
- Returns:
- the properties
-
saveAsPreferences
Saves properties to preferences.- Throws:
BackingStoreException
- ...
-
readFromPreferences
public void readFromPreferences()Read properties from preferences. -
loadXML
public void loadXML(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databaseMeta, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleXMLException Load the values for this step from an XML Node- Specified by:
loadXML
in interfaceStepMetaInterface
- Overrides:
loadXML
in classBaseStepMeta
- Parameters:
node
- the Node to get the info fromdatabaseMeta
- The available list of databases to reference tometaStore
- the metastore to optionally load external reference metadata from- Throws:
org.pentaho.di.core.exception.KettleXMLException
- When an unexpected XML error occurred. (malformed etc.)- See Also:
-
getXML
Produces the XML string that describes this step's information.- Specified by:
getXML
in interfaceStepMetaInterface
- Overrides:
getXML
in classBaseStepMeta
- Returns:
- String containing the XML describing this step.
- Throws:
org.pentaho.di.core.exception.KettleException
- in case there is an XML conversion or encoding error- See Also:
-
readRep
public void readRep(Repository repo, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId stepId, List<org.pentaho.di.core.database.DatabaseMeta> databaseList) throws org.pentaho.di.core.exception.KettleException Read the steps information from a Kettle repository- Specified by:
readRep
in interfaceStepMetaInterface
- Overrides:
readRep
in classBaseStepMeta
- Parameters:
repo
- The repository to read frommetaStore
- The MetaStore to read external information fromstepId
- The step IDdatabaseList
- The databases to reference- Throws:
org.pentaho.di.core.exception.KettleException
- When an unexpected error occurred (database, network, etc)- See Also:
-
org.pentaho.di.trans.step.StepMetaInterface#readRep(org.pentaho.di.repository.Repository, long, java.util.List, java.util.Map)
-
saveRep
public void saveRep(Repository repo, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.repository.ObjectId transformationId, org.pentaho.di.repository.ObjectId stepId) throws org.pentaho.di.core.exception.KettleException Save the steps data into a Kettle repository- Specified by:
saveRep
in interfaceStepMetaInterface
- Overrides:
saveRep
in classBaseStepMeta
- Parameters:
repo
- The Kettle repository to save tometaStore
- the metaStore to optionally write totransformationId
- The transformation IDstepId
- The step ID- Throws:
org.pentaho.di.core.exception.KettleException
- When an unexpected error occurred (database, network, etc)- See Also:
-
org.pentaho.di.trans.step.StepMetaInterface#saveRep(org.pentaho.di.repository.Repository, long, long)
-
getStepData
Get 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:
getStepData
in interfaceStepMetaInterface
- Returns:
- The appropriate StepDataInterface class.
- See Also:
-
getConnectionName
- Returns:
- the connectionName
-
setConnectionName
- Parameters:
connectionName
- the connectionName to set
-
getDbMeta
public org.pentaho.di.core.database.DatabaseMeta getDbMeta()- Returns:
- the dbMeta
-
setDbMeta
public void setDbMeta(org.pentaho.di.core.database.DatabaseMeta dbMeta) - Parameters:
dbMeta
- the dbMeta to set
-