public class HSqlDbMailMessageHandler extends DbMailMessageHandlerImpl
Constructor and Description |
---|
HSqlDbMailMessageHandler() |
getArchivedMessages, getFolder, getFolders, getFoldersForAutoRetrieval, getMessage, getPart, getSpecialFolder, getSpecialFolders, getUnseenMessagesCount, getUnseenMessagesCount, loadAddresses, loadFolderChildren, loadFolderParents, loadPartChildren, loadPartHeaders, loadPartHeaders, removeFolder, removeMessage, removePart, setMessageAnswered, setMessageArchived, setMessageForwarded, setMessageMdn, setMessageSeen
public static final String PROC_REMOVE_ADDRESSES
public static final String PROC_REMOVE_FOLDERS
public static final String PROC_REMOVE_HEADERS
public static final String PROC_REMOVE_MESSAGES
public static final String PROC_REMOVE_PARTS
public static final String PROC_SAVE_ADDRESSES
public static final String PROC_SAVE_FOLDERS
public static final String PROC_SAVE_HEADERS
public static final String PROC_SAVE_MESSAGES
public static final String PROC_SAVE_PARTS
public static final String PROC_SET_MESSAGES_ANSWERED
public static final String PROC_SET_MESSAGES_ARCHIVED
public static final String PROC_SET_MESSAGES_FORWARDED
public static final String PROC_SET_MESSAGES_MDN
public static final String PROC_SET_MESSAGES_SEEN
public static final String VIEW_FOLDERS
public static final String VIEW_MESSAGES
public static final String VIEW_PARTS
public static final String VIEW_PARTS_CONTENT
public static final String VIEW_HEADERS
public static final String VIEW_ADDRESSES
public static final String TABLE_FOLDERS
public static final String FIELD_FOLDER_ID
public static final String FIELD_FOLDER_PARENT_ID
public static final String FIELD_FOLDER_NAME
public static final String FIELD_FOLDER_HOLDS_MESSAGES
public static final String FIELD_FOLDER_HOLDS_FOLDERS
public static final String FIELD_FOLDER_AUTO_RETRIEVAL
public static final String FIELD_FOLDER_SPECIAL_TYPE
public static final String TABLE_MESSAGES
public static final String FIELD_MESSAGE_ID
public static final String FIELD_MESSAGE_SUBJECT
public static final String FIELD_MESSAGE_FROM
public static final String FIELD_MESSAGE_TO
public static final String FIELD_MESSAGE_SIZE
public static final String FIELD_MESSAGE_UID
public static final String FIELD_MESSAGE_UID_VALIDITY
public static final String FIELD_MESSAGE_MIME_ID
public static final String FIELD_MESSAGE_HASH
public static final String FIELD_MESSAGE_IN_REPLY_TO
public static final String FIELD_MESSAGE_IS_ANSWERED
public static final String FIELD_MESSAGE_IS_ARCHIVED
public static final String FIELD_MESSAGE_IS_DOWNLOADED
public static final String FIELD_MESSAGE_IS_DRAFT
public static final String FIELD_MESSAGE_IS_FLAGGED
public static final String FIELD_MESSAGE_IS_FORWARDED
public static final String FIELD_MESSAGE_IS_SEEN
public static final String FIELD_MESSAGE_IS_RECEIVED
public static final String FIELD_MESSAGE_HAS_ATTACHMENTS
public static final String FIELD_MESSAGE_MDN_STATUS
public static final String FIELD_MESSAGE_RECEIVED_AT
public static final String FIELD_MESSAGE_SENT_AT
public static final String TABLE_PARTS
public static final String FIELD_PART_ID
public static final String FIELD_PART_PARENT_ID
public static final String FIELD_PART_TYPE
public static final String FIELD_PART_DESCRIPTION
public static final String FIELD_PART_DISPOSITION
public static final String FIELD_PART_TEXT
public static final String FIELD_PART_FILE_NAME
public static final String FIELD_PART_FILE_SIZE
public static final String FIELD_PART_FILE_CONTENT
public static final String TABLE_HEADERS
public static final String FIELD_HEADER_KEY
public static final String FIELD_HEADER_VALUE
public static final String TABLE_ADDRESSES
public static final String FIELD_ADDRESS_TYPE
public static final String FIELD_ADDRESS_VALUE
public static final String FIELD_ADDRESS_PERSON
public boolean downloadPart(Connection c, long partId, OutputStream output) throws SQLException, IOException
downloadPart
in interface DbMailMessageHandler
downloadPart
in class DbMailMessageHandlerImpl
SQLException
IOException
public DbMailMessage[] getArchivedMessages(Connection c, long[] folderIds) throws SQLException
getArchivedMessages
in interface DbMailMessageHandler
getArchivedMessages
in class DbMailMessageHandlerImpl
SQLException
public DbMailFolder[] getFolders(Connection c, long[] ids) throws SQLException
getFolders
in interface DbMailMessageHandler
getFolders
in class DbMailMessageHandlerImpl
SQLException
public DbMailFolder[] getFoldersForAutoRetrieval(Connection c, long[] accountIds) throws SQLException
getFoldersForAutoRetrieval
in interface DbMailMessageHandler
getFoldersForAutoRetrieval
in class DbMailMessageHandlerImpl
SQLException
public DbMailFolder[] getFolderChildren(Connection c, long parentFolderId) throws SQLException
getFolderChildren
in interface DbMailMessageHandler
getFolderChildren
in class DbMailMessageHandlerImpl
SQLException
public DbMailFolder getFolderOnRoot(Connection c, long accountId) throws SQLException
getFolderOnRoot
in interface DbMailMessageHandler
getFolderOnRoot
in class DbMailMessageHandlerImpl
SQLException
public DbMailMessage getMessageFromFolder(Connection c, long folderId, String hash, String mimeId) throws SQLException
getMessageFromFolder
in interface DbMailMessageHandler
getMessageFromFolder
in class DbMailMessageHandlerImpl
SQLException
public DbMailMessage getMessageFromFolder(Connection c, long folderId, long uid, long uidValidity) throws SQLException
getMessageFromFolder
in interface DbMailMessageHandler
getMessageFromFolder
in class DbMailMessageHandlerImpl
SQLException
public DbMailMessage[] getMessages(Connection c, long[] ids) throws SQLException
getMessages
in interface DbMailMessageHandler
getMessages
in class DbMailMessageHandlerImpl
SQLException
public long[] getMessageIdsFromFolder(Connection c, long folderId) throws SQLException
getMessageIdsFromFolder
in interface DbMailMessageHandler
getMessageIdsFromFolder
in class DbMailMessageHandlerImpl
SQLException
public DbMailMessage[] getMessagesFromFolder(Connection c, long folderId) throws SQLException
getMessagesFromFolder
in interface DbMailMessageHandler
getMessagesFromFolder
in class DbMailMessageHandlerImpl
SQLException
public DbMailPart[] getParts(Connection c, long[] ids) throws SQLException
getParts
in interface DbMailMessageHandler
getParts
in class DbMailMessageHandlerImpl
SQLException
public DbMailPart[] getPartChildren(Connection c, long parentPartId) throws SQLException
getPartChildren
in interface DbMailMessageHandler
getPartChildren
in class DbMailMessageHandlerImpl
SQLException
public DbMailPart getPartOnRoot(Connection c, long messageId) throws SQLException
getPartOnRoot
in interface DbMailMessageHandler
getPartOnRoot
in class DbMailMessageHandlerImpl
SQLException
public DbMailFolder[] getSpecialFolders(Connection c, long accountId, DbMailFolder.SpecialType[] types) throws SQLException
getSpecialFolders
in interface DbMailMessageHandler
getSpecialFolders
in class DbMailMessageHandlerImpl
SQLException
public Map<Long,Integer> getUnseenMessagesCount(Connection c, long[] folderIds) throws SQLException
getUnseenMessagesCount
in interface DbMailMessageHandler
getUnseenMessagesCount
in class DbMailMessageHandlerImpl
SQLException
public void loadAddresses(Connection c, DbMailMessage[] messages) throws SQLException
loadAddresses
in interface DbMailMessageHandler
loadAddresses
in class DbMailMessageHandlerImpl
SQLException
public void loadPartHeaders(Connection c, DbMailPart[] parts) throws SQLException
loadPartHeaders
in interface DbMailMessageHandler
loadPartHeaders
in class DbMailMessageHandlerImpl
SQLException
public void removeFolders(Connection c, long[] ids) throws SQLException
removeFolders
in interface DbMailMessageHandler
removeFolders
in class DbMailMessageHandlerImpl
SQLException
public void removeMessages(Connection c, long[] ids) throws SQLException
removeMessages
in interface DbMailMessageHandler
removeMessages
in class DbMailMessageHandlerImpl
SQLException
public void removeParts(Connection c, long[] ids) throws SQLException
removeParts
in interface DbMailMessageHandler
removeParts
in class DbMailMessageHandlerImpl
SQLException
public void saveFolder(Connection c, DbMailFolder folder) throws SQLException
saveFolder
in interface DbMailMessageHandler
saveFolder
in class DbMailMessageHandlerImpl
SQLException
public void saveMessage(Connection c, DbMailMessage message) throws SQLException
saveMessage
in interface DbMailMessageHandler
saveMessage
in class DbMailMessageHandlerImpl
SQLException
public void savePart(Connection c, DbMailPart part, boolean recursive) throws SQLException, IOException
savePart
in interface DbMailMessageHandler
savePart
in class DbMailMessageHandlerImpl
SQLException
IOException
public void setMessagesAnswered(Connection c, long[] messageIds, boolean answered) throws SQLException
setMessagesAnswered
in interface DbMailMessageHandler
setMessagesAnswered
in class DbMailMessageHandlerImpl
SQLException
public void setMessagesArchived(Connection c, long[] messageIds, boolean archived) throws SQLException
setMessagesArchived
in interface DbMailMessageHandler
setMessagesArchived
in class DbMailMessageHandlerImpl
SQLException
public void setMessagesForwarded(Connection c, long[] messageIds, boolean forwarded) throws SQLException
setMessagesForwarded
in interface DbMailMessageHandler
setMessagesForwarded
in class DbMailMessageHandlerImpl
SQLException
public void setMessagesMdn(Connection c, long[] messageIds, DbMailMessage.MdnStatus mdnStatus) throws SQLException
setMessagesMdn
in interface DbMailMessageHandler
setMessagesMdn
in class DbMailMessageHandlerImpl
SQLException
public void setMessagesSeen(Connection c, long[] messageIds, boolean seen) throws SQLException
setMessagesSeen
in interface DbMailMessageHandler
setMessagesSeen
in class DbMailMessageHandlerImpl
SQLException
Copyright © 2015 OpenEstate. All rights reserved.