Package ghidra.program.database

# Class DBStringMapAdapter

java.lang.Object
ghidra.program.database.DBStringMapAdapter

public class DBStringMapAdapter extends Object
`DBStringMapAdapter` provides a simple string-to-string map backed by a named database table. This adapter's schema must never change.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DBStringMapAdapter(DBHandle dbHandle, String tableName, boolean create)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `delete(String key)`
  `String`
  `get(String key)`
  `boolean`
  `getBoolean(String key, boolean defaultValue)`
  `int`
  `getInt(String key, int defaultValue)`
  `Set<String>`
  `keySet()`
  `void`
  `put(String key, String value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DBStringMapAdapter

    public DBStringMapAdapter(DBHandle dbHandle, String tableName, boolean create) throws IOException
    Throws:
      `IOException`

- ## Method Details

  - ### put

    public void put(String key, String value) throws IOException
    Throws:
      `IOException`

  - ### get

    public String get(String key) throws IOException
    Throws:
      `IOException`

  - ### getInt

    public int getInt(String key, int defaultValue) throws IOException
    Throws:
      `IOException`

  - ### getBoolean

    public boolean getBoolean(String key, boolean defaultValue) throws IOException
    Throws:
      `IOException`

  - ### keySet

    public Set<String> keySet() throws IOException
    Throws:
      `IOException`

  - ### delete

    public void delete(String key) throws IOException
    Throws:
      `IOException`