Package org.openspp.dto

Examples of org.openspp.dto.RouteRecord


  @Override
  public RouteRecord getRouteRecord(ObjectKey objKey) {
    objKey.setRegistrantId(getOrganizationId(objKey.getRegistrantName())) ;
    try
    {
      RouteRecord rr = jdbcTemplate.queryForObject(
          RR_SELECT_SQL,
          new Object[]{objKey.getObjectName(), objKey.getRegistrantId()},
          this
          );
      return rr ;
View Full Code Here


   
  }
 
 
    public RouteRecord mapRow(ResultSet rs, int rowNum) throws SQLException {
          RouteRecord rteRec = new RouteRecord();
          rteRec.setRouteRecordId(rs.getInt(1)) ;
          rteRec.setRouteRecordName(rs.getString(2)) ;
          rteRec.setOrganizationId(rs.getInt(3)) ;
          rteRec.setPriority(rs.getShort(4)) ;
          rteRec.setCreatedDateTime(rs.getDate(5)) ;
          rteRec.setModifiedDateTime(rs.getDate(6)) ;
            return rteRec ;
   }
View Full Code Here

     
        ObjectKey key1 = new ObjectKey() ;
        key1.setObjectName(rr.getRouteRecordName()) ;
        key1.setRegistrantName(rr.getOrganizationName()) ;
       
        RouteRecord rr1 = dao.getRouteRecord(key1) ;
       
        if(rr1 == null)
        {
          throw new RuntimeException("RouteRecord "+rr.getRouteRecordName() + " with registrant " + key1.getRegistrantName() + " does not exist") ;
        }
        rr.setRouteRecordId(rr1.getRouteRecordId()) ;
       
        addRteGrpRteRec(rg,rr) ;
      }
    }
   
View Full Code Here

    List<RouteRecord> listRteRec = jdbcTemplate.query(RRREF_SELECT_SQL,
        new Object[] { rteGrp.getRouteGroupId() },
        new RowMapper<RouteRecord>() {
          public RouteRecord mapRow(ResultSet rs, int rowNum)
              throws SQLException {
            RouteRecord rteRec = new RouteRecord();
            rteRec.setRouteRecordId(rs.getInt(1));
            rteRec.setRouteRecordName(rs.getString(2));
            rteRec.setPriority(rs.getShort(3));
            return rteRec;
          }
        });
    if(listRteRec.size() > 0)
    {
View Full Code Here

TOP

Related Classes of org.openspp.dto.RouteRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.