public java.lang.Void setNbInsert(public java.lang.Long)
public java.lang.Void setNbUpdate(public java.lang.Long)
public java.lang.Void setNbDelete(public java.lang.Long)
public java.lang.Void setNbErrors(public java.lang.Long)
public java.lang.Void setNbRows(public java.lang.Long)
These methods set for the current task report the values for:
the number of rows inserted (setNbInsert)
the number of rows updated (setNbUpdate)
the number of rows deleted (setNbDelete)
the number of rows in error (setNbErrors)
total number of rows handled during this task (setNbRows)
These numbers can be set independently from the real number of lines processed.
Important: This method can be used only within scripting engine commands, such as in Jython code and should not be enclosed in <% %> tags.
In the Jython example below, we set the number of inserted rows to the constant value of 50, and the number of erroneous rows to a value coming from an ODI variable called #DEMO.NbErrors.
InsertNumber=50
odiRef.setNbInsert(InsertNumber)
ErrorNumber=#DEMO.NbErrors
odiRef.setNbErrors(ErrorNumber)