Subject | What you think about this ! |
---|---|
Author | Alexandre Perestrelo |
Post date | 2003-02-21T19:48:44Z |
Side Note: IBObjects permits datasets to be defined with their
IB_Transaction property left as '<default>' - like the "Auto Query Grid" in
the demonstration. This causes each dataset to create its own internal
transaction (named as "tr" + dataset.name) with AutoCommit = true and
Isolation = tiCommitted. This capability can be useful when building "quick
and dirty" example applications but I would not recommend this approach for
real-world applications. It is generally much better to define explicit
transactions so that changes from more than one dataset can be managed
through a particular transaction operating as required for the particular
application. (You can prevent the use of '<default>' transactions by
setting TIB_SessionProps.AllowDefaultTransaction = false - which can be
useful in ensuring that you dont "forget" to explicity define a dataset's
transaction property.)
Alexandre Perestrelo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 18/2/2003
IB_Transaction property left as '<default>' - like the "Auto Query Grid" in
the demonstration. This causes each dataset to create its own internal
transaction (named as "tr" + dataset.name) with AutoCommit = true and
Isolation = tiCommitted. This capability can be useful when building "quick
and dirty" example applications but I would not recommend this approach for
real-world applications. It is generally much better to define explicit
transactions so that changes from more than one dataset can be managed
through a particular transaction operating as required for the particular
application. (You can prevent the use of '<default>' transactions by
setting TIB_SessionProps.AllowDefaultTransaction = false - which can be
useful in ensuring that you dont "forget" to explicity define a dataset's
transaction property.)
Alexandre Perestrelo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 18/2/2003