Location:
d32dbms.h
Link against: edbms.lib
RDbTable
Supported from 5.0
Provides access to table data as a rowset, allowing manipulation of a named table in the database. Additionally, a named index can be used to order the rowset, and to provide fast key-based row retrieval from the table.
There are no special rules to consider when deriving from this class.
|
Defined in RDbTable
:
EEqualTo
, EGreaterEqual
, EGreaterThan
, ELessEqual
, ELessThan
, Open()
, SeekL()
, SetIndex()
, SetNoIndex()
, TComparison
Inherited from RDbRowSet
:
AtBeginning()
,
AtEnd()
,
AtRow()
,
BeginningL()
,
Bookmark()
,
Cancel()
,
Close()
,
ColCount()
,
ColDef()
,
ColDes()
,
ColDes16()
,
ColDes8()
,
ColInt()
,
ColInt16()
,
ColInt32()
,
ColInt64()
,
ColInt8()
,
ColLength()
,
ColReal()
,
ColReal32()
,
ColReal64()
,
ColSetL()
,
ColSize()
,
ColTime()
,
ColType()
,
ColUint()
,
ColUint16()
,
ColUint32()
,
ColUint8()
,
CountL()
,
DeleteL()
,
EBackwards
,
EBeginning
,
EEnd
,
EEnsure
,
EFirst
,
EForwards
,
EInsertOnly
,
ELast
,
ENext
,
EPrevious
,
EQuick
,
EReadOnly
,
EUpdatable
,
EndL()
,
FindL()
,
FirstL()
,
GetL()
,
GotoL()
,
InsertCopyL()
,
InsertL()
,
IsColNull()
,
IsEmptyL()
,
LastL()
,
MatchL()
,
NextL()
,
PreviousL()
,
PutL()
,
Reset()
,
SetColL()
,
SetColNullL()
,
TAccess
,
TAccuracy
,
TDirection
,
TPosition
,
UpdateL()
TInt Open(RDbDatabase& aDatabase,const TDesC& aName,TAccess anAccess=EUpdatable);
Opens the named table object on a database with the specified access.
If successful, the rowset is positioned to the beginning.
|
|
TInt SetIndex(const TDesC& anIndex);
Sets the specified index as the active index for this table. The
rows will be presented in index order, and this index key will be used for
lookup by the SeekL()
function.
If successful, the rowset is reset to the beginning.
|
|
TInt SetNoIndex();
Sets the ordering to be the underlying ordering of the rows — this will usually provide faster navigation of the rowset.
|
TBool SeekL(const TDbSeekKey& aKey,TComparison aComparison=EEqualTo);
Finds a row in a table based on a key in the active index.
This function cannot be called while the rowset is currently updating or inserting a row. The currently active index on the table must have a key definition which matches the types in the key value.
Less columns can be added to the key than are present in the index definition: the keys will only be compared up to the columns present — further columns in the index are not considered.
If successful the cursor is positioned to the row which was found, otherwise the cursor is left on an invalid row.
The underlying Store database can leave with KErrWrite
,
if the table was created with insert-only access.
The function can also leave with one of the DBMS database error codes.
|
|
TComparison
Database table seek comparison types.
|