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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

428 Day 12<br />

■ The properties, events, and key methods of the TTable, TQuery, and TStoredProc<br />

components<br />

■ How to use the TBatchMove component to copy rows and create tables<br />

Some Terms You’ll Need to Know<br />

Throughout this chapter, I’ll refer to various elements of the <strong>C++</strong>Builder database architecture<br />

by name when describ<strong>in</strong>g them or how they <strong>in</strong>ter-operate with other elements. So, before<br />

we beg<strong>in</strong>, I need to def<strong>in</strong>e some terms so that you’ll understand what I’m say<strong>in</strong>g as we go.<br />

Some of these are <strong>C++</strong>Builder terms; some are database terms. These may or may not be terms<br />

with which you’re already familiar. Table 12.1 summarizes today’s key terms.<br />

Table 12.1. Common <strong>C++</strong>Builder database access terms.<br />

Term Description<br />

Table A collection of rows (or entities) <strong>in</strong> a database. For example, you<br />

might construct an INVOICE table to store <strong>in</strong>voice entities or rows.<br />

Row A record or an entity <strong>in</strong> a table. For example, a CUSTOMER table<br />

would conta<strong>in</strong> rows of customer data. Each row would conta<strong>in</strong><br />

<strong>in</strong>formation for a different customer.<br />

Column A field or an attribute that’s conta<strong>in</strong>ed <strong>in</strong> the rows of a table.<br />

For example, your INVOICE table might conta<strong>in</strong> a<br />

CustomerNumber column. The CustomerNumber column would be<br />

present <strong>in</strong> every row <strong>in</strong> the table.<br />

<strong>Borland</strong> Database The set of DLLs and support files that allows <strong>C++</strong>Builder (and<br />

Eng<strong>in</strong>e other <strong>Borland</strong> products) to access databases. The <strong>Borland</strong><br />

Database Eng<strong>in</strong>e (BDE) saves much of the work normally<br />

associated with build<strong>in</strong>g full-featured database applications by<br />

provid<strong>in</strong>g a high-level database API that is consistent across all<br />

the DBMS platforms it supports. This developer-friendly<br />

<strong>in</strong>terface is provided <strong>in</strong> <strong>C++</strong>Builder’s database controls so that<br />

you rarely have to work directly with the BDE itself.<br />

IDAPI <strong>Borland</strong>’s Independent Database Application Programm<strong>in</strong>g<br />

Interface. It’s the <strong>in</strong>terface whereby applications (<strong>in</strong>clud<strong>in</strong>g<br />

<strong>C++</strong>Builder apps) talk to the BDE. Because nearly all necessary<br />

IDAPI calls are made for you by <strong>C++</strong>Builder’s database components,<br />

you’ll rarely write code that directly references IDAPI.<br />

Instead, you’ll <strong>in</strong>teract with the methods, properties, and events<br />

of <strong>C++</strong>Builder’s database components, which, <strong>in</strong> turn, make the<br />

necessary IDAPI calls.

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

Saved successfully!

Ooh no, something went wrong!