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) |
void |
create(Item item,
MailboxRecord value) |
void |
delete(Item item) |
void |
deleteAll() |
MailboxRecord |
get(Item item) |
java.util.List<MailboxRecordItemUri> |
getBodyGuidReferences(java.lang.String guid) |
java.util.List<MailboxRecordStore.MailboxRecordItemV> |
getExpiredItems(int days) |
java.util.Set<java.lang.String> |
getImapUidReferences(long uid,
java.lang.String owner) |
java.util.List<MailboxRecord> |
getMultiple(java.util.List<Item> items) |
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) |
java.util.List<ImapBinding> |
unreadItems() |
void |
update(Item item,
MailboxRecord value) |
join
batchInsert, 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, update
public 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.SQLException
public void update(Item item, MailboxRecord value) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public MailboxRecord get(Item item) throws java.sql.SQLException
java.sql.SQLException
public 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.SQLException
public java.util.List<MailboxRecordStore.MailboxRecordItemV> getExpiredItems(int days) throws java.sql.SQLException
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<RecordID> identifiers(long... uidArrays) throws java.sql.SQLException
RecordID
from an array of imap uids.uidArrays
- java.sql.SQLException
public java.util.List<ImapBinding> bindings(java.util.List<java.lang.Long> itemIds) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<ImapBinding> havingBodyVersionLowerThan(int version) throws java.sql.SQLException
ImapBinding
for which the corresponding
MessageBody
has a MessageBody.bodyVersion
lower than
version
java.sql.SQLException
public java.util.List<ImapBinding> recentItems(java.util.Date d) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<ImapBinding> unreadItems() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<MailboxRecordItemUri> getBodyGuidReferences(java.lang.String guid) throws java.sql.SQLException
java.sql.SQLException
public java.util.Set<java.lang.String> getImapUidReferences(long uid, java.lang.String owner) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.