public class ItemStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>| Modifier and Type | Field and Description |
|---|---|
static Columns |
COLUMNS |
protected Container |
container |
static JdbcAbstractStore.EntityPopulator<Item> |
ITEM_POPULATOR |
static java.util.List<JdbcAbstractStore.EntityPopulator<Item>> |
ITEM_POPULATORS |
datasource| Constructor and Description |
|---|
ItemStore(javax.sql.DataSource pool,
Container container,
SecurityContext contextHolder) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Item> |
all() |
java.util.List<java.lang.Long> |
allItemIds() |
java.util.List<java.lang.String> |
allItemUids() |
long |
count(ItemFlagFilter filter) |
Item |
create(Item item) |
Item |
createWithUidNull(Item item) |
void |
delete(Item item) |
void |
deleteAll() |
java.util.Optional<Count> |
fastpathCount(java.lang.String columnName) |
java.util.List<Item> |
filtered(ItemFlagFilter filter) |
java.util.List<Item> |
filtered(ItemFlagFilter filter,
java.lang.Integer offset,
java.lang.Integer limit) |
Item |
get(java.lang.String uid) |
Item |
getByExtId(java.lang.String extId) |
Item |
getById(long id) |
Item |
getForUpdate(long id) |
Item |
getForUpdate(java.lang.String uid) |
int |
getItemCount() |
java.util.List<Item> |
getMultiple(java.util.List<java.lang.String> uids) |
java.util.List<Item> |
getMultipleById(java.util.List<java.lang.Long> uids) |
long |
getVersion() |
Item |
setExtId(java.lang.String uid,
java.lang.String extId) |
Item |
touch(java.lang.String uid) |
Item |
update(Item item,
java.lang.String displayName,
java.util.Collection<ItemFlag> flags) |
Item |
update(long id,
java.lang.String displayName,
java.util.Collection<ItemFlag> flags) |
Item |
update(java.lang.String uid,
java.lang.String displayName) |
Item |
update(java.lang.String uid,
java.lang.String displayName,
java.util.Collection<ItemFlag> flags) |
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, updatepublic static final Columns COLUMNS
protected final Container container
public static final JdbcAbstractStore.EntityPopulator<Item> ITEM_POPULATOR
public static final java.util.List<JdbcAbstractStore.EntityPopulator<Item>> ITEM_POPULATORS
public ItemStore(javax.sql.DataSource pool,
Container container,
SecurityContext contextHolder)
public long count(ItemFlagFilter filter) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item createWithUidNull(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item update(java.lang.String uid, java.lang.String displayName) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item setExtId(java.lang.String uid, java.lang.String extId) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item update(java.lang.String uid, java.lang.String displayName, java.util.Collection<ItemFlag> flags) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item update(Item item, java.lang.String displayName, java.util.Collection<ItemFlag> flags) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item update(long id, java.lang.String displayName, java.util.Collection<ItemFlag> flags) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item touch(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item get(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item getByExtId(java.lang.String extId) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item getById(long id) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Item> getMultiple(java.util.List<java.lang.String> uids) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Item> getMultipleById(java.util.List<java.lang.Long> uids) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Item> all() throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Item> filtered(ItemFlagFilter filter) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<Item> filtered(ItemFlagFilter filter, java.lang.Integer offset, java.lang.Integer limit) throws java.sql.SQLException
java.sql.SQLExceptionpublic int getItemCount()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.Optional<Count> fastpathCount(java.lang.String columnName)
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLExceptionpublic void deleteAll()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.String> allItemUids()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.util.List<java.lang.Long> allItemIds()
throws java.sql.SQLException
java.sql.SQLExceptionpublic Item getForUpdate(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLExceptionpublic Item getForUpdate(long id) throws java.sql.SQLException
java.sql.SQLExceptionpublic long getVersion()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2023. All Rights Reserved.