Search in sources :

Example 1 with ListOrderedMap

use of org.apache.commons.collections4.map.ListOrderedMap in project ofbiz-framework by apache.

the class TransactionUtil method popTransactionStartStamp.

/**
 * Remove the stamp from stack (when resuming)
 */
private static void popTransactionStartStamp() {
    ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get();
    if (map.size() > 0) {
        transactionStartStamp.set((Timestamp) map.remove(map.lastKey()));
    } else {
        Debug.logError("Error in transaction handling - no saved start stamp found - using NOW.", module);
        transactionStartStamp.set(UtilDateTime.nowTimestamp());
    }
}
Also used : ListOrderedMap(org.apache.commons.collections4.map.ListOrderedMap)

Aggregations

ListOrderedMap (org.apache.commons.collections4.map.ListOrderedMap)1