Package net.solarnetwork.central.dao
Interface AppSettingDao
- All Superinterfaces:
net.solarnetwork.dao.GenericDao<AppSetting,KeyTypePK>
- All Known Implementing Classes:
JdbcAppSettingDao
DAO API for internal application settings.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.dao.GenericDao
net.solarnetwork.dao.GenericDao.EntityEventType, net.solarnetwork.dao.GenericDao.StandardSortKey -
Field Summary
Fields inherited from interface net.solarnetwork.dao.GenericDao
ENTITY_EVENT_ENTITY_ID_PROPERTY, ENTITY_EVENT_ENTITY_PROPERTY, ENTITY_EVENT_TOPIC_TEMPLATE, SORT_BY_CREATED_ASCENDING, SORT_BY_CREATED_DESCENDING, SORT_BY_CREATED_ID_ASCENDING, SORT_BY_CREATED_ID_DESCENDING, SORT_BY_ID_ASCENDING, SORT_BY_ID_DESCENDING -
Method Summary
Modifier and TypeMethodDescriptionintDelete all settings with a given key.lockForUpdate(String key) Transactionally lock a set of settings in the database.lockForUpdate(String key, String type) Transactionally lock a specific setting in the database.Methods inherited from interface net.solarnetwork.dao.GenericDao
delete, entityEventTopic, entityKey, get, getAll, getObjectType, save
-
Method Details
-
deleteAll
Delete all settings with a given key.- Parameters:
key- the key of the settings to delete- Returns:
- the number of settings deleted
-
lockForUpdate
Transactionally lock a specific setting in the database.- Parameters:
key- the key of the setting to locktype- the type of the setting to lock- Returns:
- the locked setting
- Throws:
IllegalArgumentException- if any argument is null
-
lockForUpdate
Transactionally lock a set of settings in the database.- Parameters:
key- the key of the setting to lock- Returns:
- the locked settings
- Throws:
IllegalArgumentException- if any argument is null
-