public class ConversationStore extends AbstractItemValueStore<InternalConversation>
AbstractItemValueStore.ItemV<T>
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
datasource
Constructor and Description |
---|
ConversationStore(javax.sql.DataSource pool,
Container container) |
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractItemValueStore.ItemV<InternalConversation>> |
byFolder(long folderId) |
AbstractItemValueStore.ItemV<InternalConversation> |
byMessage(long folderId,
long itemId) |
void |
create(Item item,
InternalConversation conversation) |
void |
delete(Item item) |
void |
deleteAll() |
void |
deleteMessagesInFolder(long folderId) |
InternalConversation |
get(Item item) |
java.util.List<InternalConversation> |
getMultiple(java.util.List<Item> items) |
void |
update(Item item,
InternalConversation conversation) |
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 ConversationStore(javax.sql.DataSource pool, Container container)
public void create(Item item, InternalConversation conversation) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, InternalConversation conversation) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public InternalConversation get(Item item) throws java.sql.SQLException
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<AbstractItemValueStore.ItemV<InternalConversation>> byFolder(long folderId) throws java.sql.SQLException
java.sql.SQLException
public AbstractItemValueStore.ItemV<InternalConversation> byMessage(long folderId, long itemId) throws java.sql.SQLException
java.sql.SQLException
public void deleteMessagesInFolder(long folderId) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<InternalConversation> getMultiple(java.util.List<Item> items) throws java.sql.SQLException
getMultiple
in interface IItemValueStore<InternalConversation>
getMultiple
in class AbstractItemValueStore<InternalConversation>
java.sql.SQLException
Copyright © 2023. All Rights Reserved.