TIB_Database Object
Properties Methods Events |
Unit
IB_Components
Declaration
TIB_Database = class(TIB_Connection)
Description
This component is intended for BDE/VCL compatibility only. It is a
TIB_Connection descendant that is outfitted with its own internally contained
TIB_TransactionDefault component. This welds the two together such that there
is only one transaction for the connection.
Any statement or dataset that attaches to this via. the IB_Connection
property will automatically have their IB_Transaction propety assigned to the
internally contained IB_TransactionSingle instance.
Thus, all transaction control is bound at the connection level instead of
taking advantage of InterBase's capability of having multiple transactions
per connection.
This could lend some simplicity to your application if you do not want to
have to worry about making sure each dataset has its IB_Transaction property
properly assigned.
If an IB_Transaction property is left blank and its
IB_Connection property is not a TIB_Database class then the statement,
dataset, etc. will create its own internal transaction. This could cause an
undesirable effect of having different statements and datasets being kept
within different transaction contexts.
It is extra work to use the IB_Connection and IB_Transaction components
separately but the flexibility and functionality it gives to your application
makes it worth it to avoid using the TIB_Database class.
Introduced Public Properties |
AutoCommit | See the help for TIB_Transaction. |
CachedUpdatePendingCount | See the help for TIB_Transaction. |
DefaultTransaction | Make it so that there are no errors when the form is loading. |
IB_Transaction | This property gives a reference to the internal transaction of this component. |
InTransaction | See the help for TIB_Transaction. |
Isolation | See the help for TIB_Transaction. |
LockWait | See the help for TIB_Transaction. |
PostPendingCount | See the help for TIB_Transaction. |
PtrHandle | See the help for TIB_Transaction. |
ReadOnly | See the help for TIB_Transaction. |
RecVersion | See the help for TIB_Transaction. |
TimeoutProps | See the help for TIB_Transaction. |
TransactionIsActive | See the help for TIB_Transaction. |
TransactionState | See the help for TIB_Transaction. |
Introduced Public Methods |
Activate | See the help for TIB_Transaction. |
ApplyUpdates | See the help for TIB_Transaction. |
CancelAll | See the help for TIB_Transaction. |
CancelUpdates | See the help for TIB_Transaction. |
CloseWithConfirm | See the help for TIB_Transaction. |
Commit | See the help for TIB_Transaction. |
CommitRetaining | See the help for TIB_Transaction. |
Create | |
EndWithConfirm | See the help for TIB_Transaction. |
PostAll | See the help for TIB_Transaction. |
Refresh | See the help for TIB_Transaction. |
Rollback | See the help for TIB_Transaction. |
RollbackRetaining | See the help for TIB_Transaction. |
SavePoint | See the help for TIB_Transaction. |
SetFocus | |
StartTransaction | See the help for TIB_Transaction. |
UpdateStatus | See the help for TIB_Transaction. |
Introduced Public Events |
AfterCommit | See the help for TIB_Transaction. |
AfterCommitRetaining | See the help for TIB_Transaction. |
AfterEnd | See the help for TIB_Transaction. |
AfterRollback | See the help for TIB_Transaction. |
AfterRollbackRetaining | See the help for TIB_Transaction. |
AfterStart | See the help for TIB_Transaction. |
BeforeCommit | See the help for TIB_Transaction. |
BeforeCommitRetaining | See the help for TIB_Transaction. |
BeforeEnd | See the help for TIB_Transaction. |
BeforeRollback | See the help for TIB_Transaction. |
BeforeRollbackRetaining | See the help for TIB_Transaction. |
BeforeStart | See the help for TIB_Transaction. |
OnSessionTimer | See the help for TIB_Transaction. |