public void refreshLocalStore() {
this.goodsFromDatabase.clear();
// Create Object in Appserver from DBServer
try {
for (Integer element : dbserverInterface.getListOfAllArticleIDs()) {
GoodObject goodObject= new GoodObject();
goodObject.setId(element);
goodObject.setName(dbserverInterface.getArticleName(element));
goodObject.setDescription(dbserverInterface.getArticleDescription(element));
goodObject.setAvailable(dbserverInterface.getArticleAvailable(element));
goodObject.setBooked(dbserverInterface.getArticleReserved(element));
goodObject.setPrice(dbserverInterface.getArticlePrice(element));
goodsFromDatabase.put(element, goodObject);
}
} catch (RemoteException e) {
DataStore.logger.error(e.getLocalizedMessage());
}