org.pentaho.di.www
Class SlaveSequence

java.lang.Object
  extended by org.pentaho.di.www.SlaveSequence

public class SlaveSequence
extends Object


Field Summary
static String XML_TAG
           
 
Constructor Summary
SlaveSequence()
           
SlaveSequence(Node node, List<DatabaseMeta> databases)
           
SlaveSequence(String name, long startValue, DatabaseMeta databaseMeta, String schemaName, String tableName, String sequenceNameField, String valueField)
           
 
Method Summary
static SlaveSequence findSlaveSequence(String name, List<SlaveSequence> slaveSequences)
          Find a slave sequence with a certain name
 DatabaseMeta getDatabaseMeta()
           
 String getName()
           
 long getNextValue(LoggingObjectInterface log, long incrementValue)
           
 String getSchemaName()
           
 String getSequenceNameField()
           
 long getStartValue()
           
 String getTableName()
           
 String getValueField()
           
 String getXML()
           
 void setDatabaseMeta(DatabaseMeta databaseMeta)
           
 void setName(String name)
           
 void setSchemaName(String schemaName)
           
 void setSequenceNameField(String sequenceNameField)
           
 void setStartValue(long startValue)
           
 void setTableName(String tableName)
           
 void setValueField(String valueField)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_TAG

public static final String XML_TAG
See Also:
Constant Field Values
Constructor Detail

SlaveSequence

public SlaveSequence()

SlaveSequence

public SlaveSequence(String name,
                     long startValue,
                     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<DatabaseMeta> databases)
              throws KettleXMLException
Throws:
KettleXMLException
Method Detail

getNextValue

public long getNextValue(LoggingObjectInterface log,
                         long incrementValue)
                  throws KettleException
Throws:
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 DatabaseMeta getDatabaseMeta()
Returns:
the databaseMeta

setDatabaseMeta

public void setDatabaseMeta(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.