public class ItemStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<Res>, 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() |
java.util.List<java.lang.String> |
allItemUidsOrderedByDisplayname() |
Item |
create(Item item) |
Item |
createWithUidNull(Item item) |
void |
delete(Item item) |
void |
deleteAll() |
Item |
get(java.lang.String uid) |
Item |
getByExtId(java.lang.String extId) |
Item |
getById(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(java.lang.String uid,
java.lang.String displayName) |
batchInsert, batchInsert, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, inTransaction, lastInsertId, multiRowInsert, select, select, select, staticInTransaction, 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 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 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 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 java.util.List<java.lang.String> allItemUidsOrderedByDisplayname() throws java.sql.SQLException
java.sql.SQLException
public Item getForUpdate(java.lang.String uid) throws java.sql.SQLException
java.sql.SQLException
public long getVersion() throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.