h2/src/main/org/h2/mvstore/db/TransactionStore.java
/**
     * Begin a new transaction.
     *
     * @return the transaction
     */
Begin a new transaction.
@return the transaction
Begin a new transaction . @return the transaction
public synchronized Transaction begin() {
        int transactionId = ++lastTransactionId;
        if (lastTransactionId >= maxTransactionId) {
            lastTransactionId = 0;
        }
        int status = Transaction.STATUS_OPEN;
        return new Transaction(this, transactionId, status, null, 0);
    }
public synchronized Transaction begin ( ) { int transactionId = ++ lastTransactionId ; if ( lastTransactionId >= maxTransactionId ) { lastTransactionId = 0 ; } int status = Transaction . STATUS_OPEN ; return new Transaction ( this , transactionId , status , null , 0 ) ; }
Begin a new transaction.
Begin a new transaction .