Update a set of records in a table.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Function recupdate( _ 
   ByVal tblName As String,  _ 
   ByVal src As NetricsTableRecSrc,  _ 
   ByVal doMaxWork As Boolean,  _ 
   ByVal l As NetricsLock _ 
) As NetricsTableStats _
    Implements INetricsServerInterface.recupdate
C#
public NetricsTableStats recupdate(
   string tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l
)
C++
public:
 NetricsTableStats recupdate(
   String tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l
) sealed 
J#
public NetricsTableStats recupdate(
   string tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l
)
JScript
public  function recupdate(
   tblName : String,
   src : NetricsTableRecSrc,
   doMaxWork : bool,
   l : NetricsLock
) : NetricsTableStats

Parameters

tblName
The name of the table to be updated.
src
Provides the records to be updated.
doMaxWork
Continue on error - ignore records with errors and continue processing.
l
A NetricsLock object which will pass the lock key to the table. If the table is locked with a lock key and this parameter is not passed with the matchine key, the operation will fail.

Return Value

The stats for the table after the operation is completed.

Implements

INetricsServerInterface.recupdate

Exceptions

Exception TypeCondition
NetricsExceptionIf the server indicates that an error has occured (Possilbe errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECNOTFOUND, UPDPARAM, SHUTDOWN)

Remarks

This will add each of the records from the source to the named table if the do not already exist, or update them if they do exist.

See Also