Index
All Classes and Interfaces|All Packages
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
C
- CI - module CI
-
Main module of project
- com.shr4pnel.db - package com.shr4pnel.db
- 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
- getConnectionObject() - Method in class com.shr4pnel.db.StockR
-
Used to access the current connection to the database
- 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
- getStock() - Method in class com.shr4pnel.web.WebApplication
-
Get the current amount of stock in the database, and send it to the client.
M
- main(String[]) - Static method in class com.shr4pnel.web.WebApplication
-
main.
P
- 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.
R
- root() - Method in class com.shr4pnel.web.WebApplication
-
Hosts the bundled react.js clients.
S
- 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