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 Summary
Modifier and TypeMethodDescriptionlong
count()
Count the number of instances ofIDataProviderDao
long
Count the number of instances ofIDataProviderDao
void
Delete an instance ofIDataProviderDao
default T
get
(long id) get
(long start, long count) Get a list of instances ofIDataProviderDao
Get an instance of anIDataProviderDao
get
(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> order) Get a list of instances ofIDataProviderDao
Update an instance ofIDataProviderDao
-
Method Details
-
get
Get an instance of anIDataProviderDao
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
-
get
Get a list of instances ofIDataProviderDao
- Parameters:
start
- - the start to range to retrievecount
- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
List<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 entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrieveorder
- - column and sort order- Returns:
- list of instances in the range specified
-
count
long count()Count the number of instances ofIDataProviderDao
- Returns:
- count of instances
-
count
Count the number of instances ofIDataProviderDao
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
update
Update an instance ofIDataProviderDao
- Parameters:
entity
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
delete
Delete an instance ofIDataProviderDao
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-