@Transactional public class RoomDao extends Object implements IDataProviderDao<Room>
Modifier and Type | Field and Description |
---|---|
static String[] |
searchFields |
Constructor and Description |
---|
RoomDao() |
Modifier and Type | Method and Description |
---|---|
long |
count()
Count the number of instances of
T |
long |
count(String search)
Count the number of instances of
T |
void |
delete(Room entity,
Long userId)
Delete an instance of
T |
List<Room> |
get() |
List<Room> |
get(int start,
int count)
Get a list of instances of
T |
List<Room> |
get(List<Long> ids) |
Room |
get(Long id)
Get an instance of an
T |
List<Room> |
get(String search,
int start,
int count,
String sort)
Get a list of instances of
T |
List<Room> |
getAppointedRoomsByUser(long userId) |
Room |
getExternal(Room.Type type,
String externalType,
Long externalId) |
List<Room> |
getGroupRooms(long groupId) |
List<Room> |
getPublicRooms() |
List<Room> |
getPublicRooms(Room.Type type) |
long |
getRoomsCapacityByIds(List<Long> ids) |
List<Long> |
getSipRooms(List<Long> ids) |
Room |
getUserRoom(Long ownerId,
Room.Type type,
String name) |
Room |
update(Room entity,
Long userId)
Update an instance of
T |
public static final String[] searchFields
public Room get(Long id)
IDataProviderDao
T
get
in interface IDataProviderDao<Room>
id
- - id of instance to retrievepublic List<Room> get(int start, int count)
IDataProviderDao
T
get
in interface IDataProviderDao<Room>
start
- - the start to range to retrievecount
- - maximum instance count to retrievepublic List<Room> get(String search, int start, int count, String sort)
IDataProviderDao
T
get
in interface IDataProviderDao<Room>
search
- - string search criteria to filter entitiesstart
- - the start to range to retrievecount
- - maximum instance count to retrievesort
- - column and sort orderpublic long count()
IDataProviderDao
T
count
in interface IDataProviderDao<Room>
public long count(String search)
IDataProviderDao
T
count
in interface IDataProviderDao<Room>
search
- - string search criteria to filter entitiespublic Room update(Room entity, Long userId)
IDataProviderDao
T
update
in interface IDataProviderDao<Room>
entity
- - entity to be updateduserId
- - user performed updatepublic void delete(Room entity, Long userId)
IDataProviderDao
T
delete
in interface IDataProviderDao<Room>
entity
- - entity to be deleteduserId
- - user performed deleteCopyright © 2012–2016 Apache Software Foundation. All rights reserved.