Пример #1
0
 public void updateQuotes(List<EquityQuote> quoteVOs) {
   super.startBatch();
   for (EquityQuote quoteVO : quoteVOs) {
     updateQuote(quoteVO);
   }
   super.executeBatch();
 }
Пример #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);
 }
Пример #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);
 }
Пример #4
0
 public void insertQuote(EquityQuote quoteVO) {
   logger.info(quoteVO);
   super.insert("insertQuote", quoteVO);
 }
Пример #5
0
 public void deleteWatchlistByStockId(int stockId) {
   super.delete("deleteWLByStockId", stockId);
 }
Пример #6
0
 public void deleteWatchlistGroup(int watchlistGroupId) {
   super.delete("deleteAllWatchlist", watchlistGroupId);
 }
Пример #7
0
 public void insertWatchlistVOs(List<WatchlistVO> watchlistVOs) {
   for (WatchlistVO watchlistVO : watchlistVOs) {
     super.insert("insertWatchlist", watchlistVO);
   }
 }
Пример #8
0
 public void updateWatchlistGroup(WatchlistDetailsVO detailsVO) {
   super.update("updateWatchlistGroup", detailsVO);
 }
Пример #9
0
 public void insertWatchlistGroup(WatchlistDetailsVO detailsVO) {
   super.insert("insertWatchlistGroup", detailsVO);
 }