Class CallgraphTable
java.lang.Object
ghidra.features.bsim.query.client.tables.SQLComplexTable
ghidra.features.bsim.query.client.tables.CallgraphTable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ghidra.features.bsim.query.client.tables.SQLComplexTable
db, idColumnName, tableName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Creates the db table.void
Drops the current table.static CallgraphTable.CallgraphRow
extractCallgraphRow
(ResultSet pgres) long
Inserts a row(s) into the db.queryCallgraphRows
(FunctionDescription func, boolean trackcallgraph) Methods inherited from class ghidra.features.bsim.query.client.tables.SQLComplexTable
delete, setConnection
-
Constructor Details
-
CallgraphTable
public CallgraphTable()
-
-
Method Details
-
close
public void close()- Overrides:
close
in classSQLComplexTable
-
create
Description copied from class:SQLComplexTable
Creates the db table.- Specified by:
create
in classSQLComplexTable
- Parameters:
st
- the query statement- Throws:
SQLException
- if there is a problem
-
drop
Description copied from class:SQLComplexTable
Drops the current table. NOTE: If explicitly created index tables exist they should be removed first or this method override.- Overrides:
drop
in classSQLComplexTable
- Parameters:
st
- the query statement- Throws:
SQLException
- if there is a problem with the execute update command
-
extractCallgraphRow
- Parameters:
pgres
- the result set to extract from- Returns:
- the new
CallgraphTable.CallgraphRow
- Throws:
SQLException
- if there's an error parsing theResultSet
-
queryCallgraphRows
public List<CallgraphTable.CallgraphRow> queryCallgraphRows(FunctionDescription func, boolean trackcallgraph) throws SQLException - Parameters:
func
- the function descriptiontrackcallgraph
- true if the database tracks call graph information- Returns:
- the list of
CallgraphTable.CallgraphRow
s - Throws:
SQLException
- if there is a problem parsing theResultSet
objects
-
insert
Description copied from class:SQLComplexTable
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.- Specified by:
insert
in 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
-