Ejemplo n.º 1
0
 private Map map(String stockCode, PMDate frmDate, PMDate toDate) {
   Map paramMap = new HashMap();
   if (stockCode != null) paramMap.put("StockCode", stockCode);
   if (frmDate != null) paramMap.put("fromDate", frmDate.getIntVal());
   if (toDate != null) paramMap.put("toDate", toDate.getIntVal());
   return paramMap;
 }
Ejemplo n.º 2
0
 public EquityQuote quote(StockVO stockVO, PMDate date) {
   Map paramMap = new HashMap();
   paramMap.put("StockID", stockVO.getId());
   paramMap.put("PMDate", date.getIntVal());
   return (EquityQuote) super.queryForObject("getQuoteForStockIDDate", paramMap);
 }
Ejemplo n.º 3
0
 public List<EquityQuote> getQuotes(PMDate date) {
   return (List<EquityQuote>) super.queryForList("getQuoteForDate", date.getIntVal());
 }
Ejemplo n.º 4
0
 public EquityQuote getQuote(String stockCode, PMDate date) {
   Map paramMap = new HashMap();
   paramMap.put("StockCode", stockCode);
   paramMap.put("PMDate", date.getIntVal());
   return (EquityQuote) super.queryForObject("getQuoteForStockDate", paramMap);
 }