Class DatabaseStorageBase

java.lang.Object
xbot.common.properties.DatabaseStorageBase
All Implemented Interfaces:
ITableProxy, PermanentStorage

public abstract class DatabaseStorageBase extends Object implements PermanentStorage
  • Constructor Details

    • DatabaseStorageBase

      public DatabaseStorageBase(String databaseDirectory)
  • Method Details

    • setDouble

      public void setDouble(String key, double value)
      Description copied from interface: ITableProxy
      Writes a numeric property value.
      Specified by:
      setDouble in interface ITableProxy
      Parameters:
      key - The name of the property.
      value - The value to write.
    • setBoolean

      public void setBoolean(String key, boolean value)
      Description copied from interface: ITableProxy
      Writes a boolean property value.
      Specified by:
      setBoolean in interface ITableProxy
      Parameters:
      key - The name of the property.
      value - The value to write.
    • setString

      public void setString(String key, String value)
      Description copied from interface: ITableProxy
      Writes a string property value.
      Specified by:
      setString in interface ITableProxy
      Parameters:
      key - The name of the property.
      value - The value to write.
    • getDouble

      public Double getDouble(String key)
      Description copied from interface: ITableProxy
      Reads a numeric property value.
      Specified by:
      getDouble in interface ITableProxy
      Parameters:
      key - The name of the property.
      Returns:
      The value of the property, or null if it does not exist.
    • getBoolean

      public Boolean getBoolean(String key)
      Description copied from interface: ITableProxy
      Reads a boolean property value.
      Specified by:
      getBoolean in interface ITableProxy
      Parameters:
      key - The name of the property.
      Returns:
      The value of the property, or null if it does not exist.
    • getString

      public String getString(String key)
      Description copied from interface: ITableProxy
      Reads a string property value.
      Specified by:
      getString in interface ITableProxy
      Parameters:
      key - The name of the property.
      Returns:
      The value of the property, or null if it does not exist.
    • clear

      public void clear()
      Description copied from interface: ITableProxy
      Clears all values from the table.
      Specified by:
      clear in interface ITableProxy
    • obliterateStorage

      public boolean obliterateStorage()