Apollo - VCL Components
Included with Apollo Embedded
Overview
The Apollo Embedded VCL components are native data-aware Delphi components for building 32-bit and 64-bit Windows applications using Delphi and C++Builder.
Key Features
- Create Win32 and Win64 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
- Apollo DBF Utility for visually managing DBF data files
- Apollo Query Tool for running interactive SQL commands on DBF data
- Royalty free unlimited distribution
Supported Embarcadero, Borland and CodeGear IDEs
- RAD Studio 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005 - Delphi 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005, 7, 6, 5 - C++Builder 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005, 7, 6, 5
Supported Languages
- Delphi/Object Pascal
- C++Builder/C++
Supported Platforms
- Win32
- Win64
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.
Speedmode (Direct Data Access™)
- TApolloTable.Speedmode
property tells TApolloTable to bypass TDataSource (i.e. disable data-aware compatibility) and provide high speed direct data access. Speedmode provides on average a 50% to 100% faster performance boost which is ideal for non-visual data processing.
Using & Sample Code
Applies to:
- RAD Studio 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005 - Delphi 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005, 7, 6, 5 - C++Builder 11 Alexandria, 10.3 Rio, 10.2 Tokyo, 10.1 Berlin, 10 Seattle,
XE8, XE7, XE6, XE5, XE4, XE3, XE2, XE,
2010, 2009, 2007, 2006, 2005, 7, 6, 5
Installing Apollo into Delphi
Installation
This explains how to install Apollo into the supported IDEs. Apollo provides native components that integrate directly into popular development IDE's such as Embarcadero/CodeGear/Borland Developer Studio and Visual Studio.
Windows 64-bit:
If you want to use the 64-bit version of Apollo:
Substitute: C:\Apollo\[majorversion.minorversion]\x86
with: C:\Apollo\[majorversion.minorversion]\x64
- RAD Studio, Delphi/C++Builder (VCL Components)
- Visual Studio (ADO.NET Data Provider)
- Deploying Apollo to a Web Server (IIS)
Borland/Embarcadero/CodeGear Delphi/C++Builder (VCL Components)
Installing Apollo into Delphi and C++Builder:
[Borland IDE] = one of the following:
- D11-Delphi 11, D10=Delphi 10, DXE8=Delphi XE8, DXE7=Delphi XE7, DXE6=Delphi XE6, DXE5=Delphi XE5, DXE4=Delphi XE4, DXE3=Delphi XE3, DXE2=Delphi XE2, DXE=Delphi XE
- CB11-Delphi 11, CB10=C++Builder 10, CBXE8=C++Builder XE8, CBXE7=C++Builder XE7, CBXE6=C++Builder XE6, CBXE5=C++Builder XE5, CBXE4=C++Builder XE4, CBXE3=C++Builder XE3, CBXE2=C++Builder XE2, XE=C++Builder XE
- Run the Borland IDE (e.g. Delphi 11 = D11)
- File -> Open and browse to the corresponding Borland IDE sub-directory under
C:\Apollo\[majorversion.minorversion]\x86\VCL\[Borland IDE] - Open the 2 package files: Apollo9D11.dpk and Apollo9D11d.dpk
(Note: "d" = design-time package). - Compile Apollo9D10.dpk
- Compile Apollo9D10d.dpk
- Install Apollo9D10d.dpk (right click, Install)
- The Embarcadero/CodeGear IDE will have added the Apollo components to the Toolbar Palette under the "Apollo" tab
- Need to add Apollo to the Library Path here:
- Delphi 11.x: Tools -> Language -> Delphi -> Library -> edit Library Path ...
- Delphi 10.x: Tools -> Options -> Environment Options -> Delphi Options -> Library -> edit Library Path ...
- Add "C:\Apollo\[majorversion.minorversion]\x86\VCL\D11" (or "C:\Apollo\[majorversion.minorversion]\x64\VCL\D10") to your Library Path
Creating your first VCL application
- Run Delphi (any of the IDEs listed above)
- Create a new VCL Windows Application
- Click the Apollo tab on the Toolbar
-
Drop a ApolloDatabase component onto your form and press F11
- DataPath = C:\Apollo\[majorversion.minorversion]\x86\Data
- DataPathAlias = apollotest
-
Drop a ApolloTable component onto your form and press F11
(Object Inspector)
- DatabaseName = apollotest
- TableName = TEST.DBF
- Active = True
-
Drop the standard DataSource component onto your form and press F11
- DataSet = ApolloTable1
-
Drop the standard DBGrid component onto your form and press F11
- DataSource = DataSource1
-
Drop a DBNavigator component onto your form and press F11
- DataSource = DataSource1
- 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 and TApolloQuery.
Delphi sample using Apollo VCL components
procedure
TryApollo;
var
ApolloDatabase1:
TApolloDatabase;
ApolloQuery1:
TApolloQuery;
fname,lname:
string;
age: integer;
begin
// Use the TApolloQuery object
// Create a connection object to a Apollo
database
ApolloDatabase1 :=
TApolloDatabase.Create('C:\MyData\MyDB.DBF');
ApolloDatabase1.Open;
// Create a query object and open the
SQL
ApolloQuery1 :=
TApolloQuery(ApolloDatabase1);
ApolloQuery1.SQL := 'SELECT * FROM
Person WHERE State = CA';
ApolloQuery1.Open;
// Traverse all the records
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
Components
Apollo is an EXCELLENT product which I use for EVERY application I write which requires a database, and nowadays that means all of them.
Apollo just got Hardcore!
I love your products. Applications I developed with Apollo over the last decade have aced the test of time, with heavy daily use. I purchased the upgrade today.
Congratulations on winning Best Database Engine Award!