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