Class ExeToCategoryTable

java.lang.Object
ghidra.features.bsim.query.client.tables.SQLComplexTable
ghidra.features.bsim.query.client.tables.ExeToCategoryTable

public class ExeToCategoryTable extends SQLComplexTable
  • Constructor Details

    • ExeToCategoryTable

      public ExeToCategoryTable(SQLStringTable catstringtable)
      Constructor
      Parameters:
      catstringtable - table containing all category values
  • Method Details

    • close

      public void close()
      Overrides:
      close in class SQLComplexTable
    • create

      public void create(Statement st) throws SQLException
      Description copied from class: SQLComplexTable
      Creates the db table.
      Specified by:
      create in class SQLComplexTable
      Parameters:
      st - the query statement
      Throws:
      SQLException - if there is a problem
    • drop

      public void drop(Statement st) throws SQLException
      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 class SQLComplexTable
      Parameters:
      st - the query statement
      Throws:
      SQLException - if there is a problem with the execute update command
    • insert

      public long insert(Object... arguments) throws SQLException
      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 of Object instances, to be interpreted by the implementer.
      Specified by:
      insert in class SQLComplexTable
      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
    • extractCategoryRow

      protected static void extractCategoryRow(ResultSet pgres, ExeToCategoryTable.CategoryRow res) throws SQLException
      Throws:
      SQLException
    • extractCategoryRecords

      protected void extractCategoryRecords(ResultSet rs, List<CategoryRecord> vecres, int max) throws SQLException
      Throws:
      SQLException
    • queryExecutableCategories

      public List<CategoryRecord> queryExecutableCategories(long exeid, int max) throws SQLException
      Parameters:
      exeid - the executable table id
      max - the max number of records to return
      Returns:
      the list of category records
      Throws:
      SQLException - if there is a problem creating or executing the query
    • storeExecutableCategories

      public void storeExecutableCategories(ExecutableRecord erec) throws SQLException
      Parameters:
      erec - the executable record
      Throws:
      SQLException - if there is a problem inserting the category