Contents Index Working with the C++ API classes Using table and query classes pdf/preface.pdf

UltraLite User's Guide
  Developing C++ API Applications
    Working with the C++ API classes

Working with the ULData and ULConnection objects


The ULData object makes the data in the database object available to your application. You need to call ULData::Open() before you can connect to the UltraLite database or carry out any operations on the data.

The ULData::Open() method can be called with parameters that define the storage and access parameters for the database (file name, cache size, reserved size).

Once the ULData object is opened, you can open a connection on the database. You do that using the ULConnection::Open() method, supplying a reference to the ULData object and a set of connection parameters to establish the connection. You can use multiple connections on a single database. Once the connection is established, you can open the generated ULStatement, ULResultSet or ULTable objects that define the tables or statements used in your application, and use these objects to manipulate the data.

The ULConnection object defines the general characteristics of how you interact with the data.

Synchronization is carried out using the ULConnection object. The Synchronize method carries out synchronization of the data with a MobiLink server.

Palm Computing Platform developers 

If you are developing an application for the Palm Computing Platform, there are some extra considerations for how to use these objects. In particular, the PalmLaunch and PalmExit methods are called when launching and leaving the application. The ULData::Close() method is not called on the Palm Computing Platform.

For more information, see Developing Applications for the Palm Computing Platform.


Contents Index Working with the C++ API classes Using table and query classes pdf/preface.pdf