Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addBasket(UUID, String, int) - Method in class com.shr4pnel.db.StockRW
-
Add an item to the BasketTable
- addOrder(UUID) - Method in class com.shr4pnel.db.StockRW
-
Adds a new order to the OrderTable.
- addStock(String, int) - Method in class com.shr4pnel.db.StockRW
-
Adds stock (Re-stocks) to the store.
B
- buyStock(HttpEntity<String>) - Method in class com.shr4pnel.web.WebApplication
-
Adds the specified specified amount of stock to the database
- buyStockCustomer(HttpEntity<String>) - Method in class com.shr4pnel.web.WebApplication
-
Removes stock from the StockTable, and places it into the OrderTable and BasketTable respectively
- BuyStockHelper - Class in com.shr4pnel.schemas
-
A schema, used to serialize JSON.
- BuyStockHelper(String, int) - Constructor for class com.shr4pnel.schemas.BuyStockHelper
-
Constructor for BuyStockHelper.
C
- CI - module CI
-
Main module of project
- com.shr4pnel.db - package com.shr4pnel.db
- com.shr4pnel.init - package com.shr4pnel.init
- com.shr4pnel.middleware - package com.shr4pnel.middleware
- com.shr4pnel.schemas - package com.shr4pnel.schemas
- com.shr4pnel.web - package com.shr4pnel.web
D
- DBAccess - Class in com.shr4pnel.db
-
Base class for all database accessors.
- DBAccess() - Constructor for class com.shr4pnel.db.DBAccess
- DBAccessFactory - Class in com.shr4pnel.db
-
DBAccessFactory class.
- DBAccessFactory() - Constructor for class com.shr4pnel.db.DBAccessFactory
-
No-arg constructor.
- DBAccessFactory(boolean) - Constructor for class com.shr4pnel.db.DBAccessFactory
-
Access a new instance of Derby, with the option to create a new database.
F
- finishPacking(String) - Method in class com.shr4pnel.web.WebApplication
-
Delete orders that are sent to be packed in the packing frontend client
G
- getAllOrdersToPack() - Method in class com.shr4pnel.db.StockR
-
Get all orders in the OrderTable
- getAllStock() - Method in class com.shr4pnel.db.StockR
-
Used to access the contents of the StockTable
- GetAllStockHelper - Class in com.shr4pnel.schemas
-
A schema, used to serialize and deserialize JSON when querying the StockTable. used in the /api/stock endpoint call.
- GetAllStockHelper(String, long, long, String) - Constructor for class com.shr4pnel.schemas.GetAllStockHelper
-
Constructor for GetAllStockHelper.
- getConnectionObject() - Method in class com.shr4pnel.db.StockR
-
Used to access the current connection to the database
- getDate() - Method in class com.shr4pnel.schemas.PackingHelper
-
Getter for the field
date. - getName() - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Getter for the field
name. - getNewDBAccess() - Method in class com.shr4pnel.db.DBAccessFactory
-
Used to create, or get a handle to the current database instance.
- getOrdersToPack() - Method in class com.shr4pnel.web.WebApplication
-
Fetch all items in OrderTable, then all items in BasketTable with a matching foreign key to aggregate the baskets correctly
- getpNum() - Method in class com.shr4pnel.schemas.BuyStockHelper
-
Getter for the field
pNum. - getpNum() - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Getter for the field
pNum. - getpNum() - Method in class com.shr4pnel.schemas.PackingHelper
-
Getter for the field
pNum. - getPrice() - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Getter for the field
price. - getQuantity() - Method in class com.shr4pnel.schemas.BuyStockHelper
-
Getter for the field
quantity. - getQuantity() - Method in class com.shr4pnel.schemas.PackingHelper
-
Getter for the field
quantity. - getStock() - Method in class com.shr4pnel.web.WebApplication
-
Get the current amount of stock in the database, and send it to the client.
- getStockLevel() - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Getter for the field
stockLevel. - getUUID() - Method in class com.shr4pnel.schemas.PackingHelper
-
getUUID.
L
- LocalMiddleFactory - Class in com.shr4pnel.middleware
-
A local middlefactory, used to create accesses to the stock readers and writers.
- LocalMiddleFactory() - Constructor for class com.shr4pnel.middleware.LocalMiddleFactory
M
- main(String[]) - Static method in class com.shr4pnel.init.Setup
-
main.
- main(String[]) - Static method in class com.shr4pnel.web.WebApplication
-
main.
- makeStockReader() - Method in class com.shr4pnel.middleware.LocalMiddleFactory
-
Return an object to access the database for read only access.
- makeStockReadWriter() - Method in class com.shr4pnel.middleware.LocalMiddleFactory
-
Return an object to access the database for read/write access.
P
- PackingHelper - Class in com.shr4pnel.schemas
-
A schema, used to serialize JSON by the API. used in the /api/staff/pack endpoint.
- PackingHelper(Date, String, int, String) - Constructor for class com.shr4pnel.schemas.PackingHelper
-
Constructor for PackingHelper.
- packOrder(String) - Method in class com.shr4pnel.db.StockRW
-
Deletes an order, and all associated basket items from the database to simulate the order being packed.
- pNum - Variable in class com.shr4pnel.schemas.BuyStockHelper
Q
- quantity - Variable in class com.shr4pnel.schemas.BuyStockHelper
R
- root() - Method in class com.shr4pnel.web.WebApplication
-
Hosts the bundled react.js clients.
S
- setDate(Date) - Method in class com.shr4pnel.schemas.PackingHelper
-
Setter for the field
date. - setName(String) - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Setter for the field
name. - setpNum(String) - Method in class com.shr4pnel.schemas.BuyStockHelper
-
Setter for the field
pNum. - setpNum(String) - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Setter for the field
pNum. - setpNum(String) - Method in class com.shr4pnel.schemas.PackingHelper
-
Setter for the field
pNum. - setPrice(long) - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Setter for the field
price. - setQuantity(int) - Method in class com.shr4pnel.schemas.BuyStockHelper
-
Setter for the field
quantity. - setQuantity(int) - Method in class com.shr4pnel.schemas.PackingHelper
-
Setter for the field
quantity. - setStockLevel(long) - Method in class com.shr4pnel.schemas.GetAllStockHelper
-
Setter for the field
stockLevel. - Setup - Class in com.shr4pnel.init
-
Populates the database
- Setup() - Constructor for class com.shr4pnel.init.Setup
- setUUID(String) - Method in class com.shr4pnel.schemas.PackingHelper
-
setUUID.
- StockException - Exception Class in com.shr4pnel.middleware
-
Exception throw if there is an error in accessing the stock list
- StockException(String) - Constructor for exception class com.shr4pnel.middleware.StockException
-
Constructor for StockException.
- StockR - Class in com.shr4pnel.db
-
Implements read only access to the stock database.
- StockR() - Constructor for class com.shr4pnel.db.StockR
-
Connects to database Uses a factory method to help set up the connection
- StockRW - Class in com.shr4pnel.db
-
Implements read/write access to the stock database.
- StockRW() - Constructor for class com.shr4pnel.db.StockRW
-
Constructor for StockRW.
U
- urlOfDatabase() - Method in class com.shr4pnel.db.DBAccess
-
Returns hard-coded link to Derby database
W
- WebApplication - Class in com.shr4pnel.web
-
The entry point for the project.
- WebApplication() - Constructor for class com.shr4pnel.web.WebApplication
All Classes and Interfaces|All Packages|Serialized Form