Examples of queryForMap()


Examples of com.alibaba.druid.support.ibatis.SqlMapClientWrapper.queryForMap()

        });

        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", 10).size());
        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", Collections.emptyMap(), 10).size());

        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id"));
        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id", "name"));
       
        wrapper.delete("User.delete", 12345678L);
        {
            Exception error = null;
View Full Code Here

Examples of com.alibaba.druid.support.ibatis.SqlMapClientWrapper.queryForMap()

        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", 10).size());
        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", Collections.emptyMap(), 10).size());

        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id"));
        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id", "name"));
       
        wrapper.delete("User.delete", 12345678L);
        {
            Exception error = null;
            try {
View Full Code Here

Examples of com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper.queryForMap()

        });

        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", 10).size());
        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", Collections.emptyMap(), 10).size());

        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id"));
        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id", "name"));
       
        wrapper.delete("User.delete", 12345678L);
        {
            Exception error = null;
View Full Code Here

Examples of com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper.queryForMap()

        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", 10).size());
        Assert.assertEquals(1, wrapper.queryForPaginatedList("User.select", Collections.emptyMap(), 10).size());

        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id"));
        Assert.assertNotNull(wrapper.queryForMap("User.select", Collections.emptyMap(), "id", "name"));
       
        wrapper.delete("User.delete", 12345678L);
        {
            Exception error = null;
            try {
View Full Code Here

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

     * TODO: somehow make the key unique by adding a user name or login or something
     */
    public Settings createSettings( String key ) throws SettingsException {
        try {
            JdbcTemplate template = new JdbcTemplate( dataSource );
            Map result = template.queryForMap( "SELECT * FROM SETTINGS WHERE KEY=? AND USER=?", new Object[] { key,
                    userNameProvider.getUser() } );

            JdbcSettings settings = new JdbcSettings( dataSource, userNameProvider.getUser(), (Integer) result
                    .get( "ID" ), key );
            settings.load();
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()

            String sql = "SELECT type,mackey,expdate FROM " + _tableName +
                    " WHERE handle=?";

            JdbcTemplate jdbcTemplate = getJdbcTemplate();

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

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

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

            String sql = "SELECT type,mackey,expdate FROM " + _tableName +
                    " WHERE handle=?";

            JdbcTemplate jdbcTemplate = getJdbcTemplate();

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

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

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

            String sql = "SELECT type,mackey,expdate FROM " + _tableName +
                    " WHERE handle=?";

            JdbcTemplate jdbcTemplate = getJdbcTemplate();

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

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

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

  {   
    try
    {
      JdbcTemplate jdbcTemplate = getJdbcTemplate ( ) ;

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

      String type = (String) res.get ( "type" ) ;
      String macKey = (String) res.get ( "mackey" ) ;
      Date expDate = (Date) res.get ( "expdate" ) ;
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.