Examples of DestinationGroup


Examples of org.openspp.dto.DestinationGroup


  public ResultSetResult<DestinationGroup> execute() {

    List<DestinationGroup> dstGrpResultList = null;
    DestinationGroup dstGrpResult = null;
    ResultSetResult<DestinationGroup> result = null;
    boolean nullResult = false;

    try {
      dstGrpResultList = new ArrayList<DestinationGroup>();
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

  public void setDto(List<DestinationGroup> dtoList) {
    destGrpList = new ArrayList<DestinationGroup>();
   
    for (DestinationGroup dg : dtoList) {
      DestinationGroup dst = (DestinationGroup) dg;
      destGrpList.add(dst);
    }

  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

  /**
   * Test method for {@link org.openspp.dao.impl.DestinationGroupDAOImpl#addOrUpdateDestinationGroup(org.openspp.dto.DestinationGroup)}.
   */
  @Test
  public void testAddOrUpdateDestinationGroup() {
    DestinationGroup dg = new DestinationGroup() ;
    dg.setOrganizationName("rant1") ;
    dg.setDestGrpName("dgww1") ;
    dao.addOrUpdateDestinationGroup(dg) ;
    // call again to test update flow
    dao.addOrUpdateDestinationGroup(dg) ;
  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

  /**
   * Test method for {@link org.openspp.dao.impl.DestinationGroupDAOImpl#getDestinationGroup(org.openspp.dto.DestinationGroup)}.
   */
  @Test
  public void testGetDestinationGroupDestinationGroup() {
    DestinationGroup dg = new DestinationGroup() ;
    dg.setOrganizationName("rant1") ;
    dg.setDestGrpName("dg1") ;
    System.out.println("dao.getDestinationGroup(dg) = " + dao.getDestinationGroup(dg)) ;
  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

   * Test method for {@link org.openspp.dao.impl.DestinationGroupDAOImpl#getDestinationGroup(java.lang.String, int)}.
   */
  @Test
  public void testGetDestinationGroupStringInt() {
   
    DestinationGroup dg = dao.getDestinationGroup("dg1", 1);
    System.out.println(dg);
  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

  /**
   * Test method for {@link org.openspp.dao.impl.DestinationGroupDAOImpl#deleteDestinationGroup(org.openspp.dto.DestinationGroup)}.
   */
  @Test
  public void testDeleteDestinationGroup() {
    DestinationGroup dg = new DestinationGroup() ;
    dg.setOrganizationName("rant1") ;
    dg.setDestGrpName("dg1") ;
    dao.deleteDestinationGroup(dg) ;
  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

    rec.setRouteRecordName("rgtest_rr2") ;
    rteRecDao.addRouteRecord(rec) ;
   
    //create DestinationGroup rgtest_dg1
   
    DestinationGroup dg = new DestinationGroup() ;
    dg.setDestGrpName("rgtest_dg1") ;
    dg.setOrganizationName("rgtest1") ;
    dgDao.addOrUpdateDestinationGroup(dg) ;
   
  }
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

    if (rg.getDestGrpNameList() !=null)
    {
      DestinationGroupDAO dgDAO = (DestinationGroupDAO)SpringAppContext.getBean("DestinationGroupDAO") ;
      for (String dgName : rg.getDestGrpNameList())
      {
        DestinationGroup destGrp = dgDAO.getDestinationGroup(dgName,rg.getOrganizationId()) ;
        if(destGrp == null)
        {
          throw new RuntimeException("DestinationGroup " + dgName + " with rantId " + rg.getOrganizationId() + "  does not exist") ;
        }
        addRteGrpDestGrp(rg, destGrp) ;
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

  {
    log.entering("DestinationGroupDAOImpl", "getDestinationGroup") ;
    updateOrganizationId(destGrp) ;
    try
    {
      DestinationGroup destGrp1 = jdbcTemplate.queryForObject(
          "SELECT DestGrpId, DestGrpName, RantId, CDate, MDate FROM DestinationGroup WHERE  DestGrpName=? AND RantId=? ",
          new Object[]{destGrp.getDestGrpName(), destGrp.getOrganizationId()},
          new RowMapper<DestinationGroup>() {
              public DestinationGroup mapRow(ResultSet rs, int rowNum) throws SQLException {
                DestinationGroup dg = new DestinationGroup();
                dg.setDestGrpId(rs.getInt(1)) ;
                dg.setDestGrpName(rs.getString(2)) ;
                dg.setOrganizationId(rs.getInt(3)) ;
                dg.setCreatedDateTime(rs.getDate(4)) ;
                dg.setModifiedDateTime(rs.getDate(5)) ;
                  return dg;
              }
          });
      return destGrp1 ;
    }catch (EmptyResultDataAccessException e)
View Full Code Here

Examples of org.openspp.dto.DestinationGroup

   
  }
 
  @Override
  public DestinationGroup getDestinationGroup(String dgName, int rantId) {
    DestinationGroup dg = new DestinationGroup() ;
    dg.setDestGrpName(dgName) ;
    dg.setOrganizationId(rantId) ;
    return getDestinationGroup(dg) ;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.