12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C++</strong>Builder Database Architecture<br />

Property Description<br />

UpdateMode Determ<strong>in</strong>es the type of SQL used to perform data changes.<br />

UpdateObject Specifies the UpdateSQL component to use <strong>in</strong> conjunction with<br />

cached updates.<br />

Table 12.12. TQuery key methods.<br />

Method Function<br />

Append Appends a blank row to the TDataset.<br />

AppendRecord Appends a row to the TDataset us<strong>in</strong>g specified values.<br />

ApplyUpdates Saves cached updates to the database.<br />

Cancel Discards pend<strong>in</strong>g modifications to the current row.<br />

CancelUpdates Discards cached updates that are pend<strong>in</strong>g.<br />

ClearFields Sets the current row’s fields to their default values.<br />

Close Closes the TDataset.<br />

Delete Deletes the current record.<br />

Edit Puts the TDataset <strong>in</strong> edit mode.<br />

ExecSQL Executes the SQL without return<strong>in</strong>g a cursor.<br />

FetchAll Reads all pend<strong>in</strong>g rows from a database server connection.<br />

FieldByName Returns a TField us<strong>in</strong>g its database field name.<br />

F<strong>in</strong>dKey Performs an exact search on the TDataset.<br />

GetFieldNames Returns a list of the fields <strong>in</strong> the TDataset.<br />

Insert Inserts a blank row and allows it to be edited.<br />

InsertRecord Inserts a row us<strong>in</strong>g supplied column values.<br />

Locate F<strong>in</strong>ds a record <strong>in</strong> a TDataset.<br />

Lookup F<strong>in</strong>ds a record <strong>in</strong> a TDataset and returns values from it.<br />

MoveBy Moves the TDataset cursor by a given number of rows.<br />

Open Opens the TDataset.<br />

ParamByName Returns a query parameter us<strong>in</strong>g its name.<br />

Post Saves pend<strong>in</strong>g modifications to the current row.<br />

RevertRecord Discards changes to the current record when us<strong>in</strong>g cached updates.<br />

453<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!