Interface DbMailMessageHandler
-
- All Known Implementing Classes:
DbMailMessageHandlerImpl
,HSqlDbMailMessageHandler
public interface DbMailMessageHandler
DbMailMessageHandler.- Author:
- Andreas Rudolph
-
-
Method Summary
-
-
-
Method Detail
-
downloadPart
boolean downloadPart(Connection c, long partId, OutputStream output) throws SQLException, IOException
- Throws:
SQLException
IOException
-
getArchivedMessages
DbMailMessage[] getArchivedMessages(Connection c, long folderId) throws SQLException
- Throws:
SQLException
-
getArchivedMessages
DbMailMessage[] getArchivedMessages(Connection c, long[] folderIds) throws SQLException
- Throws:
SQLException
-
getFolder
DbMailFolder getFolder(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getFolders
DbMailFolder[] getFolders(Connection c) throws SQLException
- Throws:
SQLException
-
getFolders
DbMailFolder[] getFolders(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getFoldersForAutoRetrieval
DbMailFolder[] getFoldersForAutoRetrieval(Connection c, long accountId) throws SQLException
- Throws:
SQLException
-
getFoldersForAutoRetrieval
DbMailFolder[] getFoldersForAutoRetrieval(Connection c, long[] accountIds) throws SQLException
- Throws:
SQLException
-
getFolderChildren
DbMailFolder[] getFolderChildren(Connection c, long parentFolderId) throws SQLException
- Throws:
SQLException
-
getFolderOnRoot
DbMailFolder getFolderOnRoot(Connection c, long accountId) throws SQLException
- Throws:
SQLException
-
getMessage
DbMailMessage getMessage(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getMessageFromFolder
DbMailMessage getMessageFromFolder(Connection c, long folderId, String hash, String mimeId) throws SQLException
- Throws:
SQLException
-
getMessageFromFolder
DbMailMessage getMessageFromFolder(Connection c, long folderId, long uid, long uidValidity) throws SQLException
- Throws:
SQLException
-
getMessageIdsFromFolder
long[] getMessageIdsFromFolder(Connection c, long folderId) throws SQLException
- Throws:
SQLException
-
getMessages
DbMailMessage[] getMessages(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getMessagesFromFolder
DbMailMessage[] getMessagesFromFolder(Connection c, long folderId) throws SQLException
- Throws:
SQLException
-
getPart
DbMailPart getPart(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getParts
DbMailPart[] getParts(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getPartChildren
DbMailPart[] getPartChildren(Connection c, long parentPartId) throws SQLException
- Throws:
SQLException
-
getPartOnRoot
DbMailPart getPartOnRoot(Connection c, long messageId) throws SQLException
- Throws:
SQLException
-
getSpecialFolder
DbMailFolder getSpecialFolder(Connection c, long accountId, DbMailFolder.SpecialType type) throws SQLException
- Throws:
SQLException
-
getSpecialFolders
DbMailFolder[] getSpecialFolders(Connection c, long accountId) throws SQLException
- Throws:
SQLException
-
getSpecialFolders
DbMailFolder[] getSpecialFolders(Connection c, long accountId, DbMailFolder.SpecialType[] types) throws SQLException
- Throws:
SQLException
-
getUnseenMessagesCount
Map<Long,Integer> getUnseenMessagesCount(Connection c) throws SQLException
- Throws:
SQLException
-
getUnseenMessagesCount
Map<Long,Integer> getUnseenMessagesCount(Connection c, long[] folderIds) throws SQLException
- Throws:
SQLException
-
getUnseenMessagesCount
int getUnseenMessagesCount(Connection c, long folderId) throws SQLException
- Throws:
SQLException
-
loadAddresses
void loadAddresses(Connection c, DbMailMessage message) throws SQLException
- Throws:
SQLException
-
loadAddresses
void loadAddresses(Connection c, DbMailMessage[] messages) throws SQLException
- Throws:
SQLException
-
loadFolderChildren
void loadFolderChildren(Connection c, DbMailFolder folder, boolean recursive) throws SQLException
- Throws:
SQLException
-
loadFolderParents
void loadFolderParents(Connection c, DbMailFolder folder, boolean recursive) throws SQLException
- Throws:
SQLException
-
loadPartChildren
void loadPartChildren(Connection c, DbMailPart part, boolean recursive) throws SQLException
- Throws:
SQLException
-
loadPartHeaders
void loadPartHeaders(Connection c, DbMailPart part) throws SQLException
- Throws:
SQLException
-
loadPartHeaders
void loadPartHeaders(Connection c, DbMailPart part, boolean recursive) throws SQLException
- Throws:
SQLException
-
loadPartHeaders
void loadPartHeaders(Connection c, DbMailPart[] parts) throws SQLException
- Throws:
SQLException
-
removeFolder
void removeFolder(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeFolders
void removeFolders(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
removeMessage
void removeMessage(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeMessages
void removeMessages(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
removePart
void removePart(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeParts
void removeParts(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
saveFolder
void saveFolder(Connection c, DbMailFolder folder) throws SQLException
- Throws:
SQLException
-
saveMessage
void saveMessage(Connection c, DbMailMessage message) throws SQLException
- Throws:
SQLException
-
savePart
void savePart(Connection c, DbMailPart part, boolean recursive) throws SQLException, IOException
- Throws:
SQLException
IOException
-
setMessageAnswered
void setMessageAnswered(Connection c, long messageId, boolean answered) throws SQLException
- Throws:
SQLException
-
setMessageArchived
void setMessageArchived(Connection c, long messageId, boolean archived) throws SQLException
- Throws:
SQLException
-
setMessageForwarded
void setMessageForwarded(Connection c, long messageId, boolean forwarded) throws SQLException
- Throws:
SQLException
-
setMessageMdn
void setMessageMdn(Connection c, long messageId, DbMailMessage.MdnStatus mdnStatus) throws SQLException
- Throws:
SQLException
-
setMessageSeen
void setMessageSeen(Connection c, long messageId, boolean seen) throws SQLException
- Throws:
SQLException
-
setMessagesAnswered
void setMessagesAnswered(Connection c, long[] messageIds, boolean answered) throws SQLException
- Throws:
SQLException
-
setMessagesArchived
void setMessagesArchived(Connection c, long[] messageIds, boolean archived) throws SQLException
- Throws:
SQLException
-
setMessagesForwarded
void setMessagesForwarded(Connection c, long[] messageIds, boolean forwarded) throws SQLException
- Throws:
SQLException
-
setMessagesMdn
void setMessagesMdn(Connection c, long[] messageIds, DbMailMessage.MdnStatus mdnStatus) throws SQLException
- Throws:
SQLException
-
setMessagesSeen
void setMessagesSeen(Connection c, long[] messageIds, boolean seen) throws SQLException
- Throws:
SQLException
-
-