public class SqlSource extends AbstractSource
<Source class="jp.co.sds_corp.report.source.SqlSource" > <db type="jdbc"> <driver>com.sybase.jdbc2.jdbc.SybDriver</driver> <url>jdbc:sybase:Tds:localhost:4100/db</url> <user>user</user> <password>password</password> <encode>MS932</encode> </db> <SQL> select * from table where key='A' </SQL> </Source>db要素で接続先を指定します。詳細は
DbAccess
を参照してください。
SQL要素で、実行するSQLを指定します。コンストラクタと説明 |
---|
SqlSource() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
execute()
データを取得します。
|
void |
exit()
データの取得を終了します。
|
void |
init(jp.co.sds_corp.util.config.IConfiguration config)
設定情報で初期化します。
|
getBean, getProperty, isDebug, setBean, setDebug, setProperty
Copyright © 2020 S.D.S Co.,Ltd.. All rights reserved.