public <T> T execute(boolean isReadOnly, SqlExecutor<T> executor) throws SQLException {
        Connection conn = null;
        try {
            conn = dataSource.getConnection();
            if (isReadOnly) {
                conn.setReadOnly(true);
            }
            return executor.run(conn);
        } finally {
            close(conn);
        }
    }
@author Robert HG (254963746@qq.com) on 5/20/15.
lts-core/src/main/java/com/github/ltsopensource/store/jdbc/SqlTemplateImpl.java