private void loadMetaData() { try { MySQLConnector mySQLConnector = new MySQLConnector(); StockDataTransferObject record = mySQLConnector.getMasterDataForSymbol(symbol); if (record == null) { throw new Exception("Es konnten keine Stammdaten für dieses Symbol in Ihrer Datenbank gefunden werden. Bitte laden Sie diese zunächst nach und versuchen es dann erneut."); } urlSuffix = record.suffix_onvista; isin = record.isin; wkn = record.wkn; name = record.name; sector = record.sector; } catch (Exception e) { ExceptionHandler.handle(e); urlSuffix = ""; isin = ""; wkn = ""; name = ""; sector = ""; } }
public List <StockDataTransferObject> getLocallySavedStockData(string stockSymbol, DateTime dateFrom, DateTime dateTo) { MySQLConnector mySQLConnector = new MySQLConnector(); return(mySQLConnector.getHistoricalStockData(stockSymbol, dateFrom, dateTo)); }
public DBUpdater() { mySQLConnector = new MySQLConnector(); }
public List <string> getAvailableSymbols() { MySQLConnector mySQLConnector = new MySQLConnector(); return(mySQLConnector.getAvailableSymbols()); }