List of usage examples for org.apache.commons.collections.map ListOrderedMap remove
public Object remove(int index)
From source file:org.etk.entity.engine.plugins.transaction.TransactionUtil.java
/** * Remove the stamp from stack (when resuming) *///from w ww. j ava 2s. co m private static void popTransactionStartStamp() { ListOrderedMap map = (ListOrderedMap) suspendedTxStartStamps.get(); if (map.size() > 0) { transactionStartStamp.set((Timestamp) map.remove(map.lastKey())); } else { logger.debug("Error in transaction handling - no saved start stamp found - using NOW."); transactionStartStamp.set(UtilDateTime.nowTimestamp()); } }
From source file:org.noerp.entity.transaction.TransactionUtil.java
/** * Remove the stamp from stack (when resuming) *///from ww w. j av a 2s.com 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()); } }