Class TransactionTable
java.lang.Object
com.nt.common.util.PersistentTable
com.nt.udc.nodemgr.transactionmanager.TransactionTable
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete particular transaction from the file.voidinsert(String txnID, TransactionDefinition txnDef) Insert new transaction into the file.voidload()Load records from the filevoidsaveAll(Collection<TransactionDefinition> tdMap) Wipe out all the transactions from the file and write the new one from scratch.voidupdate(String txnID, TransactionDefinition txnDef) Update the transaction details for particular transaction id.Methods inherited from class com.nt.common.util.PersistentTable
bufferedSave, clear, contains, containsKey, elements, get, getFile, isEmpty, keys, put, putAndSave, remove, removeAndSave, save, setFile, size, toString
-
Constructor Details
-
TransactionTable
Constructor- Parameters:
tblFile-- Throws:
IOException
-
-
Method Details
-
load
Load records from the file- Specified by:
loadin classcom.nt.common.util.PersistentTable- Throws:
IOException
-
insert
Insert new transaction into the file.- Parameters:
txnID-txnDef-- Throws:
IOException
-
update
Update the transaction details for particular transaction id.- Parameters:
txnID-txnDef-- Throws:
IOException
-
delete
Delete particular transaction from the file.- Parameters:
txnID-- Throws:
IOException
-
saveAll
Wipe out all the transactions from the file and write the new one from scratch.- Parameters:
tdMap-- Throws:
IOException
-