Package ghidra.trace.database
Class DBTraceChangeSet
java.lang.Object
ghidra.trace.database.DBTraceChangeSet
- All Implemented Interfaces:
DBChangeSet,DomainObjectDBChangeSet,ChangeSet,DataTypeChangeSet,TraceChangeSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcategoryAdded(long id) adds the data type category id to the list of categories that have been added.voidcategoryChanged(long id) adds the data type category id to the list of categories that have changed.voidClears the undo/redo stack.voidclearUndo(boolean isCheckedOut) Resets the change sets after a save.voiddataTypeAdded(long id) Adds the data type ID to the list of added data types.voiddataTypeChanged(long id) Adds the dataType ID to the list of changed data types.voidendTransaction(boolean commit) End change data transaction.long[]returns the list of category IDs that have been added.long[]returns the list of category IDs that have changed.long[]returns a list of data type IDs that have been added.long[]returns a list of data type IDs that have changed.long[]returns a list of data type source archive IDs that have been added.long[]returns a list of data type source archive IDs that have changed.voidRead into this change set from the specified database handle.voidredo()Redo the change data transaction associated the last Undo.voidsetMaxUndos(int maxUndos) Set the undo/redo stack depthvoidsourceArchiveAdded(long id) Adds the data type source archive ID to the list of added data type archive IDs.voidsourceArchiveChanged(long id) Adds the data type source archive ID to the list of changed data type archive IDs.voidStart change data transaction.voidundo()Undo the last change data transactionvoidWrite this change set to the specified database handle.
-
Constructor Details
-
DBTraceChangeSet
public DBTraceChangeSet()
-
-
Method Details
-
read
Description copied from interface:DBChangeSetRead into this change set from the specified database handle. The database handle will not be retained and should be closed by the invoker of this method.- Specified by:
readin interfaceDBChangeSet- Parameters:
dbh- database handle- Throws:
IOException- if IO error occurs
-
write
Description copied from interface:DBChangeSetWrite this change set to the specified database handle. The database handle will not be retained and should be closed by the invoker of this method.- Specified by:
writein interfaceDBChangeSet- Parameters:
dbh- database handleisRecoverySave- true if this write is because of a recovery snapshot or false if due to a user save action.- Throws:
IOException- if IO error occurs
-
clearUndo
public void clearUndo(boolean isCheckedOut) Description copied from interface:DomainObjectDBChangeSetResets the change sets after a save.- Specified by:
clearUndoin interfaceDomainObjectDBChangeSet
-
undo
public void undo()Description copied from interface:DomainObjectDBChangeSetUndo the last change data transaction- Specified by:
undoin interfaceDomainObjectDBChangeSet
-
redo
public void redo()Description copied from interface:DomainObjectDBChangeSetRedo the change data transaction associated the last Undo.- Specified by:
redoin interfaceDomainObjectDBChangeSet
-
setMaxUndos
public void setMaxUndos(int maxUndos) Description copied from interface:DomainObjectDBChangeSetSet the undo/redo stack depth- Specified by:
setMaxUndosin interfaceDomainObjectDBChangeSet- Parameters:
maxUndos- the maximum numbder of undo
-
clearUndo
public void clearUndo()Description copied from interface:DomainObjectDBChangeSetClears the undo/redo stack.- Specified by:
clearUndoin interfaceDomainObjectDBChangeSet
-
startTransaction
public void startTransaction()Description copied from interface:DomainObjectDBChangeSetStart change data transaction.- Specified by:
startTransactionin interfaceDomainObjectDBChangeSet
-
endTransaction
public void endTransaction(boolean commit) Description copied from interface:DomainObjectDBChangeSetEnd change data transaction.- Specified by:
endTransactionin interfaceDomainObjectDBChangeSet- Parameters:
commit- if true transaction data is committed, otherwise transaction data is discarded
-
dataTypeChanged
public void dataTypeChanged(long id) Description copied from interface:DataTypeChangeSetAdds the dataType ID to the list of changed data types.- Specified by:
dataTypeChangedin interfaceDataTypeChangeSet
-
dataTypeAdded
public void dataTypeAdded(long id) Description copied from interface:DataTypeChangeSetAdds the data type ID to the list of added data types.- Specified by:
dataTypeAddedin interfaceDataTypeChangeSet- Parameters:
id-
-
getDataTypeChanges
public long[] getDataTypeChanges()Description copied from interface:DataTypeChangeSetreturns a list of data type IDs that have changed.- Specified by:
getDataTypeChangesin interfaceDataTypeChangeSet
-
getDataTypeAdditions
public long[] getDataTypeAdditions()Description copied from interface:DataTypeChangeSetreturns a list of data type IDs that have been added.- Specified by:
getDataTypeAdditionsin interfaceDataTypeChangeSet
-
categoryChanged
public void categoryChanged(long id) Description copied from interface:DataTypeChangeSetadds the data type category id to the list of categories that have changed.- Specified by:
categoryChangedin interfaceDataTypeChangeSet
-
categoryAdded
public void categoryAdded(long id) Description copied from interface:DataTypeChangeSetadds the data type category id to the list of categories that have been added.- Specified by:
categoryAddedin interfaceDataTypeChangeSet
-
getCategoryChanges
public long[] getCategoryChanges()Description copied from interface:DataTypeChangeSetreturns the list of category IDs that have changed.- Specified by:
getCategoryChangesin interfaceDataTypeChangeSet
-
getCategoryAdditions
public long[] getCategoryAdditions()Description copied from interface:DataTypeChangeSetreturns the list of category IDs that have been added.- Specified by:
getCategoryAdditionsin interfaceDataTypeChangeSet
-
sourceArchiveChanged
public void sourceArchiveChanged(long id) Description copied from interface:DataTypeChangeSetAdds the data type source archive ID to the list of changed data type archive IDs.- Specified by:
sourceArchiveChangedin interfaceDataTypeChangeSet
-
sourceArchiveAdded
public void sourceArchiveAdded(long id) Description copied from interface:DataTypeChangeSetAdds the data type source archive ID to the list of added data type archive IDs.- Specified by:
sourceArchiveAddedin interfaceDataTypeChangeSet- Parameters:
id- the data type source archive ID
-
getSourceArchiveChanges
public long[] getSourceArchiveChanges()Description copied from interface:DataTypeChangeSetreturns a list of data type source archive IDs that have changed.- Specified by:
getSourceArchiveChangesin interfaceDataTypeChangeSet
-
getSourceArchiveAdditions
public long[] getSourceArchiveAdditions()Description copied from interface:DataTypeChangeSetreturns a list of data type source archive IDs that have been added.- Specified by:
getSourceArchiveAdditionsin interfaceDataTypeChangeSet
-