Class DebuggerFactoryAdapter<T extends DBAnnotatedObject>
java.lang.Object
ghidra.util.database.DebuggerFactoryAdapter<T>
- Type Parameters:
T- The DBAnnotatedObject type
- All Implemented Interfaces:
DbFactory<T>
public class DebuggerFactoryAdapter<T extends DBAnnotatedObject>
extends Object
implements DbFactory<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDebuggerFactoryAdapter(DBCachedObjectStore<T> store, Table table, DBAnnotatedObjectFactory<T> factory) -
Method Summary
Modifier and TypeMethodDescriptioninstantiate(long key) Creates a new DatabaseObject of type T for the given key.instantiate(DBRecord record) Creates a new DatabaseObject of type T for the given record.
-
Constructor Details
-
DebuggerFactoryAdapter
public DebuggerFactoryAdapter(DBCachedObjectStore<T> store, Table table, DBAnnotatedObjectFactory<T> factory)
-
-
Method Details
-
instantiate
Description copied from interface:DbFactoryCreates a new DatabaseObject of type T for the given key. It is expected that a record for this object already exists in the database. This method is simply creating the unique instance that is associated with that record.- Specified by:
instantiatein interfaceDbFactory<T extends DBAnnotatedObject>- Parameters:
key- the database key the database key- Returns:
- the newly created instance of type T or null if no record found
-
instantiate
Description copied from interface:DbFactoryCreates a new DatabaseObject of type T for the given record.- Specified by:
instantiatein interfaceDbFactory<T extends DBAnnotatedObject>- Parameters:
record- the database record to create its associated unique instance of T- Returns:
- the newly created instance of type T
-