Examples of SimpleJdbcTemplate


Examples of org.springframework.jdbc.core.simple.SimpleJdbcTemplate

    protected void setUp() throws Exception {
        super.setUp();

        // create database and insert dummy data
        final DataSource ds = getMandatoryBean(DataSource.class, "dataSource");
        jdbc = new SimpleJdbcTemplate(ds);
        jdbc.getJdbcOperations().execute("create table books (title varchar(50))");
        jdbc.update("insert into books (title) values (?)", "Camel in Action");
    }
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.