Package org.pentaho.di.www
Class SlaveSequence
- java.lang.Object
-
- org.pentaho.di.www.SlaveSequence
-
public class SlaveSequence extends Object
-
-
Constructor Summary
Constructors Constructor Description SlaveSequence()SlaveSequence(String name, long startValue, org.pentaho.di.core.database.DatabaseMeta databaseMeta, String schemaName, String tableName, String sequenceNameField, String valueField)SlaveSequence(Node node, List<org.pentaho.di.core.database.DatabaseMeta> databases)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlaveSequencefindSlaveSequence(String name, List<SlaveSequence> slaveSequences)Find a slave sequence with a certain nameorg.pentaho.di.core.database.DatabaseMetagetDatabaseMeta()StringgetName()longgetNextValue(org.pentaho.di.core.logging.LoggingObjectInterface log, long incrementValue)StringgetSchemaName()StringgetSequenceNameField()longgetStartValue()StringgetTableName()StringgetValueField()StringgetXML()voidsetDatabaseMeta(org.pentaho.di.core.database.DatabaseMeta databaseMeta)voidsetName(String name)voidsetSchemaName(String schemaName)voidsetSequenceNameField(String sequenceNameField)voidsetStartValue(long startValue)voidsetTableName(String tableName)voidsetValueField(String valueField)
-
-
-
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, org.pentaho.di.core.database.DatabaseMeta databaseMeta, String schemaName, String tableName, String sequenceNameField, String valueField)
- Parameters:
name-startValue-incrementValue-databaseMeta-schemaName-tableName-sequenceNameField-valueField-
-
-
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.
-
-