public class MailboxRecordStore extends AbstractItemValueStore<MailboxRecord>
| Modifier and Type | Class and Description |
|---|---|
static class |
MailboxRecordStore.MailboxRecordItemV |
AbstractItemValueStore.ItemV<T>JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>datasource| Constructor and Description |
|---|
MailboxRecordStore(javax.sql.DataSource pool) |
MailboxRecordStore(javax.sql.DataSource pool,
Container container) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ImapBinding> |
bindings(java.util.List<java.lang.Long> itemIds) |
Count |
count(ItemFlagFilter itemFilter) |
void |
create(Item item,
MailboxRecord value) |
void |
delete(Item item) |
void |
deleteAll() |
void |
deleteVirtualConversations(java.lang.Long folder) |
java.util.Optional<Count> |
fastpathCount(java.lang.String columnName) |
MailboxRecord |
get(Item item) |
java.util.List<InternalConversation.InternalMessageRef> |
getAllItemsByConversation(java.lang.Long conversationId,
java.lang.String owner) |
java.util.List<MailboxRecordItemUri> |
getBodyGuidReferences(java.lang.String guid) |
java.lang.Long |
getByImapUid(long imapUid) |
java.util.List<java.lang.Long> |
getConversationIds(ItemFlagFilter filter) |
java.util.List<java.lang.Long> |
getConversationIds(java.util.Set<java.lang.Long> folderIds) |
java.util.List<MailboxRecordStore.MailboxRecordItemV> |
getExpiredItems(int days) |
java.util.Set<java.lang.String> |
getImapUidReferences(long uid,
java.lang.String owner) |
java.util.List<java.lang.Long> |
getItemsByConversations(java.util.List<java.lang.String> conversationUids) |
java.util.List<MailboxRecord> |
getMultiple(java.util.List<Item> items) |
java.util.Set<java.lang.Long> |
getRecordConversationIds(java.lang.Long folder) |
java.util.List<ImapBinding> |
havingBodyVersionLowerThan(int version) |
java.util.List<RecordID> |
identifiers(long... uidArrays)
Retrieve a collection of
RecordID from an array of imap uids. |
java.util.List<ImapBinding> |
recentItems(java.util.Date d) |
java.util.List<java.lang.Long> |
sortedIds(SortDescriptor sorted) |
void |
triggerConversationUpdate(java.lang.Long folder,
java.lang.Long conversation) |
java.util.List<ImapBinding> |
unreadItems() |
void |
update(Item item,
MailboxRecord value) |
joinbatchInsert, batchInsert, delete, delete, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, lastInsertId, select, select, select, unique, unique, unique, unique, unique, update, update, update, update, updatepublic MailboxRecordStore(javax.sql.DataSource pool,
Container container)
public MailboxRecordStore(javax.sql.DataSource pool)
public void create(Item item, MailboxRecord value) throws java.sql.SQLException
java.sql.SQLExceptionpublic void update(Item item, MailboxRecord value) throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic MailboxRecord get(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<MailboxRecord> getMultiple(java.util.List<Item> items) throws java.sql.SQLException
getMultiple in interface IItemValueStore<MailboxRecord>getMultiple in class AbstractItemValueStore<MailboxRecord>java.sql.SQLExceptionpublic java.util.List<MailboxRecordStore.MailboxRecordItemV> getExpiredItems(int days) throws java.sql.SQLException
java.sql.SQLExceptionpublic void deleteAll()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<RecordID> identifiers(long... uidArrays) throws java.sql.SQLException
RecordID from an array of imap uids.uidArrays - java.sql.SQLExceptionpublic java.util.List<ImapBinding> bindings(java.util.List<java.lang.Long> itemIds) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<ImapBinding> havingBodyVersionLowerThan(int version) throws java.sql.SQLException
ImapBinding for which the corresponding
MessageBody has a MessageBody.bodyVersion lower than
versionjava.sql.SQLExceptionpublic java.util.List<ImapBinding> recentItems(java.util.Date d) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<ImapBinding> unreadItems() throws java.sql.SQLException
java.sql.SQLExceptionpublic Count count(ItemFlagFilter itemFilter) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Optional<Count> fastpathCount(java.lang.String columnName)
public java.util.List<MailboxRecordItemUri> getBodyGuidReferences(java.lang.String guid) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Set<java.lang.String> getImapUidReferences(long uid,
java.lang.String owner)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.Long> getConversationIds(ItemFlagFilter filter) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.Long> getConversationIds(java.util.Set<java.lang.Long> folderIds)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.Long> getItemsByConversations(java.util.List<java.lang.String> conversationUids)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<InternalConversation.InternalMessageRef> getAllItemsByConversation(java.lang.Long conversationId, java.lang.String owner) throws java.sql.SQLException
java.sql.SQLExceptionpublic void deleteVirtualConversations(java.lang.Long folder)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Set<java.lang.Long> getRecordConversationIds(java.lang.Long folder)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void triggerConversationUpdate(java.lang.Long folder,
java.lang.Long conversation)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Long getByImapUid(long imapUid)
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2024. All Rights Reserved.