Class BookmarkDB
java.lang.Object
ghidra.program.database.DbObject
ghidra.program.database.bookmark.BookmarkDB
- All Implemented Interfaces:
Bookmark, Comparable<Bookmark>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if this object has been deleted, in which case any use of the object is not allowed.intReturns address at which this bookmark is applied.Returns bookmark categoryReturns bookmark commentlonggetId()Returns the id of the bookmark.getType()Returns bookmark type object.Returns bookmark type as a stringinthashCode()booleanReturns true if this bookmark has been deleted and is no longer valid..booleanisOwnedBy(BookmarkDBManager bookmarkDBManager) protected booleanTells the object to refresh its state from the database using the specified record if provided.voidSet the category and comment associated with a bookmark.voidsetComment(String comment) toString()Methods inherited from class DbObject
getKey, isDeleted, isValid, keyChanged, needsRefreshing, refreshIfNeeded, setDeleted, setInvalid, setValid, validate
-
Method Details
-
toString
-
getId
-
getAddress
Description copied from interface:BookmarkReturns address at which this bookmark is applied.- Specified by:
getAddressin interfaceBookmark
-
getType
Description copied from interface:BookmarkReturns bookmark type object. -
getTypeString
Description copied from interface:BookmarkReturns bookmark type as a string- Specified by:
getTypeStringin interfaceBookmark
-
getCategory
Description copied from interface:BookmarkReturns bookmark category- Specified by:
getCategoryin interfaceBookmark
-
setComment
-
getComment
Description copied from interface:BookmarkReturns bookmark comment- Specified by:
getCommentin interfaceBookmark
-
set
-
refresh
Description copied from class:DbObjectTells the object to refresh its state from the database using the specified record if provided. The record may be null and the object is generally expected to be able to retrieve its own record from the database as needed. Is is mostly passed as a parameter for efficiency to keep an object from having to look up its record when the client already has the record in hand such as when it is iterating over records.This method generally should not be called directly as it provides no recursion protection. Instead, most clients should call
DbObject.refreshIfNeeded()instead which WILL provide recursion protection. If clients must call this method, they either need to provided their own recursion protection or be absolutely certain that recursive calls won't occur.- Specified by:
refreshin classDbObject- Parameters:
rec- valid record associated with object's key (optional, may be null to force record lookup or other refresh technique)- Returns:
- true if the object was able to refresh itself. Return false if record is null and object was deleted. Objects that extend this class must implement a refresh method. If an object can never refresh itself, then it should always return false.
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<Bookmark>
-
isOwnedBy
-
checkDeleted
public void checkDeleted()Description copied from class:DbObjectChecks if this object has been deleted, in which case any use of the object is not allowed. This method should be invoked before any modifications to the object are performed to ensure it still exists and is in a valid state.- Overrides:
checkDeletedin classDbObject
-
isDeleted
-