WRITE: this guarantees a WRITE will complete if commit() is
called. The same as begin(ReadWrite.WRITE).
READ: the transaction can not promote to WRITE,ensuring read-only
access to the data. The same as begin(ReadWrite.READ).
READ_PROMOTE: the transaction will go from "read" to "write" if the
dataset has not been modified but if it has, the promotion fails with
exception.
READ_COMMITTED_PROMOTE: Use this with care. The promotion will succeed but
changes from other transactions become visible.
Read committed: at the point transaction attempts promotion from "read" to
"write", the system checks if the dataset has changed since the transaction started
(called begin). If READ_PROMOTE, the dataset must not have
changed; if READ_COMMITTED_PROMOTE any intermediate changes are
visible but the application can not assume any data it has read in the
transaction is the same as it was at the point the transaction started.
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.