Class ExtraMenuDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.room.ExtraMenuDao
-
- All Implemented Interfaces:
IDataProviderDao<ExtraMenu>,IGroupAdminDataProviderDao<ExtraMenu>
@Repository @Transactional public class ExtraMenuDao extends Object implements IGroupAdminDataProviderDao<ExtraMenu>
-
-
Constructor Summary
Constructors Constructor Description ExtraMenuDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longadminCount(String search, Long adminId)Count the number of instances ofIGroupAdminDataProviderDaoList<ExtraMenu>adminGet(String search, Long adminId, long start, long count, String order)Get a list of instances ofIGroupAdminDataProviderDaolongcount()Count the number of instances ofIDataProviderDaolongcount(String search)Count the number of instances ofIDataProviderDaovoiddelete(ExtraMenu entity, Long userId)Delete an instance ofIDataProviderDaoExtraMenuget(long id)List<ExtraMenu>get(long start, long count)Get a list of instances ofIDataProviderDaoExtraMenuget(Long id)Get an instance of anIDataProviderDaoList<ExtraMenu>get(String search, long start, long count, String order)Get a list of instances ofIDataProviderDaoList<ExtraMenu>getByGroups(List<Long> groups)ExtraMenuupdate(ExtraMenu entity, Long userId)Update an instance ofIDataProviderDao-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openmeetings.db.dao.IGroupAdminDataProviderDao
adminCount, adminGet
-
-
-
-
Method Detail
-
get
public ExtraMenu get(Long id)
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<ExtraMenu>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
public ExtraMenu get(long id)
- Specified by:
getin interfaceIDataProviderDao<ExtraMenu>
-
get
public List<ExtraMenu> get(long start, long count)
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<ExtraMenu>- Parameters:
start- - the start to range to retrievecount- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public List<ExtraMenu> get(String search, long start, long count, String order)
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<ExtraMenu>- 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
public long count()
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<ExtraMenu>- Returns:
- count of instances
-
count
public long count(String search)
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<ExtraMenu>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
update
public ExtraMenu update(ExtraMenu entity, Long userId)
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<ExtraMenu>- Parameters:
entity- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
delete
public void delete(ExtraMenu entity, Long userId)
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<ExtraMenu>- Parameters:
entity- - entity to be deleteduserId- - user performed delete
-
adminGet
public List<ExtraMenu> adminGet(String search, Long adminId, long start, long count, String order)
Description copied from interface:IGroupAdminDataProviderDaoGet a list of instances ofIGroupAdminDataProviderDao- Specified by:
adminGetin interfaceIGroupAdminDataProviderDao<ExtraMenu>- Parameters:
search- - string search criteria to filter entitiesadminId- - id of group admin userstart- - the start to range to retrievecount- - maximum instance count to retrieveorder- - column and sort order- Returns:
- list of instances in the range specified
-
adminCount
public long adminCount(String search, Long adminId)
Description copied from interface:IGroupAdminDataProviderDaoCount the number of instances ofIGroupAdminDataProviderDao- Specified by:
adminCountin interfaceIGroupAdminDataProviderDao<ExtraMenu>- Parameters:
search- - string search criteria to filter entitiesadminId- - id of group admin user- Returns:
- count of instances satisfying given search criteria
-
-