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