Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Member Functions | Protected Member Functions | Friends
IlsSwMemoryTable Class Reference

This class derives from the Rogue Wave Views class IliMemoryTable and redefines some of the member functions related to the rows. More...

#include <ilmvsw/memtable.h>

Inherits IliMemoryTable.

Public Member Functions

virtual ~IlsSwMemoryTable ()
 Destructor.
 
virtual IlvBoolean deleteRow (IlvInt rowNumber)
 Removes a row. More...
 
IlvInt getInFormIndex (IlsSvInt svIndex) const
 Returns the column number of the corresponding server index.
 
IlsSvInt getServerIndex (IlvInt colNumber) const
 Returns the server index that corresponds to the column number colNumber in the table.
 
IlsSwTablegetTable () const
 Returns the table representation object attached to this Views memory table, if any. More...
 
virtual IlvBoolean insertRow (IlvInt rowNumber, IliTableBuffer *)
 Updates underlying memory table or create a new row. More...
 
virtual IlvBoolean updateRow (IlvInt rowNumber, IliTableBuffer *)
 Sends a request to the server, updating all modified values in the supplied IliTableBuffer object.
 
Constructors

These constructors are inherited from the Rogue Wave Views class IliMemoryTable.

 IlsSwMemoryTable (IlvDisplay *)
 
 IlsSwMemoryTable (const IlsSwMemoryTable &)
 
 IlsSwMemoryTable (IlvDisplay *, ILS_ISTREAM &)
 

Protected Member Functions

IlsBoolean isInS2CTransaction ()
 Checks if we are in a server-to-component notification. More...
 

Friends

class IlsSwRepresentation
 

Detailed Description

This class derives from the Rogue Wave Views class IliMemoryTable and redefines some of the member functions related to the rows.

Library: mvsw

When its functions are called within a server transaction, they result in the internal table buffer being modified. Otherwise, an update is sent to the server.

See also
IlsSwMemoryTableFactory, IlsSwRow.

Member Function Documentation

◆ deleteRow()

virtual IlvBoolean IlsSwMemoryTable::deleteRow ( IlvInt  rowNumber)
virtual

Removes a row.

If this virtual member function is called within a server-to-component transaction, the specified row is removed from the specified table. Otherwise, the corresponding IlsSwRow object is removed from the collector of the table.

◆ getTable()

IlsSwTable * IlsSwMemoryTable::getTable ( ) const

Returns the table representation object attached to this Views memory table, if any.

It returns 0 if no representation of this type has been created for this data source.

◆ insertRow()

virtual IlvBoolean IlsSwMemoryTable::insertRow ( IlvInt  rowNumber,
IliTableBuffer *   
)
virtual

Updates underlying memory table or create a new row.

If this virtual function is called within a server-to-component transaction, it updates the underlying memory table. Otherwise, it creates a new instance of IlsSwRow through the collector constructor and sends the corresponding request to the server.

◆ isInS2CTransaction()

IlsBoolean IlsSwMemoryTable::isInS2CTransaction ( )
protected

Checks if we are in a server-to-component notification.

This protected member function is available when one of the functions insertRow(), updateRow() or deleteRow() is being called. This function returns IlsTrue if one of those methods has been called following a notification received by the server.