Package step.core.controller
Class ControllerSettingAccessorImpl
- java.lang.Object
-
- step.core.accessors.AbstractAccessor<ControllerSetting>
-
- step.core.controller.ControllerSettingAccessorImpl
-
- All Implemented Interfaces:
step.core.accessors.Accessor<ControllerSetting>
,ControllerSettingAccessor
- Direct Known Subclasses:
InMemoryControllerSettingAccessor
public class ControllerSettingAccessorImpl extends step.core.accessors.AbstractAccessor<ControllerSetting> implements ControllerSettingAccessor
-
-
Constructor Summary
Constructors Constructor Description ControllerSettingAccessorImpl(step.core.collections.Collection<ControllerSetting> collectionDriver)
-
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.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getCollectionDriver, getRange, remove, save, save, stream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface step.core.accessors.Accessor
findByAttributes, findByAttributes, findByCriteria, findManyByAttributes, findManyByAttributes, findManyByCriteria, get, get, getAll, getRange, remove, save, stream
-
Methods inherited from interface step.core.controller.ControllerSettingAccessor
save
-
-
-
-
Constructor Detail
-
ControllerSettingAccessorImpl
public ControllerSettingAccessorImpl(step.core.collections.Collection<ControllerSetting> collectionDriver)
-
-
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
-
createSettingIfNotExisting
public ControllerSetting createSettingIfNotExisting(String key, String value)
- Specified by:
createSettingIfNotExisting
in interfaceControllerSettingAccessor
-
getSettingAsBoolean
public boolean getSettingAsBoolean(String key)
- Specified by:
getSettingAsBoolean
in interfaceControllerSettingAccessor
-
-