#! /usr/bin/java org.mozilla.javascript.tools.shell.Main // ------------------------------------------------------------------ // // h2_read.js // // Jan/25/2011 // // ------------------------------------------------------------------ importPackage(java.lang); importPackage(java.sql); load ("/var/www/data_base/common/rhino_common/sql_manipulate.js"); print ("*** 開始 ***"); var user = "SA"; var passwd = ""; var database = "file:/var/tmp/h2/cities"; var url = "jdbc:h2:" + database; var conn = DriverManager.getConnection (url,user,passwd); disp_proc (conn); conn.close(); print ("*** 終了 ***"); // ------------------------------------------------------------------