<< Return to Main Index

< Return to Class Index

CGXDBEngine Class Members

Data Fetch

FetchRecords Allows you to fetch records incrementally.
GetValue Get the underlying value at nRow, nCol. If in edit mode returns the modfiied value.
GetRecordCount Get the known record count so far.
GetFieldCount Get the no. of fields in the result set.

Editing and Updating

Edit Set edit mode and allow editing a specific record.
SetValue Set the value of a specific field in the record in edit mode.
Update Store the changes made in the current record or add a new record to the data source.
AddRow Set addNew mode and allow editing the newly added record.
DeleteRows Delete rows nFrom to nTo
CancelRecord Cancel the edit or addNew mode and discard the changes made so far.
Requery Reinitialize the engine with the current parameters.
BeginTrans Begin a transaction.
CommitTrans Commit an open transaction.
Rollback Rollback an open transaction.
OnDeletedRecords Notification called when records are deleted.

State Info

CanUpdate Is the result set updateable?
CanAppend Can a new row be appended to the result set?
IsEOFSeen Has all the records been fetched so far?
IsInit Has the engine been initialized properly?

Hierarchical Data

GetChildAt Get the child at the specified record.
AreChildrenAvailable Check if hierarchical data is available.

Cleanup

CleanUp Called by the destructor to clean up member variables.

Attributes

m_nIncrement The increment by which the engine should fetch each time. Default is 512.
m_nEditMode Gives you the current edit mode.
m_nEditRecord Currently being edited record.

CGXDBEngine

Class Overview