Package xbot.common.properties
Class DatabaseStorageBase
java.lang.Object
xbot.common.properties.DatabaseStorageBase
- All Implemented Interfaces:
ITableProxy
,PermanentStorage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all values from the table.getBoolean
(String key) Reads a boolean property value.Reads a numeric property value.Reads a string property value.boolean
void
setBoolean
(String key, boolean value) Writes a boolean property value.void
Writes a numeric property value.void
Writes a string property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xbot.common.properties.ITableProxy
remove, setFastMode
-
Constructor Details
-
DatabaseStorageBase
-
-
Method Details
-
setDouble
Description copied from interface:ITableProxy
Writes a numeric property value.- Specified by:
setDouble
in interfaceITableProxy
- Parameters:
key
- The name of the property.value
- The value to write.
-
setBoolean
Description copied from interface:ITableProxy
Writes a boolean property value.- Specified by:
setBoolean
in interfaceITableProxy
- Parameters:
key
- The name of the property.value
- The value to write.
-
setString
Description copied from interface:ITableProxy
Writes a string property value.- Specified by:
setString
in interfaceITableProxy
- Parameters:
key
- The name of the property.value
- The value to write.
-
getDouble
Description copied from interface:ITableProxy
Reads a numeric property value.- Specified by:
getDouble
in interfaceITableProxy
- Parameters:
key
- The name of the property.- Returns:
- The value of the property, or null if it does not exist.
-
getBoolean
Description copied from interface:ITableProxy
Reads a boolean property value.- Specified by:
getBoolean
in interfaceITableProxy
- Parameters:
key
- The name of the property.- Returns:
- The value of the property, or null if it does not exist.
-
getString
Description copied from interface:ITableProxy
Reads a string property value.- Specified by:
getString
in interfaceITableProxy
- 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 interfaceITableProxy
-
obliterateStorage
public boolean obliterateStorage()
-