Transaction object
The Transaction object specifies the parameters that PowerBuilder
uses to connect to a database.
You can customize your own version of the Transaction object by
defining a class user object inherited from the built-in Transaction
object.
For more information about creating a custom Transaction object, see
the section called “Working with User Objects” in Users Guide.
For more information about using the Transaction object in an
application, see the section called “Using Transaction Objects” in Application Techniques.
Properties
|
Transaction property |
Datatype |
Description |
|---|---|---|
|
AutoCommit |
Boolean |
The automatic commit indicator. Values TRUE — Commit automatically after every FALSE — Do not commit |
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Database |
String |
The name of the database with which you are |
|
DBMS |
String |
PowerBuilder vendor identifier. |
|
DBParm |
String |
DBMS-specific parameters. |
|
DBPass |
String |
The password used to connect to the |
|
Lock |
String |
The isolation level. |
|
LogID |
String |
The name or ID of the user who logs in to the |
|
LogPass |
String |
The password used to log in to the |
|
ServerName |
String |
The name of the server on which the database |
|
SQLCode |
Long |
The success or failure code of the most recent Return codes: 0 — 100 — Not found -1 — Error |
|
SQLDBCode |
Long |
The database vendor’s error code. |
|
SQLErrText |
String |
The database vendor’s error message. |
|
SQLNRows |
Long |
The number of rows affected (the database vendor |
|
SQLReturnData |
String |
DBMS-specific information |
|
UserID |
String |
The name or ID of the user who will connect to the |
Events
|
Transaction event |
Occurs |
|---|---|
|
When the user object is created |
|
|
When an Oracle 10g server sends a notification that |
|
|
When a database error occurs in the |
|
|
When the user object is destroyed |
|
|
Occurs immediately before a SQL statement is |
Functions
|
Transaction function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the user |
|
|
Long |
Returns the handle for your DBMS |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Boolean |
Adds an event to the end of the message queue of |
|
|
String |
Generates DataWindow source code based on a SQL |
|
|
Integer |
Sends an event to the user object and executes the |
|
|
Object |
Returns the type of the user object |