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
@Transactional public interface IDataProviderDao<T extends IDataProviderEntity>
General interface to perform CRUD operations on entities- Author:
- solomax, swagner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
count()
Count the number of instances ofIDataProviderDao
long
count(String search)
Count the number of instances ofIDataProviderDao
void
delete(T entity, Long userId)
Delete an instance ofIDataProviderDao
default T
get(long id)
List<T>
get(long start, long count)
Get a list of instances ofIDataProviderDao
T
get(Long id)
Get an instance of anIDataProviderDao
List<T>
get(String search, long start, long count, String order)
Get a list of instances ofIDataProviderDao
T
update(T entity, Long userId)
Update an instance ofIDataProviderDao
-
-
-
Method Detail
-
get
T get(Long id)
Get an instance of anIDataProviderDao
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
default T get(long id)
-
get
List<T> get(long start, long count)
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, 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
long count(String search)
Count the number of instances ofIDataProviderDao
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
update
T update(T entity, Long userId)
Update an instance ofIDataProviderDao
- Parameters:
entity
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
delete
void delete(T entity, Long userId)
Delete an instance ofIDataProviderDao
- Parameters:
entity
- - entity to be deleteduserId
- - user performed delete
-
-