Class MailMessageDao
- java.lang.Object
-
- org.apache.openmeetings.db.dao.basic.MailMessageDao
-
- All Implemented Interfaces:
IDataProviderDao<MailMessage>
@Repository @Transactional public class MailMessageDao extends Object implements IDataProviderDao<MailMessage>
-
-
Constructor Summary
Constructors Constructor Description MailMessageDao()
-
Method Summary
All Methods Instance Methods Concrete 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(Long id)
void
delete(MailMessage m, Long userId)
Delete an instance ofIDataProviderDao
List<MailMessage>
get(long start, long count)
Get a list of instances ofIDataProviderDao
List<MailMessage>
get(long start, long count, MailMessage.Status status)
MailMessage
get(Long id)
Get an instance of anIDataProviderDao
List<MailMessage>
get(String search, long start, long count, String order)
Get a list of instances ofIDataProviderDao
void
resetSendingStatus(Long id)
void
resetSendingStatus(Calendar date)
MailMessage
update(MailMessage m, 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.IDataProviderDao
get
-
-
-
-
Method Detail
-
get
public MailMessage get(Long id)
Description copied from interface:IDataProviderDao
Get an instance of anIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<MailMessage>
- Parameters:
id
- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
public List<MailMessage> get(long start, long count)
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<MailMessage>
- Parameters:
start
- - the start to range to retrievecount
- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
public List<MailMessage> get(long start, long count, MailMessage.Status status)
-
get
public List<MailMessage> get(String search, long start, long count, String order)
Description copied from interface:IDataProviderDao
Get a list of instances ofIDataProviderDao
- Specified by:
get
in interfaceIDataProviderDao<MailMessage>
- 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:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<MailMessage>
- Returns:
- count of instances
-
count
public long count(String search)
Description copied from interface:IDataProviderDao
Count the number of instances ofIDataProviderDao
- Specified by:
count
in interfaceIDataProviderDao<MailMessage>
- Parameters:
search
- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
resetSendingStatus
public void resetSendingStatus(Calendar date)
-
resetSendingStatus
public void resetSendingStatus(Long id)
-
update
public MailMessage update(MailMessage m, Long userId)
Description copied from interface:IDataProviderDao
Update an instance ofIDataProviderDao
- Specified by:
update
in interfaceIDataProviderDao<MailMessage>
- Parameters:
m
- - entity to be updateduserId
- - user performed update- Returns:
- - updated entity
-
delete
public void delete(MailMessage m, Long userId)
Description copied from interface:IDataProviderDao
Delete an instance ofIDataProviderDao
- Specified by:
delete
in interfaceIDataProviderDao<MailMessage>
- Parameters:
m
- - entity to be deleteduserId
- - user performed delete
-
delete
public void delete(Long id)
- Parameters:
id
- - entity id
-
-