Class KeyValueTable
java.lang.Object
ghidra.features.bsim.query.client.tables.SQLComplexTable
ghidra.features.bsim.query.client.tables.KeyValueTable
-
Field Summary
Fields inherited from class ghidra.features.bsim.query.client.tables.SQLComplexTable
db, idColumnName, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCreates the db table.voidDrops the current table.longInserts a row(s) into the db.voidInserts some properties from theDatabaseInformationobject to the table.voidvoidMethods inherited from class ghidra.features.bsim.query.client.tables.SQLComplexTable
delete, setConnection
-
Constructor Details
-
KeyValueTable
public KeyValueTable()
-
-
Method Details
-
close
public void close()- Overrides:
closein classSQLComplexTable
-
create
Description copied from class:SQLComplexTableCreates the db table.- Specified by:
createin classSQLComplexTable- Parameters:
st- the query statement- Throws:
SQLException- if there is a problem
-
drop
Description copied from class:SQLComplexTableDrops the current table. NOTE: If explicitly created index tables exist they should be removed first or this method override.- Overrides:
dropin classSQLComplexTable- Parameters:
st- the query statement- Throws:
SQLException- if there is a problem with the execute update command
-
insert
Description copied from class:SQLComplexTableInserts a row(s) into the db. The arguments passed to this function are by definition not known, so they are left as a variable-length list ofObjectinstances, to be interpreted by the implementer.- Specified by:
insertin classSQLComplexTable- Parameters:
arguments- any arguments required for the insert- Returns:
- to be defined by the implementor
- Throws:
SQLException- if there is a problem executing the insert command
-
writeBasicInfo
Inserts some properties from theDatabaseInformationobject to the table.- Parameters:
info- the database information- Throws:
SQLException- if the database info cannot be stored in the table
-
writeExecutableCategories
- Parameters:
info- the database information- Throws:
SQLException- if the table insert fails
-
writeFunctionTags
- Parameters:
info- the database information- Throws:
SQLException- if the table insert fails
-
getValue
- Parameters:
key- the key to get the value for- Returns:
- the value associated with key or throw exception if key not present
- Throws:
SQLException- if the sql statement cannot be parsed
-