DataChest
[TOP]
DataChestは、Web経由でデータベースの内容を参照する為のツールです。
鋭意製作中!2005年夏休み期間中(中高生の。:D 社会人でも大学生でもなく。)にはPreα版を出したい。
設定ファイルの記述はこんな感じ。
<?xml version = "1.0" encoding = "Shift_JIS" ?>
<view>
<title>商品マスタ検索</title>
<rowsOfPage>5</rowsOfPage>
<from>
<from>products</from>
</from>
<from>
<from>product_types</from>
</from>
<fixedWhere>
<where>products.class1 = product_types.producttypecd</where>
</fixedWhere>
<fixedWhere>
<where>product_types.typetype = '001'</where>
</fixedWhere>
<column>
<tableName>products</tableName>
<dbName type="String" align="Left">productcd</dbName>
<title>製品CD</title>
</column>
|
<where>
<leaf>
<tableName>products</tableName>
<dbName>productcd</dbName>
<title>商品CD</title>
<dataType>String</dataType>
<whereType>SIMPLETEXT</whereType>
</leaf>
<leaf>
<tableName>products</tableName>
<dbName>class1</dbName>
<title>分類1</title>
<dataType>String</dataType>
<whereType>SELECT</whereType>
<select>
<label>日用品</label><sql>001</sql>
</select>
<select>
<label>食品</label><sql>002</sql>
</select>
<select>
<label>書籍</label><sql>003</sql>
</select>
</leaf>
|
<orderBy>
<label>商品CD 昇順</label>
<sql>productcd asc</sql>
<isDefault>TRUE</isDefault>
</orderBy>
<orderBy>
<label>商品CD 降順</label>
<sql>productcd desc</sql>
</orderBy>
</view>
|
ん〜、DWH(DataWareHouse)やDM(DataMart)ほど大規模じゃないし、 たんすサイズっちゅーことでいいか、というわけでDataChestです。
参照の基本機能は実装したけれど、テストやセキュリティ面がまだまだ…
UnitTestをかっつり書いて(TestFirstやれよ!)、セキュリティ系は
表示データのサニタイズがらみをちゃんとしないと・・・。(話題のSQLインジェクション
はおおざっぱなところは対応済み)
[TOP]
(C)2005-.NoiseGenerator/WATANABE Hidehisa
hwatanab@sunfield.ne.jp