|
The Pervasive Data Access Components (PDAC) is a set of Visual Component Library (VCL) components that allow direct access to Pervasive Database Engines from within the Borland Delphi and C++ Builder Environments. These components offer a complete replacement for the Borland Database Engine (BDE), while providing the complete functionality of the BDE. PDAC dramatically extends the database development options available to Delphi and C++ Builder developers.
The Pervasive Data Access Components are provided in versions fully integrated with the following development environments:
Compatibility with later versions of the Delphi and C++ Builder development tools will be made available after those products are released by Borland.
No support is provided or planned for the following:
All versions of PDAC contain the non-visual components TPvSession, TPvDatabase, TPvTable, TPvBatchMove, TPvQuery, TPvStoredProc, TPvUpdateSQL, and TPvSqlDatabase with supporting classes for these components. These 32-bit components duplicate the properties, methods, and binding capabilities of the Borland Data Access components, but without requiring the presence of the Borland Database Engine (BDE) at run time. These components are provided in "package" format, and offer all the design time and run time functionality of the built-in controls. They will bind to the Borland Data Aware controls in the same way as the BDE components, as well as to fully compatible third-party bound controls. Special components (wwPvTable, wwPvQuery, wwPwStoredProc) are provided for interoperability with the Woll2Woll InfoPower components. TPvTable, TPvDatabase, TPvBatchMove, and TPvSession make up the "Btrieve subset" of the full PDAC set; these components use no relational functionality, and do not require the Pervasive.SQL Relational Engine or ODBC at runtime. TPvQuery, TPvStoredProc, TPvUpdateSQL, and TPvSqlDatabase components use Pervasive.SQL's underlying relational functionality.
Note
Since the Pervasive components duplicate the Borland properties and methods, refer to your Borland documentation for reference material on specific properties and methods.
The components included and the Borland components they clone:
The following table shows the functionality of these components
The components can be used standalone (that is, without the Borland Database Engine installed) or coincident with the Borland Database Engine (BDE) within a single application. Use of the components is the same as the corresponding BDE components, with exceptions noted in PDAC Classes, Properties, Events, and Methods in Chapter 2, Direct Access Components Reference.
This release includes the following updates:
A new Boolean property "BookmarksEnabled" was added to TPvQuery. If you do not use Bookmarks in your application, set this property to False in order to increase TPvQuery performance. The default value is True.
If you are connecting to a secured database, PDAC prompts you for the user name and password. If you do not want the user to be prompted for the user name and password, you can set up the connection parameters in TPvDatabase and TPvSQLDatabase.
For example:
PvSession.ServerName:='ServerName'; PvSession.SessionName:='session1'; PvSession.Active:=True; PvDatabase.AliasName:= 'DatabaseName'; PvDatabase.DatabaseName:='DB'; PvDatabase.SessionName:='session1'; PvDatabase.Params.Clear(); // here you specify user name and password to // connect to remote database. PvDatabase.Params.Add('User Name=UserName'); PvDatabase.Params.Add('password=Password'); PvDatabase.Connected:=True; PvTable.DatabaseName:='DB'; PvTable.SessionName:='session1'; PvTable.TableName:='person'; PvTable.Active:=True;
This release incorporates a number of fixes for reported issues, and introduces new functionality with regards to cursors.
Other than the issues discussed in this section, PDAC should operate as it did in prior releases. However, it will exhibit faster relational performance. If you have existing PDAC applications that have issues with this new release, please contact Pervasive Software with this information.
This release now supports the following:
There are no functional changes to these components, but there are several issues resolved.
TPvQuery has a new property CursorType. This property can be set to ctCached or ctDynamic. The following table describes the behavior of this property in more detail:
Note
Dynamic cursors can see the Inserts/Updates/Deletes of their own or other clients.
You can change CursorType on a PvQuery by changing the Property, but only (at runtime) if Active is False. If you change it in Design mode, and the query is Active, it will de-activate the query and change the cursortype (but not reactivate). At Runtime, changing CursorType on an Active PvQuery will throw an exception ("Cannot perform this operation on an open dataset").
If you request a Dynamic cursor (ctDynamic), but your SQL statement contains a construct that a Dynamic cursor cannot process, the engine will connect and return data, but with a Static cursor. For example, such a construct could be:
In the event the cursor is transformed into a static one, this static cursor will be engine-based one that cannot see inserts, updates, or deletes made by other clients. It will perform better than the static cursors on previous releases (that is, ones using ctCached as the cursor type.).
When the dynamic to static transformation occurs, the Pervasive.SQL engine notifies the PDAC component, and sets a read-only Public Property named EngineCursor.
This EngineCursor property is not published, so it is not visible in the Object Inspector during design. It can have two values:
You cannot modify this property, but you can check its value after opening a query. You might want to check this property for example if it is important that your application know whether your cursor includes updates made by other clients.
When opening a query or table, PDAC now checks for an adequate Pervasive.SQL engine version to ensure that engine dependency-related errors do not occur. If the engine version is not sufficient, an exception is thrown with a message indicating the required version.
Two new properties were added with Pervasive.SQL 2000i. See Specific Class Differences from VCL for more information.
Allows SQL text to be sent directly to the engine instead of being preparsed.
This property indicates that the database contains characters encoded according to the OEM (DOS) code page, and that these characters should be converted to the ANSI (Windows) code page before use.
|
Chapter contents
Prev topic: Using Direct Access Components
|