public class MailboxStore extends AbstractItemValueStore<Mailbox>
AbstractItemValueStore.ItemV<T>
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
datasource
Constructor and Description |
---|
MailboxStore(javax.sql.DataSource pool,
Container container) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allUids() |
void |
create(Item item,
Mailbox value) |
void |
delete(Item item) |
void |
deleteAll() |
void |
deleteEmailByAlias(java.lang.String alias) |
boolean |
emailAlreadyUsed(java.util.Collection<Email> emails) |
boolean |
emailAlreadyUsed(java.lang.Long itemId,
java.util.Collection<Email> emails) |
java.lang.String |
emailSearch(java.lang.String email) |
Mailbox |
get(Item item) |
java.lang.Boolean |
isQuotaGreater(int quotaMax) |
java.util.List<java.lang.String> |
listQuota() |
boolean |
nameAlreadyUsed(java.lang.Long itemId,
Mailbox mailbox) |
java.lang.String |
nameSearch(java.lang.String name) |
java.util.List<java.lang.String> |
routingSearch(Mailbox.Routing routing) |
java.util.List<java.lang.String> |
typeSearch(Mailbox.Type type) |
void |
update(Item item,
Mailbox value) |
getMultiple, 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 MailboxStore(javax.sql.DataSource pool, Container container)
public void create(Item item, Mailbox value) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, Mailbox value) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String emailSearch(java.lang.String email) throws java.sql.SQLException
q
- java.sql.SQLException
public java.util.List<java.lang.String> typeSearch(Mailbox.Type type) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String nameSearch(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public boolean nameAlreadyUsed(java.lang.Long itemId, Mailbox mailbox) throws java.sql.SQLException
java.sql.SQLException
public boolean emailAlreadyUsed(java.lang.Long itemId, java.util.Collection<Email> emails) throws java.sql.SQLException
java.sql.SQLException
public boolean emailAlreadyUsed(java.util.Collection<Email> emails) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> listQuota() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> routingSearch(Mailbox.Routing routing) throws java.sql.SQLException
java.sql.SQLException
public void deleteEmailByAlias(java.lang.String alias) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> allUids() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Boolean isQuotaGreater(int quotaMax) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.