Package com.axelor.mail.db.repo
Class MailMessageRepository
- All Implemented Interfaces:
Repository<MailMessage>
-
Field Summary
Fields inherited from class com.axelor.db.JpaRepository
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongdetails(MailMessage message) voidemail(MailMessage message) findAttachments(MailMessage message) findRelated(MailMessage message) protected StringgenerateMessageId(MailMessage entity) post(Model entity, MailMessage message, List<MetaFile> files) voidremove(MailMessage message) Remove the given entity.save(MailMessage entity) Save the given entity.Methods inherited from class com.axelor.db.JpaRepository
all, all, copy, create, fields, find, findById, findByIds, flush, getReferenceById, isPermitted, isPermitted, merge, of, persist, populate, refresh, validate
-
Constructor Details
-
MailMessageRepository
public MailMessageRepository()
-
-
Method Details
-
findAll
-
findBy
-
count
-
countBy
-
findRelated
-
remove
Description copied from interface:RepositoryRemove the given entity.- Specified by:
removein interfaceRepository<MailMessage>- Overrides:
removein classJpaRepository<MailMessage>- Parameters:
message- the entity object
-
generateMessageId
-
save
Description copied from interface:RepositorySave the given entity.Depending on the implementation, it may return same entity or a copy of it. For example JPA implementation may return a copy if the given entity can't be managed.
- Specified by:
savein interfaceRepository<MailMessage>- Overrides:
savein classJpaRepository<MailMessage>- Parameters:
entity- the entity object to save- Returns:
- an instance of the entity with saved state
-
email
-
post
-
findAttachments
-
details
-