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