IlsSwMemoryTable
 
IlsSwMemoryTable
Category 
Dynamic view-related class (Server/Views integration)
Inheritance Path 
IliMemoryTable
IlsSwMemoryTable
Description 
This class derives from the Rogue Wave Views class IliMemoryTable and redefines some of the member functions related to the rows. 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.
Library 
<mvsw>
Header File 
#include <ilmvsw/memtable.h>
Synopsis 
class IlsSwMemoryTable : public IliMemoryTable
{
public:
IlsSwMemoryTable(IlvDisplay*);
IlsSwMemoryTable(const IlsSwMemoryTable&);
IlsSwMemoryTable(IlvDisplay*, istream&);
 
virtual ~IlsSwMemoryTable();
 
IlsSwTable* getTable();
virtual IlvBoolean updateRow(IlvInt rowNumber,
IliTableBuffer*);
virtual IlvBoolean insertRow(IlvInt rowNumber,
IliTableBuffer*);
virtual IlvBoolean deleteRow(IlvInt rowNumber);
IlvInt getInFormIndex(IlsSvInt svIndex) const;
IlsSvInt getServerIndex(IlvInt colNumber) const;
protected:
IlsBoolean isInC2STransaction();
};
Constructors 
IlsSwMemoryTable(IlvDisplay*);
IlsSwMemoryTable(const IlsSwMemoryTable&);
IlsSwMemoryTable(IlvDisplay*, istream&);
These constructors are inherited from the Rogue Wave Views class IliMemoryTable.
Destructor 
virtual ~IlsSwMemoryTable();
This is the public virtual destructor for this class.
Member Functions 
IlsSwTable* getTable();
This member function 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.
[virtual] IlvBoolean updateRow(IlvInt rowNumber,IliTableBuffer*);
This virtual member function sends a request to the server, updating all modified values in the supplied IliTableBuffer object.
[virtual] IlvBoolean insertRow(IlvInt rowNumber,IliTableBuffer*);
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.
[virtual] IlvBoolean deleteRow(IlvInt rowNumber);
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.
IlvInt getInFormIndex(IlsSvInt svIndex) const;
This member function returns the column number of the corresponding server index.
IlsSvInt getServerIndex(IlvInt colNumber) const;
This member function returns the server index that corresponds to the column number colNumber in the table.
IlsBoolean isInC2STransaction();
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.
See Also 
IlsSwMemoryTableFactory, IlsSwRow

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.