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) |
ItemStore(javax.sql.DataSource pool,
Container container,
SecurityContext contextHolder,
java.lang.String itemType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Item> |
all() |
java.util.List<java.lang.String> |
allItemUids() |
int |
count(ItemFlagFilter filter) |
Item |
create(Item item) |
Item |
createWithUidNull(Item item) |
void |
delete(Item item) |
void |
deleteAll() |
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(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, update
public 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)
@Deprecated public ItemStore(javax.sql.DataSource pool, Container container, SecurityContext contextHolder, java.lang.String itemType)
public int count(ItemFlagFilter filter) throws java.sql.SQLException
java.sql.SQLException
public Item createWithUidNull(Item item) throws java.sql.SQLException
java.sql.SQLException
public Item update(java.lang.String uid, java.lang.String displayName) throws java.sql.SQLException
java.sql.SQLException
public Item setExtId(java.lang.String uid, java.lang.String extId) throws java.sql.SQLException
java.sql.SQLException
public Item update(java.lang.String uid, java.lang.String displayName, java.util.Collection<ItemFlag> flags) throws java.sql.SQLException
java.sql.SQLException
public Item update(long id, java.lang.String displayName, java.util.Collection<ItemFlag> flags) throws java.sql.SQLException
java.sql.SQLException
public Item touch(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLException
public Item get(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLException
public Item getByExtId(java.lang.String extId) throws java.sql.SQLException
java.sql.SQLException
public Item getById(long id) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Item> getMultiple(java.util.List<java.lang.String> uids) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Item> getMultipleById(java.util.List<java.lang.Long> uids) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Item> all() throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Item> filtered(ItemFlagFilter filter) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<Item> filtered(ItemFlagFilter filter, java.lang.Integer offset, java.lang.Integer limit) throws java.sql.SQLException
java.sql.SQLException
public int getItemCount() 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.util.List<java.lang.String> allItemUids() throws java.sql.SQLException
java.sql.SQLException
public Item getForUpdate(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLException
public Item getForUpdate(long id) throws java.sql.SQLException
java.sql.SQLException
public long getVersion() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.