Interface IntermediateStorage

All Known Subinterfaces:
Storage

public interface IntermediateStorage
  • Method Details

    • setString

      IntermediateStorage setString(String key, String value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is String.
      Parameters:
      key - the key
      value - the String value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type String is wrong for this key
      Since:
      11.0
    • setLong

      IntermediateStorage setLong(String key, Long value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is Long.
      Parameters:
      key - the key
      value - the Long value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type Long is wrong for this key
      Since:
      11.0
    • setDouble

      IntermediateStorage setDouble(String key, Double value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is Double.
      Parameters:
      key - the key
      value - the Double value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type Double is wrong for this key
      Since:
      11.0
    • setDate

      IntermediateStorage setDate(String key, Date value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is Date.
      Parameters:
      key - the key
      value - the Date value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type Date is wrong for this key
      Since:
      11.0
    • setBoolean

      IntermediateStorage setBoolean(String key, Boolean value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is Boolean.
      Parameters:
      key - the key
      value - the Boolean value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type Boolean is wrong for this key
      Since:
      11.0
    • setEncryptedString

      IntermediateStorage setEncryptedString(String key, String value) throws WrongTypeException
      Sets the KeyValue pair for this IntermediateStorage. The value type is String. This string will be saved encrypted.
      Parameters:
      key - the key
      value - the String value
      Returns:
      this IntermediateStorage instance
      Throws:
      WrongTypeException - is thrown when the type String is wrong for this key or the type of the key is an unencrypted String
      Since:
      11.0
    • remove

      Object remove(String key)
      Removes the entry for the key
      Parameters:
      key - the key
      Returns:
      the removed property
      Since:
      10.0.34
    • get

      Object get(String key)
      Returns an Object value for the given key.
      Parameters:
      key - the key
      Returns:
      the value as an Object
      Since:
      10.0.34
    • getString

      String getString(String key) throws WrongTypeException
      Returns the String value for the key
      Parameters:
      key - the key
      Returns:
      the value as a String
      Throws:
      WrongTypeException - is thrown when the type String is wrong for this key
      Since:
      10.0.34
    • getLong

      Long getLong(String key) throws WrongTypeException
      Returns the Long value for the key
      Parameters:
      key - the key
      Returns:
      the value as a Long
      Throws:
      WrongTypeException - is thrown when the type Long is wrong for this key
      Since:
      10.0.34
    • getDouble

      Double getDouble(String key) throws WrongTypeException
      Returns the Double value for the key
      Parameters:
      key - the key
      Returns:
      the value as a Double
      Throws:
      WrongTypeException - is thrown when the type Double is wrong for this key
      Since:
      10.0.34
    • getDate

      Date getDate(String key) throws WrongTypeException
      Returns the Date value for the key
      Parameters:
      key - the key
      Returns:
      the value as a Date
      Throws:
      WrongTypeException - is thrown when the type Date is wrong for this key
      Since:
      10.0.34
    • getBoolean

      Boolean getBoolean(String key) throws WrongTypeException
      Returns the Boolean value for the key
      Parameters:
      key - the key
      Returns:
      the value as a Boolean
      Throws:
      WrongTypeException - is thrown when the type Boolean is wrong for this key
      Since:
      10.0.34
    • getEncryptedString

      String getEncryptedString(String key) throws WrongTypeException
      Returns the String value for the key. This value will be decrypted.
      Parameters:
      key - the key
      Returns:
      the decrypted value as a String
      Throws:
      WrongTypeException - is thrown when the type String is wrong for this key or the type of the key is an unencrypted String
      Since:
      10.0.102
    • getKeySet

      Set<String> getKeySet()
      Returns a keyset of all set keys for the instance of this StorageProvider
      Returns:
      the keys in a Set
      Since:
      10.0.34
    • containsKey

      boolean containsKey(String key)
      Checks if the storage has the given key
      Parameters:
      key - the key
      Returns:
      true if the storage has the given key, otherwise false
      Since:
      10.0.112
    • getValueType

      Returns the type of the value for the given key.
      Parameters:
      key - the key
      Returns:
      The ValueType of the given key defined by this IntermediateStorage. If the value type is not defined the return value is null.
      Since:
      11.22.0