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 chapter on user objects in the PowerBuilder
Users Guide.
For more information about using the Transaction
object in an application, see Application Techniques.
Properties
Transaction property |
Datatype |
Description |
---|---|---|
AutoCommit |
Boolean |
The automatic commit indicator. Values
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Database |
String |
The name of the database with which you |
DBMS |
String |
PowerBuilder vendor identifier. |
DBParm |
String |
DBMS-specific parameters. |
DBPass |
String |
The password used to connect to the database. |
Lock |
String |
The isolation level. |
LogID |
String |
The name or ID of the user who logs in |
LogPass |
String |
The password used to log in to the server. |
ServerName |
String |
The name of the server on which the database |
SQLCode |
Long |
The success or failure code of the most Return codes:
|
SQLDBCode |
Long |
The database vendor’s error |
SQLErrText |
String |
The database vendor’s error |
SQLNRows |
Long |
The number of rows affected (the database |
SQLReturnData |
String |
DBMS-specific information |
UserID |
String |
The name or ID of the user who will connect |
Events
Transaction event |
Occurs |
---|---|
When the user object is created |
|
When an Oracle 10g server |
|
When a database error occurs in the transaction |
|
When the user object is destroyed |
|
Occurs immediately before a SQL statement is submitted to the |
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 |
|
PowerObject |
Returns a reference to the name of the |
|
Boolean |
Adds an event to the end of the message |
|
String |
Generates DataWindow source code based |
|
Integer |
Sends an event to the user object and |
|
Object |
Returns the type of the user object |