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 TypeMethodDescriptionvoid
Delete particular transaction from the file.void
insert
(String txnID, TransactionDefinition txnDef) Insert new transaction into the file.void
load()
Load records from the filevoid
saveAll
(Collection<TransactionDefinition> tdMap) Wipe out all the transactions from the file and write the new one from scratch.void
update
(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:
load
in 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
-