Package org.exoplatform.settings.jpa.dao
Class SettingsDAO
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<SettingsEntity,Long>
org.exoplatform.settings.jpa.dao.SettingsDAO
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<SettingsEntity,,Long> SettingsDAO
Created by exo on 3/8/17.
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountSettingsByNameAndValueAndScope(String scopeType, String scopeName, String key, String value) getSettingByContextAndScopeAndKey(String contextType, String contextName, String scopeType, String scopeName, String key) getSettingsByContextAndScope(String contextType, String contextName, String scopeType, String scopeName) getSettingsByContextTypeAndName(String contextType, String contextName) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
SettingsDAO
public SettingsDAO()
-
-
Method Details
-
getSettingsByContextTypeAndName
- Specified by:
getSettingsByContextTypeAndNamein interfaceSettingsDAO
-
getSettingsByContextAndScope
public List<SettingsEntity> getSettingsByContextAndScope(String contextType, String contextName, String scopeType, String scopeName) - Specified by:
getSettingsByContextAndScopein interfaceSettingsDAO
-
getSettingByContextAndScopeAndKey
public SettingsEntity getSettingByContextAndScopeAndKey(String contextType, String contextName, String scopeType, String scopeName, String key) - Specified by:
getSettingByContextAndScopeAndKeyin interfaceSettingsDAO
-
countSettingsByNameAndValueAndScope
public long countSettingsByNameAndValueAndScope(String scopeType, String scopeName, String key, String value) - Specified by:
countSettingsByNameAndValueAndScopein interfaceSettingsDAO
-