Apollo 7 - VCL Components
Included with Apollo 7
Overview
The Apollo native VCL components are native Delphi
components for building Win32 applications using Delphi and C++Builder.
Key Features
- Create Win32 applications using Delphi and C++Builder
(Borland, Embarcadero, CodeGear)
- Create, update and manage CA-Clipper and FoxPro
DBF/Xbase database files from code
- BDE not required
- Over 30x smaller than the BDE (500KB vs 20MB)
- Includes Delphi VCL source code to components
- Compatible with VCL data aware components including
TDataset and 3rd party components
- Samples with full source code
- Easily scalable from embedded to client/server
configuration with little code changes
- Royalty free unlimited distribution
Supported Borland, Embarcadero and CodeGear IDEs
- Delphi & C++Builder 2010
- Delphi & C++Builder 2009
- Delphi & C++Builder 2007
- Delphi & C++Builder 2006
- Delphi 2005
- Delphi 7
- Delphi 6
- Delphi 5
- C++Builder 6
- C++Builder 5
Supported Languages
- Delphi/Object Pascal
- C++Builder
Supported Platforms
Borland BDE Replacement
The BDE is an awkward collection of database
technologies that performs various unrelated functions including third party
database connectivity and native database management of legacy dBASE and
Paradox database files. This collection of unrelated functionality adds
needless overhead to your applications and is the source of many configuration,
deployment and BDE versioning issues -- all of which can be avoided by
replacing the BDE with Apollo. Among other reasons to avoid developing
applications that use the BDE is the fact that Borland has deprecated the BDE
and has not issued updates to the BDE since 1999. In summary, there is no
future in using the BDE.
TDataset Compatible
Apollo VCL components are fully compatible with
Borland's TDataset architecture, which means Apollo is fully compatible with
all data aware components including TDBGrid, TDBEdit etc. Apollo is also
compatible with all popular third party products such as InfoPower, RAVE,
DevExpress, and more.
Components
TDataSet Components
- TApolloDatabase
Works like TDatabase.
Connects to a DBF/Xbase database file and allows you to manage database level
settings such as encryption.
- TApolloTable
Works much like TTable.
Connects to DBF/Xbase tables allowing you to add, delete, update, filter and
find data, along with other table related operations. TVDBTable works with
TDatasource and is fully compatible with data aware components.
- TApolloQuery
Works much like TQuery. Runs
SQL-92 queries and commands to manage database files. The Query object supports
all the common SQL statements such as SELECT, INSERT, UPDATE, DELETE and more.
TApolloQuery works with TDatasource and is fully compatible with data aware
components.
Direct Data Access Objects
- TApolloAPI
Unique to Apollo. It works much
like TApolloTable to provide direct data access to Apollo tables without the
TDataSource compatibility overhead required by TApolloTable or TTable.
TApolloAPI provides high speed direct table access that is on average 50% to
100% faster than TApolloTable.
Using & Sample Code
Applies to Delphi 2010, 2009, 2007, 2006, 2005, 7, 6,
5 and C++Builder 2010, 2009, 2007, 2006, 6, 5
Installing Apollo into Delphi
- Run the Borland IDE (e.g. Delphi 2010)
- File | Open and browse to the corresponding Borland
IDE sub-directory under
C:\Program Files\Apollo7\VCL\[Borland IDE] where
[Borland IDE] is one of the following:
- D2010=Delphi 2010, D2009=Delphi 2009,
D2007=Delphi 2007, D2006=Delphi 2006,
D2005=Delphi 2005, D7=Delphi 7,
D6=Delphi 6, D5=Delphi 5
- CB2010=C++Builder 2010, CB2009=C++Builder 2009,
CB2007=C++Builder 2007,
CB2006=C++Builder 2006, CB6=C++Builder 6,
CB5=C++Builder 5
- Open the 2 package files: Apollo7D2010.dpk and
Apollo7D2010d.dpk
(Note: The extra "d" in the name is the design-time
package).
- From the Project Manager, right-click on the
Apollo7D2010.DPK package
(Skip this step for Delphi 7, 6, 5 and for
C++Builder 6,5)
- Compile Apollo7D2010.dpk
- From the Project Manager, right-click on the
Apollo7D2010d.DPK package
(Skip this step for Delphi 7, 6, 5 and for
C++Builder 6,5)
- Compile and install Apollo7D2010d.dpk
- The Borland/Embarcadero/CodeGear IDE will now have
installed the Apollo components in the Toolbar Palette under the "Apollo" tab
- Tools -> Environment Options -> Library, add
"C:\Program Files\Apollo7\VCL\D2010" to the Library Path
Creating your first VCL application
- Run Delphi 2010 (or any of the Borland IDEs listed
above)
- Create a new VCL Windows Application
- Click on the Apollo tab on the Toolbar
- Drop a ApolloTable component onto your form and
press F11 (Object Inspector)
- Directory = C:\Program Files\Aopllo7\Data
- DatabaseName = Test.dbf
- Active = True
- Drop a DataSource component onto your form and
press F11
- Drop a DBGrid component onto your form and press
F11
- Drop a DBNavigator component onto your form and
press F11
- Run.
Apollo's VCL components are fully Borland TDataSet
compatible, which mean they are fully compatible with Borland's and third party
data aware controls. The VCL provides high-speed access into a Apollo database.
The Apollo VCL components include TApolloDatabase, TApolloTable, TApolloQuery
and TApolloDirect.
Delphi sample using Apollo VCL components
procedure
TryApollo; var ApolloDatabase1:
TApolloDatabase; ApolloQuery1:
TApolloQuery; fname,lname:
string; age: integer; begin
ApolloDatabase1 :=
TApolloDatabase.Create('C:\MyData\MyDB.DBF'); ApolloDatabase1.Open;
ApolloQuery1 :=
TApolloQuery(ApolloDatabase1); ApolloQuery1.SQL := 'SELECT * FROM
Person WHERE State = CA'; ApolloQuery1.Open;
while not
ApolloQuery1.EOF do begin fname =
ApolloQuery1.FieldByName('FirstName').AsString; lname =
ApolloQuery1.FieldByName('LastName').AsString; age =
ApolloQuery1.FieldByName('Age').AsInteger; WriteToScreen(
fname, lname,
age); ApolloQuery1.Next; end; ApolloQuery1.Close; ApolloDatabase1.Close;
end;
Architecture Diagrams
Single User - Local Access |
 |
| |
Single User - File Share or LAN Data
Access |
 |
| |
Multiple Users - File Share or LAN Data
Access |
 |
| |
Multiple Users - Client/Server Access |
 |
| |
Multiple Users - Client/Server Access with Apollo
Relay Server |
 |
|