スケーラブルデータベースサーバ HiRDB Version 8 UAP開発ガイド
Driverインタフェースでは,主に次の機能が提供されます。
Driverインタフェースのメソッド一覧を次の表に示します。なお,表に記載されていないメソッドはサポートしていません。サポートしていないメソッドを指定すると,SQLExceptionを投入します。
表18-7 Driverインタフェースのメソッド一覧
| 記載箇所 | メソッド | 機能 |
|---|---|---|
| (a) | acceptsURL(String url) | ドライバが指定されたURLに接続できるかどうかを確認します。 |
| (b) | connect(String url,Properties info) | 指定されたURLにデータベース接続を試みます。 |
| (c) | getMajorVersion() | ドライバのメジャーバージョンを取得します。 |
| (d) | getMinorVersion() | ドライバのマイナーバージョンを取得します。 |
| (e) | getPropertyInfo(String url,Properties info) | ドライバの有効なプロパティについての情報を取得します。 |
| (f) | jdbcCompliant() | ドライバがJDBC CompliantTMであるかどうかを通知します。 |
public boolean acceptsURL(String url) throws SQLException
public Connection connect(String url, Properties info) throws SQLException
public synchronized int getMajorVersion()
public synchronized int getMinorVersion()
public synchronized DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
表18-8 DriverPropertyInfoの各フィールドの設定値
| プロパティ名 | DriverPropertyInfoフィールド | ||||
|---|---|---|---|---|---|
| name | value | description | required | choices | |
| user | プロパティ名と同じ | null | "UserID" | false | null |
| password | 同上 | "" | "Password" | false | null |
| UAPNAME | 同上 | "" | "UAPNAME" | false | null |
| JDBC_IF | 同上 | "OFF" | "JDBC Interface Trace" | false | {"ON","OFF"} |
| TRC_NO | 同上 | "500" | "Trace Entry Number" | false | null |
| ENCODELANG | 同上 | null | "Encode Lang" | false | null |
| HIRDB_CURSOR | 同上 | "FALSE" | "HiRDB Cursor across commit" | false | null |
| LONGVARBINARY_ACCESS | 同上 | "REAL" | "Longvarbinary locator access" | false | null |
| HiRDB_for_Java_SQL_IN_NUM | 同上 | "300" | "SQL In Number" | false | null |
| HiRDB_for_Java_SQL_OUT_NUM | 同上 | "300" | "SQL Out Number" | false | null |
| HiRDB_for_Java_SQLWARNING_LEVEL | 同上 | "SQLWARN" | "SQL Warning Level" | false | null |
| HiRDB_for_Java_ENV_VARIABLES | 同上 | null | "HiRDB Environment Variables" | false | null |
| HiRDB_for_Java_STATEMENT_COMMIT_BEHAVIOR | 同上 | "TRUE" | "HiRDB Statement across commit" | false | {"TRUE","FALSE"} |
| HiRDB_for_Java_LONGVARBINARY_ACCESS_SIZE | 同上 | 0 | "Longvarbinary locator access size" | false | null |
| HiRDB_for_Java_MAXBINARYSIZE | 同上 | null | "Longvarbinary maximum binary size" | false | null |
| HiRDB_for_Java_LONGVARBINARY_TRUNCERROR | 同上 | "TRUE" | "Longvarbinary truncate error" | false | {"TRUE","FALSE"} |
| HiRDB_for_Java_DBID | 同上 | null | "Port number of HiRDB server or Environment variable group of HiRDB" | false | null |
| HiRDB_for_Java_DBHOST | 同上 | null | "Host name with HiRDB" | false | null |
| HiRDB_for_Java_HiRDB_INI | 同上 | null | "HiRDB.ini file " | false | null |
| HiRDB_for_Java_BATCHEXCEPTION_BEHAVIOR | 同上 | "TRUE" | "BatchUpdateException UpdateCounts that conforms to JDBC standard" | false | {"TRUE","FALSE"} |
| SQLWARNING_IGNORE | 同上 | "FALSE" | "Warning generated by the Connection object is not maintained with the Connection object" | false | {"TRUE","FALSE"} |
| HiRDB_for_Java_STATEMENT_CLOSE_BEHAVIOR | 同上 | "FALSE" | "HiRDB Statement close behavior" | false | {"TRUE","FALSE"} |
public synchronized boolean jdbcCompliant()
このインタフェースを実装するパッケージ名称とクラス名称を次に示します。
SQL文中で{ }で囲まれた部分をエスケープ句と呼びます。エスケープ句は一つのキーワードと複数のパラメタで構成されます。キーワードの大文字と小文字は区別しません。
エスケープ句の一覧を次の表に示します。
表18-9 エスケープ句の一覧
| エスケープ句の種別 | キーワード |
|---|---|
| 日付,時刻,時刻印 | d,t,ts |
| LIKEエスケープ文字 | escape |
| 外部結合 | oj |
| プロシジャ呼び出し | call |
| スカラ関数 | fn |
| 代入 | set |
エスケープ句で指定できるスカラ関数については,「付録I エスケープ句で指定できるスカラ関数」を参照してください。
All Rights Reserved. Copyright (C) 2006, 2016, Hitachi, Ltd.