Package org.pentaho.di.www
Class SlaveSequence
java.lang.Object
org.pentaho.di.www.SlaveSequence
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSlaveSequence(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
Modifier and TypeMethodDescriptionstatic SlaveSequencefindSlaveSequence(String name, List<SlaveSequence> slaveSequences) Find a slave sequence with a certain nameorg.pentaho.di.core.database.DatabaseMetagetName()longgetNextValue(org.pentaho.di.core.logging.LoggingObjectInterface log, long incrementValue) longgetXML()voidsetDatabaseMeta(org.pentaho.di.core.database.DatabaseMeta databaseMeta) voidvoidsetSchemaName(String schemaName) voidsetSequenceNameField(String sequenceNameField) voidsetStartValue(long startValue) voidsetTableName(String tableName) voidsetValueField(String valueField)
-
Field Details
-
XML_TAG
- See Also:
-
-
Constructor Details
-
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 Details
-
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
-
getName
- Returns:
- the name
-
setName
- 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
- Returns:
- the schemaName
-
setSchemaName
- Parameters:
schemaName- the schemaName to set
-
getTableName
- Returns:
- the tableName
-
setTableName
- Parameters:
tableName- the tableName to set
-
getSequenceNameField
- Returns:
- the sequenceNameField
-
setSequenceNameField
- Parameters:
sequenceNameField- the sequenceNameField to set
-
getValueField
- Returns:
- the valueField
-
setValueField
- Parameters:
valueField- the valueField to set
-
findSlaveSequence
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.
-