Module org.apache.openmeetings.db
Package org.apache.openmeetings.db.dao
Interface IDataProviderDao<T extends IDataProviderEntity>
- Type Parameters:
- T- entity type for this provider
- All Known Subinterfaces:
- IGroupAdminDataProviderDao<T>
- All Known Implementing Classes:
- AppointmentDao,- BaseFileItemDao,- ConfigurationDao,- ExtraMenuDao,- FileItemDao,- GroupDao,- GroupUserDao,- InvitationDao,- LabelDao,- LdapConfigDao,- MailMessageDao,- OAuth2Dao,- OmCalendarDao,- PrivateMessageDao,- PrivateMessageFolderDao,- RecordingDao,- RoomDao,- UserDao
General interface to perform CRUD operations on entities
- Author:
- swagner
- 
Method SummaryModifier and TypeMethodDescriptionlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaovoidDelete an instance ofIDataProviderDaodefault Tget(long id) get(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> order) Get a list of instances ofIDataProviderDaoUpdate an instance ofIDataProviderDao
- 
Method Details- 
getGet an instance of anIDataProviderDao- Parameters:
- id- - id of instance to retrieve
- Returns:
- instance with the id gived
 
- 
get
- 
getGet a list of instances ofIDataProviderDao- Parameters:
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- Returns:
- list of instances in the range specified
 
- 
getList<T> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDao- Parameters:
- search- - string search criteria to filter entities
- start- - the start to range to retrieve
- count- - maximum instance count to retrieve
- order- - column and sort order
- Returns:
- list of instances in the range specified
 
- 
countlong count()Count the number of instances ofIDataProviderDao- Returns:
- count of instances
 
- 
countCount the number of instances ofIDataProviderDao- Parameters:
- search- - string search criteria to filter entities
- Returns:
- count of instances satisfying given search criteria
 
- 
updateUpdate an instance ofIDataProviderDao- Parameters:
- entity- - entity to be updated
- userId- - user performed update
- Returns:
- - updated entity
 
- 
deleteDelete an instance ofIDataProviderDao- Parameters:
- entity- - entity to be deleted
- userId- - user performed delete
 
 
-