What is the resulting outcome when the statements below are executed without a transaction?
repositoryItem.setPropertyValue(“name”, “John”);
repositoryItem.setPropertyValue(“lastName”, “Doe”)
A.
For each setProperty value, ATG begins a JTA transaction, calls setPropertyValue, and
commits the JTA transaction. At this point, SQL is issued and the changes are committed.
B.
Before the 1st setPropertyValue is executed, a JTA transaction begins. After the 2nd
setProperty Value is called, ATG commits the JTA transaction. At this point, SQL is issued and the
changes are committed.
C.
ATG throws an error as multiple setPropertyValue have to be executed withina transaction.
D.
Before the 1st setPropertyValue is executed, a JTA transaction begins. The SQL is issued
when you call updateItem.
E.
All setPropertyValue method calls must be wrappedina JTA Transaction.
Explanation: