Package xbot.common.properties
Class DatabaseStorageBase
java.lang.Object
xbot.common.properties.DatabaseStorageBase
- All Implemented Interfaces:
ITableProxy,PermanentStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all values from the table.getBoolean(String key) Reads a boolean property value.Reads a numeric property value.Reads a string property value.booleanvoidsetBoolean(String key, boolean value) Writes a boolean property value.voidWrites a numeric property value.voidWrites a string property value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface xbot.common.properties.ITableProxy
remove, setFastMode
-
Constructor Details
-
DatabaseStorageBase
-
-
Method Details
-
setDouble
Description copied from interface:ITableProxyWrites a numeric property value.- Specified by:
setDoublein interfaceITableProxy- Parameters:
key- The name of the property.value- The value to write.
-
setBoolean
Description copied from interface:ITableProxyWrites a boolean property value.- Specified by:
setBooleanin interfaceITableProxy- Parameters:
key- The name of the property.value- The value to write.
-
setString
Description copied from interface:ITableProxyWrites a string property value.- Specified by:
setStringin interfaceITableProxy- Parameters:
key- The name of the property.value- The value to write.
-
getDouble
Description copied from interface:ITableProxyReads a numeric property value.- Specified by:
getDoublein 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:ITableProxyReads a boolean property value.- Specified by:
getBooleanin 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:ITableProxyReads a string property value.- Specified by:
getStringin 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:ITableProxyClears all values from the table.- Specified by:
clearin interfaceITableProxy
-
obliterateStorage
public boolean obliterateStorage()
-