Module org.apache.openmeetings.db
Class ConfigurationDao
java.lang.Object
org.apache.openmeetings.db.dao.basic.ConfigurationDao
- All Implemented Interfaces:
- IDataProviderDao<Configuration>
@Repository
@Transactional
public class ConfigurationDao
extends Object
implements IDataProviderDao<Configuration>
Insert/update/Delete on 
Configuration
 It provides basic mechanism to get a Conf Key:
 getBool(String, boolean)
 getLong(String, Long)
 getInt(String, int)
 getString(String, String)
  get(String) is deprecated!- Author:
- swagner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaovoiddelete(Configuration entity, Long userId) Delete an instance ofIDataProviderDaoRetrieves Configuration regardless of its deleted statusget(long start, long count) Get a list of instances ofIDataProviderDaoGet an instance of anIDataProviderDaoget(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) Get a list of instances ofIDataProviderDaobooleanintvoidreinit()update(Configuration entity, Long userId) Update an instance ofIDataProviderDaoupdate(Configuration entity, Long userId, boolean deleted) voidupdateClusterAddresses(String addresses) voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDaoget
- 
Constructor Details- 
ConfigurationDaopublic ConfigurationDao()
 
- 
- 
Method Details- 
updateClusterAddresses- Throws:
- UnknownHostException
 
- 
forceGetRetrieves Configuration regardless of its deleted status- Parameters:
- key- - key of the- Configurationto get
- Returns:
- correspondent Configurationor null
 
- 
get
- 
get
- 
getBool
- 
getLong
- 
getInt
- 
getString
- 
getDescription copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Configuration>
- Parameters:
- id- - id of instance to retrieve
- Returns:
- instance with the id gived
 
- 
getDescription copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Configuration>
- Parameters:
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- Returns:
- list of instances in the range specified
 
- 
getpublic List<Configuration> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
- getin interface- IDataProviderDao<Configuration>
- Parameters:
- search- - string search criteria to filter entities
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- sort- - column and sort order
- Returns:
- list of instances in the range specified
 
- 
countpublic long count()Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<Configuration>
- Returns:
- count of instances
 
- 
countDescription copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
- countin interface- IDataProviderDao<Configuration>
- Parameters:
- search- - string search criteria to filter entities
- Returns:
- count of instances satisfying given search criteria
 
- 
updateDescription copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
- updatein interface- IDataProviderDao<Configuration>
- Parameters:
- entity- - entity to be updated
- userId- - user performed update
- Returns:
- - updated entity
 
- 
update
- 
deleteDescription copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
- deletein interface- IDataProviderDao<Configuration>
- Parameters:
- entity- - entity to be deleted
- userId- - user performed delete
 
- 
reinitpublic void reinit()
- 
updateCsppublic void updateCsp()
 
-