Class SQLComplexTable
java.lang.Object
ghidra.features.bsim.query.client.tables.SQLComplexTable
- Direct Known Subclasses:
CallgraphTable
,DescriptionTable
,ExeTable
,ExeToCategoryTable
,H2VectorTable
,IdfLookupTable
,KeyValueTable
,WeightTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Connection
protected final String
protected final String
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tableName
-
idColumnName
-
db
-
-
Constructor Details
-
SQLComplexTable
-
-
Method Details
-
setConnection
-
close
public void close() -
create
Creates the db table.- Parameters:
st
- the query statement- Throws:
SQLException
- if there is a problem
-
delete
Deletes the row with the given id from the db. Users must set theDELETE_STMT
string to delete the exact table they need.- Parameters:
id
- the database row ID- Returns:
- the number of deleted rows
- Throws:
SQLException
- if there is a problem creating or executing the query
-
drop
Drops the current table. NOTE: If explicitly created index tables exist they should be removed first or this method override.- Parameters:
st
- the query statement- Throws:
SQLException
- if there is a problem with the execute update command
-
insert
Inserts 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 ofObject
instances, to be interpreted by the implementer.- 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
-