Package ghidra.program.database.util
Class DatabaseTableUtils
- java.lang.Object
-
- ghidra.program.database.util.DatabaseTableUtils
-
public class DatabaseTableUtils extends java.lang.ObjectCollection of static functions for upgrading various database tables.
-
-
Constructor Summary
Constructors Constructor Description DatabaseTableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidupdateAddressKey(Table table, AddressMap addrMap, Address fromAddr, Address toAddr, long length, TaskMonitor monitor)Handles redoing a table whose key is address based when a ranges of addresses is moved.static voidupdateAddressKey(Table table, AddressMap addrMap, Address fromAddr, Address endAddr, Address toAddr, TaskMonitor monitor)Handles redoing a table whose key is address based when a ranges of addresses is moved.static voidupdateIndexedAddressField(Table table, int addrCol, AddressMap addrMap, Address fromAddr, Address toAddr, long length, RecordFilter filter, TaskMonitor monitor)Updates an indexed address field for when a block is moved.
-
-
-
Method Detail
-
updateIndexedAddressField
public static void updateIndexedAddressField(Table table, int addrCol, AddressMap addrMap, Address fromAddr, Address toAddr, long length, RecordFilter filter, TaskMonitor monitor) throws java.io.IOException, CancelledException
Updates an indexed address field for when a block is moved.- Parameters:
table- the database tableaddrCol- the address column in the tableaddrMap- the address mapfromAddr- the from address of the block being movedtoAddr- the address to where the block is being moved.length- the size of the block being moved.monitor- the task monitor- Throws:
java.io.IOException- thrown if a database io error occurs.CancelledException- thrown if the user cancels the move operation.
-
updateAddressKey
public static void updateAddressKey(Table table, AddressMap addrMap, Address fromAddr, Address toAddr, long length, TaskMonitor monitor) throws java.io.IOException, CancelledException
Handles redoing a table whose key is address based when a ranges of addresses is moved.- Parameters:
table- the database table.addrMap- the address map.fromAddr- the from address of the block being moved.toAddr- the destination address of the block being moved.length- the size of the block being moved.monitor- the taskmonitor- Throws:
java.io.IOException- thrown if a database io error occurs.CancelledException- thrown if the user cancels the move operation.
-
updateAddressKey
public static void updateAddressKey(Table table, AddressMap addrMap, Address fromAddr, Address endAddr, Address toAddr, TaskMonitor monitor) throws java.io.IOException, CancelledException
Handles redoing a table whose key is address based when a ranges of addresses is moved.- Parameters:
table- the database table.addrMap- the address map.fromAddr- the first address of the block being moved.endAddr- the last address of the block being moved.toAddr- the destination address of the block being moved.monitor- the task monitor- Throws:
java.io.IOException- thrown if a database io error occurs.CancelledException- thrown if the user cancels the move operation.
-
-