Examples of tableExist()


Examples of net.hasor.db.jdbc.core.JdbcTemplate.tableExist()

    /*-----------------------------------------------------------------------------------InitData*/
    //
    @Before
    public void initData() throws SQLException, IOException {
        JdbcTemplate jdbc = this.getJdbcTemplate();
        boolean hasTab = jdbc.tableExist("TB_User");
        /*装载 SQL 脚本文件*/
        if (hasTab == false) {
            jdbc.loadSQL("net/test/simple/_10_jdbc/TB_User.sql");
        }
        jdbc.execute("delete from TB_User;");
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.