Package ghidra.program.database.util
Class DatabaseTableUtils
java.lang.Object
ghidra.program.database.util.DatabaseTableUtils
Collection of static functions for upgrading various database tables.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
updateAddressKey
(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 void
updateAddressKey
(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 void
updateIndexedAddressField
(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.
-
Constructor Details
-
DatabaseTableUtils
public DatabaseTableUtils()
-
-
Method Details
-
updateIndexedAddressField
public static void updateIndexedAddressField(Table table, int addrCol, AddressMap addrMap, Address fromAddr, Address toAddr, long length, RecordFilter filter, TaskMonitor monitor) throws 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:
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 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:
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 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:
IOException
- thrown if a database io error occurs.CancelledException
- thrown if the user cancels the move operation.
-