[ rubbish-db ]
RubbishDatabase dbh = new RubbishDatabase(new ParticularLogger()); dbh.setLogging(true); dbh.connect("jdbc:hsqldb:hsql://localhost", "sa", ""); Map[] publishers = dbh.query("SELECT ID, NAME FROM PUBLISHER ORDER BY ID"); for (int i = 0; i < publishers.length; i++) println(publishers[i]); Map[] books = dbh.query("SELECT TITLE, AUTHOR FROM BOOK WHERE PUBLISHER IN (?, ?) ORDER BY PUBLISHER, ID", "04", "06"); for (int i = 0; i < books.length; i++) println(books[i]); dbh.disconnect();
connect database 'url=jdbc:hsqldb:hsql://localhost, user=sa, password='. 'SELECT ID, NAME FROM PUBLISHER ORDER BY ID' 'rows=7 ([Ljava.util.Map;)' <= 'SELECT ID, NAME FROM PUBLISHER ORDER BY ID' {id=00, name=ミュンヒハウゼン出版} {id=01, name=栄学館} {id=02, name=時源出版} {id=03, name=曙蓬莱新聞社} {id=04, name=太公望書林} {id=05, name=日本曙蓬莱武術協会} {id=06, name=民明書房} 'SELECT TITLE, AUTHOR FROM BOOK WHERE PUBLISHER IN (?, ?) ORDER BY PUBLISHER, ID [04, 06]' 'rows=88 ([Ljava.util.Map;)' <= 'SELECT TITLE, AUTHOR FROM BOOK WHERE PUBLISHER IN (?, ?) ORDER BY PUBLISHER, ID [04, 06]' {title=あなたにも出来る!中国拳法修行百科, author=null} {title=エーゲ海-古代格闘史の浪漫-, author=null} {title=ギリシャ神話に見る現代人への教訓, author=null} {title=シルクロードの彼方, author=null} {title=暗黒組織類聚, author=null} {title=英国貴族の習慣・風俗, author=null} {title=眼球大脳生理学, author=null} {title=世界幻覚大全, author=null} {title=世界残虐刑罰史, author=null} {title=世界頭髪大全, author=null} {title=中国拳法-火の考察-, author=null} {title=動物棲息類聚, author=null} {title=EYEこそ全て, author=null} {title=SKATER'SWALTZ, author=null} {title=アラスカ大紀行, author=null} {title=インド人も吃驚!ヨガに奇跡, author=null} {title=かき氷屋三代記-我永遠に氷をアイス-, author=null} {title=クロコダイル・ダンディ-爬虫類よもやま話-, author=null} {title=スポーツ起源異聞, author=null} {title=ツタンカーメンの逆襲, author=null} {title=バットマンかく語りき, author=null} {title=マグネットパワー-21世紀をこう変える-, author=null} {title=ヨーロッパ中世スポーツの起源, author=null} {title=亜細亜刑史大系, author=null} {title=暗殺秘話, author=null} {title=医学的見地より考察した中国拳法, author=null} {title=泳げ!!騎馬民族, author=null} {title=炎の武将・織田信長, author=null} {title=玩具に見る古代中国の英知, author=null} {title=奇跡の鳥慶漢(ウーケイハン), author=null} {title=教育と体罰, author=null} {title=驚異の昆虫世界, author=null} {title=剣史記, author=null} {title=拳法興亡史, author=null} {title=現代麻薬集成, author=null} {title=古代刑法全, author=null} {title=室内球技における中国文明の影響, author=null} {title=実用動物辞典, author=null} {title=食うか食われるか!!世界食通事情, author=null} {title=人体-その代謝機能の神秘-, author=null} {title=世界スポーツ奇譚, author=null} {title=世界の怪拳・奇拳, author=null} {title=世界気象大鑑, author=null} {title=世界古代兵器大鑑, author=null} {title=世界拷問史, author=null} {title=世界史に見る現代兵器の源泉, author=null} {title=世界死闘決闘百選, author=null} {title=西欧文明-その爛熟と退廃-, author=null} {title=戦国異聞記, author=null} {title=戦国決闘異聞第七巻, author=null} {title=戦国武芸者往来, author=null} {title=戦国武将考察, author=null} {title=戦国武将人情譚, author=null} {title=相撲人生待ったなし, author=null} {title=大磁界, author=null} {title=大衆操作暗黒史, author=null} {title=誰が為に鐘は鳴る, author=null} {title=男塾白書2000年版, author=null} {title=知られざる秘拳, author=null} {title=中国の奇拳-その起源と発達-, author=null} {title=中国宮廷儀礼典範, author=null} {title=中国拳法-その科学性, author=null} {title=中国拳法に見る東洋医術, author=null} {title=中国拳法修行大鑑, author=null} {title=中国拳法大武鑑, author=null} {title=中国古代吃驚医学大鑑, author=null} {title=中国三千年の歴史に学ぶ現代人の知恵, author=null} {title=中国電化大革命史, author=null} {title=中国日本武術交流秘史, author=null} {title=中国秘拳満漢全席, author=null} {title=中国武具-その創造と継承-, author=null} {title=中国武術大覧, author=null} {title=鉄拳記, author=null} {title=闘う動物大百科, author=null} {title=独習中国拳法, author=null} {title=肉体の神秘, author=null} {title=肉体の神秘とスポーツ, author=null} {title=日本風俗奇譚, author=null} {title=氷の科学, author=null} {title=浮虻流(ふあぶる)昆虫記, author=null} {title=武の中国史, author=null} {title=武士魂, author=null} {title=武道達人逸話集, author=null} {title=分子核構造その理論, author=null} {title=狼少年-拳-, author=null} {title=戮家その全貌, author=null} {title=氣-その効用と実践, author=null} {title=氣の科学, author=null} disconnect database.