Class AbstractStepMeta

    • Constructor Detail

      • AbstractStepMeta

        public AbstractStepMeta()
        Default constructor.
    • Method Detail

      • getProperties

        public KeyValueSet getProperties()
        Returns:
        the properties
      • 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 interface StepMetaInterface
        Overrides:
        loadXML in class BaseStepMeta
        Parameters:
        node - the Node to get the info from
        databaseMeta - 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.)
        See Also:
        StepMetaInterface.loadXML(org.w3c.dom.Node, java.util.List, java.util.Map)
      • getXML

        public String getXML()
                      throws org.pentaho.di.core.exception.KettleException
        Produces the XML string that describes this step's information.
        Specified by:
        getXML in interface StepMetaInterface
        Overrides:
        getXML in class BaseStepMeta
        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:
        BaseStepMeta.getXML()
      • 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 interface StepMetaInterface
        Overrides:
        readRep in class BaseStepMeta
        Parameters:
        repo - The repository to read from
        metaStore - The MetaStore to read external information from
        stepId - The step ID
        databaseList - 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 interface StepMetaInterface
        Overrides:
        saveRep in class BaseStepMeta
        Parameters:
        repo - The Kettle repository to save to
        metaStore - the metaStore to optionally write to
        transformationId - The transformation ID
        stepId - 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

        public StepDataInterface 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 interface StepMetaInterface
        Returns:
        The appropriate StepDataInterface class.
        See Also:
        StepMetaInterface.getStepData()
      • setConnectionName

        public void setConnectionName​(StringPluginProperty connectionName)
        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