org.pentaho.di.www
Class SlaveSequence
java.lang.Object
org.pentaho.di.www.SlaveSequence
public class SlaveSequence
- extends Object
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
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
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.