Examples of NAPTR


Examples of org.openspp.dto.NAPTR

    Organization org = new Organization() ;
    org.setOrganizationName("rgtest1") ;
    orgDao.createOrganization(org) ;
   
    // Add routerecord rr2
    NAPTR rec = new NAPTR() ;
    rec.setOrganizationName("rgtest1") ;
    rec.setRouteRecordName("rgtest_rr1") ;
    rec.setPriority((short)10) ;
    rec.setOrder((short)1) ;
    rec.setServices("E2U+sip") ;
    rec.setOrder((short)2) ;
    rteRecDao.addRouteRecord(rec) ;
    //add another route record
    rec.setRouteRecordName("rgtest_rr2") ;
    rteRecDao.addRouteRecord(rec) ;
   
    //create DestinationGroup rgtest_dg1
   
    DestinationGroup dg = new DestinationGroup() ;
View Full Code Here

Examples of org.openspp.dto.NAPTR

  /**
   * Test method for {@link org.openspp.dao.impl.RouteRecDAOImpl#addRouteRecord(org.openspp.dto.RouteRecord)}.
   */
  @Test
  public void testAddRouteRecord() {
    NAPTR rec = new NAPTR() ;
    rec.setOrganizationName("rant1") ;
    rec.setRouteRecordName("rr1") ;
    rec.setPriority((short)10) ;
    rec.setOrder((short)1) ;
    rec.setServices("E2U+sip") ;
    this.dao.addRouteRecord(rec) ;
    rec.setOrder((short)2) ;
    this.dao.addRouteRecord(rec) ;
  }
View Full Code Here

Examples of org.openspp.dto.NAPTR

  public void testGetNAPTR()
  {
    ObjectKey key = new ObjectKey() ;
    key.setObjectName("rr1") ;
    key.setRegistrantName("rant1") ;
    NAPTR rec = dao.getNAPTR(key) ;
      System.out.println(rec.toString())
  }
View Full Code Here

Examples of org.openspp.dto.NAPTR

  /**
   * Test method for {@link org.openspp.dao.impl.RouteRecDAOImpl#addRouteRecord(org.openspp.dto.RouteRecord)}.
   */
  @Test
  public void testAddRouteRecord() {
    NAPTR rec = new NAPTR() ;
    rec.setOrganizationName("rant1") ;
    rec.setRouteRecordName("rr1sdffergtertretreodlkgjfdgkljfdgklfjdgkldfjgfdklgfdgfdkgjfdrr1sdffergtertretreodlkgjfdgkljfdgklfjdgkldfjgfdklgfdgfdkgjfdrr1sdffergtertretreodlkgjfdgkljfdgklfjdgkldfjgfdklgfdgfdkgjfdrr1sdffergtertretreodlkgjfdgkljfdgklfjdgkldfjgfdklgfdgfdkgjfdrr1sdffergtertretreodlkgjfdgkljfdgklfjdgkldfjgfdklgfdgfdkgjfd") ;
    rec.setPriority((short)10) ;
    rec.setOrder((short)1) ;
    rec.setServices("E2U+sip") ;
    this.dao.addRouteRecord(rec) ;
    rec.setOrder((short)2) ;
    this.dao.addRouteRecord(rec) ;
  }
View Full Code Here

Examples of org.openspp.dto.NAPTR

  public void testGetNAPTR()
  {
    ObjectKey key = new ObjectKey() ;
    key.setObjectName("rr1") ;
    key.setRegistrantName("rant112") ;
    NAPTR rec = dao.getNAPTR(key) ;
      System.out.println(rec.toString())
  }
View Full Code Here

Examples of org.openspp.dto.NAPTR

   
    //"SELECT NAPTRId, RteRecId, Order_, Service, Flags, ERE, ERE_Repl, Replacement, TTL, CDate, MDate FROM NAPTR WHERE RteRecId=? ;" ;
   
    try
    {
      NAPTR naptr = jdbcTemplate.queryForObject(
          NAPTR_SELECT_SQL,
          new Object[]{rteRecId},
          new RowMapper<NAPTR>() {
              public NAPTR mapRow(ResultSet rs, int rowNum) throws SQLException {
                NAPTR obj = new NAPTR();
                obj.setNaptrId(rs.getInt(1)) ;
                obj.setRouteRecordId(rs.getInt(2)) ;
                obj.setOrder(rs.getShort(3)) ;
                obj.setServices(rs.getString(4)) ;
                obj.setFlags(rs.getString(5)) ;
                obj.setEre(rs.getString(6)) ;
                obj.setEre_repl(rs.getString(7)) ;
                obj.setReplacement(rs.getString(8)) ;
                obj.setTtl(rs.getShort(9)) ;
                obj.setCreatedDateTime(rs.getDate(10)) ;
                obj.setModifiedDateTime(rs.getDate(11)) ;
                  return obj;
              }
          });
      return naptr ;
    }catch(EmptyResultDataAccessException e)
View Full Code Here

Examples of org.openspp.dto.NAPTR

   
    //"SELECT NAPTRId, RteRecId, Order_, Service, Flags, ERE, ERE_Repl, Replacement, TTL, CDate, MDate FROM NAPTR WHERE RteRecId=? ;" ;
   
    try
    {
      NAPTR naptr = jdbcTemplate.queryForObject(
          NAPTR_SELECT_SQL,
          new Object[]{rteRecId},
          new RowMapper<NAPTR>() {
              public NAPTR mapRow(ResultSet rs, int rowNum) throws SQLException {
                NAPTR obj = new NAPTR();
                obj.setNaptrId(rs.getInt(1)) ;
                obj.setRouteRecordId(rs.getInt(2)) ;
                obj.setOrder(rs.getShort(3)) ;
                obj.setServices(rs.getString(4)) ;
                obj.setFlags(rs.getString(5)) ;
                obj.setEre(rs.getString(6)) ;
                obj.setEre_repl(rs.getString(7)) ;
                obj.setReplacement(rs.getString(8)) ;
                obj.setTtl(rs.getShort(9)) ;
                obj.setCreatedDateTime(rs.getDate(10)) ;
                obj.setModifiedDateTime(rs.getDate(11)) ;
                  return obj;
              }
          });
      return naptr ;
    }catch(EmptyResultDataAccessException e)
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.