Ejemplo n.º 1
0
 public RowSet getLine(String transId) throws QueryException {
   AmsBjTransQueryModel model = new AmsBjTransQueryModel(sfUser, dto);
   SQLModel sqlModel = model.getLineData(transId);
   SimpleQuery sq = new SimpleQuery(sqlModel, conn);
   sq.executeQuery();
   return sq.getSearchResult();
 }
Ejemplo n.º 2
0
  public DTOSet getLines(String transId) throws QueryException {
    AmsBjTransQueryModel model = new AmsBjTransQueryModel(sfUser, null);
    SimpleQuery sq = new SimpleQuery(model.getByTransIdModel(dto.getTransId()), conn);
    sq.setDTOClassName(AmsBjsAllotDDto.class.getName());
    sq.executeQuery();

    return sq.getDTOSet();
  }