Package step.core.controller
Class ControllerSettingAccessorImpl
- java.lang.Object
-
- step.core.accessors.AbstractAccessor
-
- step.core.accessors.AbstractCRUDAccessor<ControllerSetting>
-
- step.core.controller.ControllerSettingAccessorImpl
-
- All Implemented Interfaces:
Accessor<ControllerSetting>
,CRUDAccessor<ControllerSetting>
,ControllerSettingAccessor
public class ControllerSettingAccessorImpl extends AbstractCRUDAccessor<ControllerSetting> implements ControllerSettingAccessor
-
-
Field Summary
-
Fields inherited from class step.core.accessors.AbstractCRUDAccessor
collection
-
Fields inherited from class step.core.accessors.AbstractAccessor
mongoClientSession
-
-
Constructor Summary
Constructors Constructor Description ControllerSettingAccessorImpl(MongoClientSession clientSession)
-
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.AbstractCRUDAccessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange, queryByAttributes, queryByAttributes, remove, save, save
-
Methods inherited from class step.core.accessors.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, createOrUpdateTTLIndex, getJongoCollection, getMongoCollection
-
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
-
-
-
-
Constructor Detail
-
ControllerSettingAccessorImpl
public ControllerSettingAccessorImpl(MongoClientSession clientSession)
-
-
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
-
-