Interface ItemStoreSession
public interface ItemStoreSession
Operations supported under an
ItemStore session, ultimately
these are pushed back to the DB just bypassing the Open/Close
connection aspects until done.-
Method Summary
Modifier and TypeMethodDescriptionbooleanRemove providedItemgetAll()Fetch all recordsFetchItemmatching IdgetItemsByState(String state) FetchItemcollection matching provided stategetPayloadById(String id) Fetch payload ofItemby its IdbooleanimportItems(List<Item> items) Import anItemcollectionbooleanInsert providedItem
-
Method Details
-
insert
Insert providedItem- Parameters:
item-- Returns:
Item- Throws:
ItemStoreCheckedException
-
importItems
Import anItemcollection- Parameters:
items-- Returns:
- List-
Item - Throws:
ItemStoreCheckedException
-
getById
FetchItemmatching Id- Parameters:
id-- Returns:
Item- Throws:
ItemStoreCheckedException
-
delete
Remove providedItem- Parameters:
item-- Returns:
- boolean
- Throws:
ItemStoreCheckedException
-
getAll
Fetch all records- Returns:
- List-
Item - Throws:
ItemStoreCheckedException
-
getItemsByState
FetchItemcollection matching provided state- Parameters:
state-- Returns:
- List-
Item - Throws:
ItemStoreCheckedException
-
getPayloadById
Fetch payload ofItemby its Id- Parameters:
id-- Returns:
- String
- Throws:
ItemStoreCheckedException
-