Package step.core.controller
Class InMemoryControllerSettingAccessor
- java.lang.Object
-
- step.core.accessors.InMemoryCRUDAccessor<ControllerSetting>
-
- step.core.controller.InMemoryControllerSettingAccessor
-
- All Implemented Interfaces:
Accessor<ControllerSetting>
,CRUDAccessor<ControllerSetting>
,ControllerSettingAccessor
public class InMemoryControllerSettingAccessor extends InMemoryCRUDAccessor<ControllerSetting> implements ControllerSettingAccessor
-
-
Field Summary
-
Fields inherited from class step.core.accessors.InMemoryCRUDAccessor
map
-
-
Constructor Summary
Constructors Constructor Description InMemoryControllerSettingAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControllerSetting
createSettingIfNotExisting(String key, String value)
boolean
getSettingAsBoolean(String key)
ControllerSetting
getSettingByKey(String key)
ControllerSetting
updateOrCreateSetting(String key, String value)
-
Methods inherited from class step.core.accessors.InMemoryCRUDAccessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange, notImplemented, remove, save, save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface step.core.controller.ControllerSettingAccessor
save
-
-
-
-
Method Detail
-
getSettingByKey
public ControllerSetting getSettingByKey(String key)
- Specified by:
getSettingByKey
in interfaceControllerSettingAccessor
-
updateOrCreateSetting
public ControllerSetting updateOrCreateSetting(String key, String value)
- Specified by:
updateOrCreateSetting
in interfaceControllerSettingAccessor
-
getSettingAsBoolean
public boolean getSettingAsBoolean(String key)
- Specified by:
getSettingAsBoolean
in interfaceControllerSettingAccessor
-
createSettingIfNotExisting
public ControllerSetting createSettingIfNotExisting(String key, String value)
- Specified by:
createSettingIfNotExisting
in interfaceControllerSettingAccessor
-
-