@Repository @Transactional public class PrivateMessageDao extends Object implements IDataProviderDao<PrivateMessage>
| コンストラクタと説明 |
|---|
PrivateMessageDao() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Long |
addPrivateMessage(String subject,
String message,
User from,
User to,
User owner,
boolean isContactRequest,
Long userContactId) |
long |
count()
Count the number of instances of
T |
Long |
count(Long ownerId,
Long folderId,
String search) |
long |
count(String search)
Count the number of instances of
T |
int |
delete(Collection<Long> ids) |
void |
delete(PrivateMessage entity,
Long userId)
Delete an instance of
T |
List<PrivateMessage> |
get(int first,
int count)
Get a list of instances of
T |
PrivateMessage |
get(long id) |
PrivateMessage |
get(Long id)
Get an instance of an
T |
List<PrivateMessage> |
get(Long ownerId,
Long folderId,
String search,
String orderBy,
boolean asc,
int start,
int max) |
List<PrivateMessage> |
get(String search,
int start,
int count,
String order)
Get a list of instances of
T |
List<PrivateMessage> |
getByRoom(Long roomId) |
int |
moveMailsToFolder(Collection<Long> ids,
Long folderId) |
PrivateMessage |
update(PrivateMessage entity,
Long userId)
Update an instance of
T |
int |
updateReadStatus(Collection<Long> ids,
Boolean isRead) |
public Long addPrivateMessage(String subject, String message, User from, User to, User owner, boolean isContactRequest, Long userContactId)
public List<PrivateMessage> get(int first, int count)
IDataProviderDaoTget インタフェース内 IDataProviderDao<PrivateMessage>first - - the start to range to retrievecount - - maximum instance count to retrievepublic PrivateMessage get(long id)
get インタフェース内 IDataProviderDao<PrivateMessage>public PrivateMessage get(Long id)
IDataProviderDaoTget インタフェース内 IDataProviderDao<PrivateMessage>id - - id of instance to retrievepublic PrivateMessage update(PrivateMessage entity, Long userId)
IDataProviderDaoTupdate インタフェース内 IDataProviderDao<PrivateMessage>entity - - entity to be updateduserId - - user performed updatepublic List<PrivateMessage> get(Long ownerId, Long folderId, String search, String orderBy, boolean asc, int start, int max)
public int updateReadStatus(Collection<Long> ids, Boolean isRead)
public int moveMailsToFolder(Collection<Long> ids, Long folderId)
public int delete(Collection<Long> ids)
public List<PrivateMessage> getByRoom(Long roomId)
public List<PrivateMessage> get(String search, int start, int count, String order)
IDataProviderDaoTget インタフェース内 IDataProviderDao<PrivateMessage>search - - string search criteria to filter entitiesstart - - the start to range to retrievecount - - maximum instance count to retrieveorder - - column and sort orderpublic long count()
IDataProviderDaoTcount インタフェース内 IDataProviderDao<PrivateMessage>public long count(String search)
IDataProviderDaoTcount インタフェース内 IDataProviderDao<PrivateMessage>search - - string search criteria to filter entitiespublic void delete(PrivateMessage entity, Long userId)
IDataProviderDaoTdelete インタフェース内 IDataProviderDao<PrivateMessage>entity - - entity to be deleteduserId - - user performed deleteCopyright © 2012–2017 Apache Software Foundation. All rights reserved.