Database Transactions in Java on Android
<p>I am trying to translate some of the code of Objective C in Java...</p>

<pre><code>[_db beginTransaction];

    Date now = [[NSDate alloc] init];
    boolean result = [_db executeUpdate:updateQuery, [self stringToDB:account.userId],
                   [self integerToDB:account.accountId],
                   [self integerToDB:account.accountType],
                   [self stringToDB:account.accountName],
                ];

    [_db commit];
    return true;
</code></pre>

<p>Can anyone tell me how can i implement <code>BeginTransaction and Commit</code> in Java?</p>
