Package | Description |
---|---|
be.ac.ulb.infof307.g02.controllers | |
be.ac.ulb.infof307.g02.database | |
be.ac.ulb.infof307.g02.utils |
Modifier and Type | Method and Description |
---|---|
private void |
RecipeController.saveOrOverWriteGroceryListInDb(GroceryList groceryList)
Saves the grocery list to the database.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseConnection |
DatabaseConnectionSingleton.getDatabaseConnection()
Returns the database connection, instantiating it if doesn't exist yet.
|
Constructor and Description |
---|
DatabaseConnection(java.lang.String databasePath)
Establishes a connection to the database at the given path.
|
GroceryListDB()
Class constructor that fetches the connection to the production database.
|
ObjectDB()
Class constructor that fetches the connection to the production database.
|
ProductDB()
Class constructor that fetches the connection to the production database.
|
RecipeDB()
Class constructor that fetches the connection to the production database.
|
ShopDB()
Class constructor that fetches the connection to the production database.
|
UserDB()
Class constructor that fetches the connection to the production database.
|
Modifier and Type | Method and Description |
---|---|
private void |
ArticleImporterFromFile.importData(java.io.File file,
Shop targetShop)
Checks the consistency of a CSV file and import all the records if it is consistent.
|
void |
ArticleImporterFromFile.importFrom(Shop targetShop)
Displays a file chooser to select a CSV file to import and process the importation.
|
private void |
ArticleImporterFromFile.insertToDatabase(java.util.List<Article> articlesToImport,
Shop shop)
Inserts all the articles into the shop, by adding the products and articles in the database
|
static void |
CryptoSingleton.setupCryptoForUser(User user)
Creates a new Crypto instance when user logs in, which fetches all the required key information
|
static void |
CryptoSingleton.updateUserKeys(User oldUser,
User updatedUser)
Regenerates the user's keys, stores the new information and creates a new Crypto instance
with the new keys.
|