Class SlaveSequence


  • public class SlaveSequence
    extends Object
    • Constructor Detail

      • SlaveSequence

        public SlaveSequence()
      • SlaveSequence

        public SlaveSequence​(String name,
                             long startValue,
                             org.pentaho.di.core.database.DatabaseMeta databaseMeta,
                             String schemaName,
                             String tableName,
                             String sequenceNameField,
                             String valueField)
        Parameters:
        name -
        startValue -
        incrementValue -
        databaseMeta -
        schemaName -
        tableName -
        sequenceNameField -
        valueField -
      • SlaveSequence

        public SlaveSequence​(Node node,
                             List<org.pentaho.di.core.database.DatabaseMeta> databases)
                      throws org.pentaho.di.core.exception.KettleXMLException
        Throws:
        org.pentaho.di.core.exception.KettleXMLException
    • Method Detail

      • getNextValue

        public long getNextValue​(org.pentaho.di.core.logging.LoggingObjectInterface log,
                                 long incrementValue)
                          throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getXML

        public String getXML()
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getStartValue

        public long getStartValue()
        Returns:
        the startValue
      • setStartValue

        public void setStartValue​(long startValue)
        Parameters:
        startValue - the startValue to set
      • getDatabaseMeta

        public org.pentaho.di.core.database.DatabaseMeta getDatabaseMeta()
        Returns:
        the databaseMeta
      • setDatabaseMeta

        public void setDatabaseMeta​(org.pentaho.di.core.database.DatabaseMeta databaseMeta)
        Parameters:
        databaseMeta - the databaseMeta to set
      • getSchemaName

        public String getSchemaName()
        Returns:
        the schemaName
      • setSchemaName

        public void setSchemaName​(String schemaName)
        Parameters:
        schemaName - the schemaName to set
      • getTableName

        public String getTableName()
        Returns:
        the tableName
      • setTableName

        public void setTableName​(String tableName)
        Parameters:
        tableName - the tableName to set
      • getSequenceNameField

        public String getSequenceNameField()
        Returns:
        the sequenceNameField
      • setSequenceNameField

        public void setSequenceNameField​(String sequenceNameField)
        Parameters:
        sequenceNameField - the sequenceNameField to set
      • getValueField

        public String getValueField()
        Returns:
        the valueField
      • setValueField

        public void setValueField​(String valueField)
        Parameters:
        valueField - the valueField to set
      • findSlaveSequence

        public static SlaveSequence findSlaveSequence​(String name,
                                                      List<SlaveSequence> slaveSequences)
        Find a slave sequence with a certain name
        Parameters:
        name - the name to look for
        Returns:
        the slave sequence with the specified name or null of the sequence couldn't be found.