Interface IntermediateStorage
- All Known Subinterfaces:
Storage
public interface IntermediateStorage
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
This enum represents the different value types for an IntermediateStorage. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) Checks if the storage has the given keyReturns an Object value for the given key.getBoolean
(String key) Returns the Boolean value for the keyReturns the Date value for the keyReturns the Double value for the keygetEncryptedString
(String key) Returns the String value for the key.Returns a keyset of all set keys for the instance of this StorageProviderReturns the Long value for the keyReturns the String value for the keygetValueType
(String key) Returns the type of the value for the given key.Removes the entry for the keysetBoolean
(String key, Boolean value) Sets the KeyValue pair for this IntermediateStorage.Sets the KeyValue pair for this IntermediateStorage.Sets the KeyValue pair for this IntermediateStorage.setEncryptedString
(String key, String value) Sets the KeyValue pair for this IntermediateStorage.Sets the KeyValue pair for this IntermediateStorage.Sets the KeyValue pair for this IntermediateStorage.
-
Method Details
-
setString
Sets the KeyValue pair for this IntermediateStorage. The value type is String.- Parameters:
key
- the keyvalue
- the String value- Returns:
- this IntermediateStorage instance
- Throws:
WrongTypeException
- is thrown when the type String is wrong for this key- Since:
- 11.0
-
setLong
Sets the KeyValue pair for this IntermediateStorage. The value type is Long.- Parameters:
key
- the keyvalue
- the Long value- Returns:
- this IntermediateStorage instance
- Throws:
WrongTypeException
- is thrown when the type Long is wrong for this key- Since:
- 11.0
-
setDouble
Sets the KeyValue pair for this IntermediateStorage. The value type is Double.- Parameters:
key
- the keyvalue
- the Double value- Returns:
- this IntermediateStorage instance
- Throws:
WrongTypeException
- is thrown when the type Double is wrong for this key- Since:
- 11.0
-
setDate
Sets the KeyValue pair for this IntermediateStorage. The value type is Date.- Parameters:
key
- the keyvalue
- the Date value- Returns:
- this IntermediateStorage instance
- Throws:
WrongTypeException
- is thrown when the type Date is wrong for this key- Since:
- 11.0
-
setBoolean
Sets the KeyValue pair for this IntermediateStorage. The value type is Boolean.- Parameters:
key
- the keyvalue
- the Boolean value- Returns:
- this IntermediateStorage instance
- Throws:
WrongTypeException
- is thrown when the type Boolean is wrong for this key- Since:
- 11.0
-
setEncryptedString
Sets the KeyValue pair for this IntermediateStorage. The value type is String. This string will be saved encrypted.- Parameters:
key
- the keyvalue
- 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
Removes the entry for the key- Parameters:
key
- the key- Returns:
- the removed property
- Since:
- 10.0.34
-
get
Returns an Object value for the given key.- Parameters:
key
- the key- Returns:
- the value as an Object
- Since:
- 10.0.34
-
getString
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
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
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
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
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
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
Returns a keyset of all set keys for the instance of this StorageProvider- Returns:
- the keys in a Set
- Since:
- 10.0.34
-
containsKey
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
-