Examples of queryForMap()


Examples of org.springframework.jdbc.core.JdbcTemplate.queryForMap()

  {   
    try
    {
      JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;

      Map res = jdbcTemplate.queryForMap ( _sqlSelectAlt, new Object[]
        { opUrl } ) ;

      String handle = (String) res.get ( "handle" ) ;
      String type = (String) res.get ( "type" ) ;
      String macKey = (String) res.get ( "mackey" ) ;
View Full Code Here

Examples of org.springframework.jdbc.core.JdbcTemplate.queryForMap()

        assertTrue(userTO.getPropagationStatusTOs().get(0).getStatus().isSuccessful());
        assertTrue(userTO.getPropagationStatusTOs().get(1).getStatus().isSuccessful());

        JdbcTemplate jdbcTemplate = new JdbcTemplate(testDataSource);

        final Map<String, Object> actuals = jdbcTemplate.queryForMap(
                "SELECT id, surname, email FROM testsync WHERE id=?",
                new Object[] { Integer.parseInt(userTO.getAttributeMap().get("aLong").getValues().get(0)) });

        assertEquals(userTO.getAttributeMap().get("aLong").getValues().get(0), actuals.get("id").toString());
        assertEquals("ml@role.it", actuals.get("email"));
View Full Code Here

Examples of org.springframework.jdbc.core.JdbcTemplate.queryForMap()

        assertTrue(userTO.getPropagationStatusTOs().get(0).getStatus().isSuccessful());
        assertTrue(userTO.getPropagationStatusTOs().get(1).getStatus().isSuccessful());

        JdbcTemplate jdbcTemplate = new JdbcTemplate(testDataSource);

        final Map<String, Object> actuals = jdbcTemplate.queryForMap(
                "SELECT id, surname, email FROM testsync WHERE id=?",
                new Object[] { Integer.parseInt(userTO.getAttrMap().get("aLong").getValues().get(0)) });

        assertEquals(userTO.getAttrMap().get("aLong").getValues().get(0), actuals.get("id").toString());
        assertEquals("ml@role.it", actuals.get("email"));
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.