atg.commerce.order.purchase
Class PurchaseProcessConfiguration

This class is designed to be configured as a session scoped component
which stores configuration parameters for the family of
PurchaseProcessFormHandler subclasses.
Each form handler can be configured directly, however there are a large
number of configuration properties to be set. In addition to the convenience
of centralizing common properties in a single location, there is also
a slight performance benefit. Since, typically, any form
handler is request scoped this causes some overhead on every single request.
In using this component all the configuration parameters are configured
once per session, and then the form handler only has to resolve one
component.

setUseLocksAroundTransactions

Specify whether to use a local lock manager to obtain a lock
before starting transactions in beforeSet and to release the
lock after committing transacations in afterSet.

If this property is set to true, locking will be used to prevent one
user from trying to modify orders in multiple concurrent threads.
This has a small performance impact as we obtain and release the lock,
but minimizes the possibility of concurrent update exceptions if
two threads try to modify the same order for the same user.
The default value for useLocksAroundTransactions is true.

isUseLocksAroundTransactions

public boolean isUseLocksAroundTransactions()

Deprecated.Use the TransactionLockFactory instead

Inquire whether to use a local lock manager to obtain a lock
before starting transactions in beforeSet, and to release the
lock after committing transactions in afterSet.

isUseLocksAroundTransactionExplicitlySet

public boolean isUseLocksAroundTransactionExplicitlySet()

This will return true if the value of useLocksAroundTransaction has been
explicitly set either through code or through a properties file.