Class SourceArchiveDB
java.lang.Object
ghidra.program.database.DbObject
ghidra.program.database.data.SourceArchiveDB
- All Implemented Interfaces:
SourceArchive
-
Field Summary
-
Method Summary
ChangeModifier and TypeMethodDescriptionGets an indicator for the type of data type archive.Gets the ID used to uniquely identify the domain file for the data type archive.longReturns the last time that this source archive was synchronized to the containing DataTypeManager.getName()Returns the name of the source archiveGets the ID that the program has associated with the data type archive.booleanisDirty()Returns true if at least one data type that originally came from this source archive has been changed.protected booleanTells the object to refresh its state from the database using the specified record if provided.voidsetDirtyFlag(boolean isDirty) Sets the dirty flag to indicate if at least one data type that originally came from the associated source archive has been changed since the last time the containing DataTypeManager was synchronized with it.voidsetLastSyncTime(long syncTime) Sets the last time that this source archive was synchronized to the containing DataTypeManager.voidSets the name of the source archive associated with this SourceArchive object.toString()REMOVEDbooleanrefresh() RemovedMethods inherited from class DbObject
checkDeleted, getKey, isDeleted, isValid, keyChanged, needsRefreshing, refreshIfNeeded, setDeleted, setInvalid, setValid, validate
-
Method Details
-
getSourceArchiveID
Gets the ID that the program has associated with the data type archive.- Specified by:
getSourceArchiveIDin interfaceSourceArchive- Returns:
- the data type archive ID
-
getDomainFileID
Gets the ID used to uniquely identify the domain file for the data type archive.- Specified by:
getDomainFileIDin interfaceSourceArchive- Returns:
- the domain file identifier
-
getArchiveType
Gets an indicator for the type of data type archive. (PROGRAM_TYPE, PROJECT_TYPE, FILE_TYPE)- Specified by:
getArchiveTypein interfaceSourceArchive- Returns:
- the type
-
getName
Description copied from interface:SourceArchiveReturns the name of the source archive- Specified by:
getNamein interfaceSourceArchive- Returns:
- the name of the source archive.
-
refresh NEW
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.
-
getLastSyncTime
public long getLastSyncTime()Description copied from interface:SourceArchiveReturns the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
getLastSyncTimein interfaceSourceArchive- Returns:
- the last time that this source archive was synchronized to the containing DataTypeManager.
-
isDirty
public boolean isDirty()Description copied from interface:SourceArchiveReturns true if at least one data type that originally came from this source archive has been changed.- Specified by:
isDirtyin interfaceSourceArchive- Returns:
- true if at least one data type that originally came from this source archive has been changed.
-
setLastSyncTime
public void setLastSyncTime(long syncTime) Description copied from interface:SourceArchiveSets the last time that this source archive was synchronized to the containing DataTypeManager.- Specified by:
setLastSyncTimein interfaceSourceArchive- Parameters:
syncTime- the last time that this source archive was synchronized to the containing DataTypeManager.
-
setDirtyFlag
public void setDirtyFlag(boolean isDirty) Description copied from interface:SourceArchiveSets the dirty flag to indicate if at least one data type that originally came from the associated source archive has been changed since the last time the containing DataTypeManager was synchronized with it.- Specified by:
setDirtyFlagin interfaceSourceArchive- Parameters:
isDirty- true means at least one data type that originally came from this source archive has been changed.
-
setName
Description copied from interface:SourceArchiveSets the name of the source archive associated with this SourceArchive object.- Specified by:
setNamein interfaceSourceArchive- Parameters:
newName- the name of the associated source archive.
-
toString
-