Exemple #1
0
 public void updateQuotes(List<EquityQuote> quoteVOs) {
   super.startBatch();
   for (EquityQuote quoteVO : quoteVOs) {
     updateQuote(quoteVO);
   }
   super.executeBatch();
 }
Exemple #2
0
 public void updateStockId(int fromStockId, int toStockId) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("from", fromStockId);
   params.put("to", toStockId);
   params.put("table", "QUOTE");
   super.update("updateStockID", params);
 }
Exemple #3
0
 public void updateAdjustedClose(String stockCode, PMDate exDate, float ratio) {
   Map<String, Object> params = new HashMap<String, Object>();
   params.put("exDate", exDate);
   params.put("stockCode", stockCode);
   params.put("ratio", ratio);
   super.update("updateAdjustedClose", params);
 }
Exemple #4
0
 public void insertQuote(EquityQuote quoteVO) {
   logger.info(quoteVO);
   super.insert("insertQuote", quoteVO);
 }
Exemple #5
0
 public void deleteWatchlistByStockId(int stockId) {
   super.delete("deleteWLByStockId", stockId);
 }
Exemple #6
0
 public void deleteWatchlistGroup(int watchlistGroupId) {
   super.delete("deleteAllWatchlist", watchlistGroupId);
 }
Exemple #7
0
 public void insertWatchlistVOs(List<WatchlistVO> watchlistVOs) {
   for (WatchlistVO watchlistVO : watchlistVOs) {
     super.insert("insertWatchlist", watchlistVO);
   }
 }
Exemple #8
0
 public void updateWatchlistGroup(WatchlistDetailsVO detailsVO) {
   super.update("updateWatchlistGroup", detailsVO);
 }
Exemple #9
0
 public void insertWatchlistGroup(WatchlistDetailsVO detailsVO) {
   super.insert("insertWatchlistGroup", detailsVO);
 }