Class DBTraceCodeManager.DBTraceCodePrototypeEntry
- All Implemented Interfaces:
DBTraceOverlaySpaceAdapter.DecodesAddresses
- Enclosing class:
DBTraceCodeManager
Version history:
- 1: Change
addressto 10-byte fixed encoding - 0: Initial version and previous unversioned implementation
-
Field Summary
FieldsFields inherited from class ghidra.program.database.DatabaseObject
key -
Constructor Summary
ConstructorsConstructorDescriptionDBTraceCodePrototypeEntry(DBTraceCodeManager manager, DBCachedObjectStore<?> store, DBRecord record) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfresh(boolean created) Extension point: Called when the object's fields are populated.Get the space adapter for the trace containing the objectMethods inherited from class ghidra.util.database.DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, getObjectKey, getTableName, isDeleted, refresh, refresh, update, update, update, updateMethods inherited from class ghidra.program.database.DatabaseObject
checkDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, setInvalid, validate
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
DBTraceCodePrototypeEntry
public DBTraceCodePrototypeEntry(DBTraceCodeManager manager, DBCachedObjectStore<?> store, DBRecord record)
-
-
Method Details
-
getOverlaySpaceAdapter
Description copied from interface:DBTraceOverlaySpaceAdapter.DecodesAddressesGet the space adapter for the trace containing the object- Specified by:
getOverlaySpaceAdapterin interfaceDBTraceOverlaySpaceAdapter.DecodesAddresses- Returns:
- the adapter
-
fresh
Description copied from class:DBAnnotatedObjectExtension point: Called when the object's fields are populated.This provides an opportunity for the object to initialize any non-database-backed fields that depend on the database-backed fields. Note that its use may indicate a situation better solved by a custom
DBCachedObjectStoreFactory.DBFieldCodec. If both the database-backed and non-database-backed fields are used frequently, then a codec may not be indicated. If the database-backed fields are only used in this method or to encode another frequently-used field, then a codec is likely better.For a new object, the database-backed fields remain at their initial values. They will be saved after this method returns, so they may be further initialized with custom logic.
For an object loaded from the database, the database-backed fields are already populated from the record when this method is called. They are not automatically saved after this method returns. This method should not further initialize database-backed fields in this case.
- Overrides:
freshin classDBAnnotatedObject- Parameters:
created-truewhen object is being created, orfalsewhen it is being loaded.- Throws:
IOException- if further initialization fails.
-
getPrototype
-