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 -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Count the number of instances ofIDataProviderDaolongCount the number of instances ofIDataProviderDaovoidvoiddelete(MailMessage m, Long userId) Delete an instance ofIDataProviderDaoget(long start, long count) Get a list of instances ofIDataProviderDaoget(long start, long count, MailMessage.Status status) Get an instance of anIDataProviderDaoget(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) Get a list of instances ofIDataProviderDaovoidvoidresetSendingStatus(Calendar date) update(MailMessage m, Long userId) Update an instance ofIDataProviderDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openmeetings.db.dao.IDataProviderDao
get
-
Constructor Details
-
MailMessageDao
public MailMessageDao()
-
-
Method Details
-
get
Description copied from interface:IDataProviderDaoGet an instance of anIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<MailMessage>- Parameters:
id- - id of instance to retrieve- Returns:
- instance with the id gived
-
get
Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<MailMessage>- Parameters:
start- - the start to range to retrievecount- - maximum instance count to retrieve- Returns:
- list of instances in the range specified
-
get
-
get
public List<MailMessage> get(String search, long start, long count, org.apache.wicket.extensions.markup.html.repeater.util.SortParam<String> sort) Description copied from interface:IDataProviderDaoGet a list of instances ofIDataProviderDao- Specified by:
getin interfaceIDataProviderDao<MailMessage>- Parameters:
search- - string search criteria to filter entitiesstart- - the start to range to retrievecount- - maximum instance count to retrievesort- - 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<MailMessage>- Returns:
- count of instances
-
count
Description copied from interface:IDataProviderDaoCount the number of instances ofIDataProviderDao- Specified by:
countin interfaceIDataProviderDao<MailMessage>- Parameters:
search- - string search criteria to filter entities- Returns:
- count of instances satisfying given search criteria
-
resetSendingStatus
-
resetSendingStatus
-
update
Description copied from interface:IDataProviderDaoUpdate an instance ofIDataProviderDao- Specified by:
updatein interfaceIDataProviderDao<MailMessage>- Parameters:
m- - entity to be updateduserId- - user performed update- Returns:
- - updated entity
-
delete
Description copied from interface:IDataProviderDaoDelete an instance ofIDataProviderDao- Specified by:
deletein interfaceIDataProviderDao<MailMessage>- Parameters:
m- - entity to be deleteduserId- - user performed delete
-
delete
- Parameters:
id- - entity id
-