database
b2007092001

org.phosphoresce.commons.database
クラス DatabaseInformation

java.lang.Object
  拡張org.phosphoresce.commons.database.DatabaseInformation

public class DatabaseInformation
extends java.lang.Object

データベース情報保持オブジェクト
当オブジェクトはDatabaseMetaDataが提供する情報のうちデータベースに関する情報のみを提供します。
基本的にはDatabaseMetaDataが提供するインタフェースに処理を委譲します。

作成者:
Kitagawa

コンストラクタの概要
DatabaseInformation(DatabaseSession session)
          コンストラクタ
 
メソッドの概要
 java.util.List getCatalogNameList()
          カタログ名リストを取得します。
 java.lang.String getCatalogSeparator()
          このデータベースがカタログ名とテーブル名のセパレータとして使用する文字列を取得します。
 java.lang.String getCatalogTerm()
          Catalogに対するデータベースベンダーの推奨用語を取得します。
 java.lang.String getDriverName()
          JDBCドライバ名を取得します。
 java.lang.String getDriverVersion()
          JDBCドライババージョンを文字列として取得します。
 java.lang.String getProcedureTerm()
          Procedureに対するデータベースベンダーの推奨用語を取得します。
 java.lang.String getProductName()
          このデータベース製品名を取得します。
 java.lang.String getProductVersion()
          このデータベース製品のバージョンを取得します。
 java.util.List getSchemaNameList()
          スキーマ名リストを取得します。
 java.util.List getSchemaNameList(java.lang.String catalog)
          スキーマ名リストを取得します。
 java.lang.String getSchemaTerm()
          Schemaに対するデータベースベンダーの推奨用語を取得します。
 java.util.List getTableList(java.lang.String catalog, java.lang.String schema)
          指定されたカタログ、スキーマのテーブルリストを取得します。
 java.util.List getTableTypeNameList()
          テーブルタイプ名リストを取得します。
 java.util.List getTypeInfoNameList()
          テーブル情報名リストを取得します。
 java.lang.String getURL()
          データベースより提供される接続URLを取得します。
 java.lang.String getUserName()
          データベースより提供される接続ユーザーを取得します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DatabaseInformation

public DatabaseInformation(DatabaseSession session)
コンストラクタ

パラメータ:
session - データベースセッションオブジェクト
メソッドの詳細

getProductName

public java.lang.String getProductName()
                                throws DatabaseSessionException,
                                       ResultSetAccessException
このデータベース製品名を取得します。

戻り値:
このデータベース製品名
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getProductVersion

public java.lang.String getProductVersion()
                                   throws DatabaseSessionException,
                                          ResultSetAccessException
このデータベース製品のバージョンを取得します。

戻り値:
データベース製品のバージョン
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getDriverName

public java.lang.String getDriverName()
                               throws DatabaseSessionException,
                                      ResultSetAccessException
JDBCドライバ名を取得します。

戻り値:
JDBCドライバ名
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getDriverVersion

public java.lang.String getDriverVersion()
                                  throws DatabaseSessionException,
                                         ResultSetAccessException
JDBCドライババージョンを文字列として取得します。

戻り値:
JDBCドライババージョン
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getUserName

public java.lang.String getUserName()
                             throws DatabaseSessionException,
                                    ResultSetAccessException
データベースより提供される接続ユーザーを取得します。

戻り値:
データベースより提供される接続ユーザー
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getURL

public java.lang.String getURL()
                        throws DatabaseSessionException,
                               ResultSetAccessException
データベースより提供される接続URLを取得します。

戻り値:
データベースより提供される接続URL
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getCatalogTerm

public java.lang.String getCatalogTerm()
                                throws DatabaseSessionException,
                                       ResultSetAccessException
Catalogに対するデータベースベンダーの推奨用語を取得します。

戻り値:
Catalogに対するデータベースベンダーの推奨用語
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getProcedureTerm

public java.lang.String getProcedureTerm()
                                  throws DatabaseSessionException,
                                         ResultSetAccessException
Procedureに対するデータベースベンダーの推奨用語を取得します。

戻り値:
Procedureに対するデータベースベンダーの推奨用語
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getSchemaTerm

public java.lang.String getSchemaTerm()
                               throws DatabaseSessionException,
                                      ResultSetAccessException
Schemaに対するデータベースベンダーの推奨用語を取得します。

戻り値:
Schemaに対するデータベースベンダーの推奨用語
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getCatalogSeparator

public java.lang.String getCatalogSeparator()
                                     throws DatabaseSessionException,
                                            ResultSetAccessException
このデータベースがカタログ名とテーブル名のセパレータとして使用する文字列を取得します。

戻り値:
データベースがカタログ名とテーブル名のセパレータとして使用する文字列
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生

getCatalogNameList

public java.util.List getCatalogNameList()
                                  throws DatabaseSessionException,
                                         ResultSetAccessException,
                                         IllegalResultSetLocationIndexException,
                                         IllegalResultSetAdjustmentException
カタログ名リストを取得します。

戻り値:
カタログ名リスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

getSchemaNameList

public java.util.List getSchemaNameList()
                                 throws DatabaseSessionException,
                                        ResultSetAccessException,
                                        IllegalResultSetLocationIndexException,
                                        IllegalResultSetAdjustmentException
スキーマ名リストを取得します。

戻り値:
スキーマ名リスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

getSchemaNameList

public java.util.List getSchemaNameList(java.lang.String catalog)
                                 throws DatabaseSessionException,
                                        ResultSetAccessException,
                                        IllegalResultSetLocationIndexException,
                                        IllegalResultSetAdjustmentException
スキーマ名リストを取得します。

パラメータ:
catalog - カタログ名
戻り値:
スキーマ名リスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

getTableTypeNameList

public java.util.List getTableTypeNameList()
                                    throws DatabaseSessionException,
                                           ResultSetAccessException,
                                           IllegalResultSetLocationIndexException,
                                           IllegalResultSetAdjustmentException
テーブルタイプ名リストを取得します。

戻り値:
テーブルタイプ名リスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

getTypeInfoNameList

public java.util.List getTypeInfoNameList()
                                   throws DatabaseSessionException,
                                          ResultSetAccessException,
                                          IllegalResultSetLocationIndexException,
                                          IllegalResultSetAdjustmentException
テーブル情報名リストを取得します。

戻り値:
テーブル情報名リスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

getTableList

public java.util.List getTableList(java.lang.String catalog,
                                   java.lang.String schema)
                            throws DatabaseSessionException,
                                   ResultSetAccessException,
                                   IllegalResultSetLocationIndexException,
                                   IllegalResultSetAdjustmentException
指定されたカタログ、スキーマのテーブルリストを取得します。

パラメータ:
catalog - カタログ名(nullを許可)
schema - スキーマ名(nullを許可)
戻り値:
テーブルリスト
例外:
DatabaseSessionException - データベース接続例外が発生した場合にスローされます
ResultSetAccessException - ResultSetオブジェクトに対して正常にアクセスできなかった場合に発生
IllegalResultSetLocationIndexException - ResultSetオブジェクト操作時に不正な位置へのアクセスが行われた場合に発生
IllegalResultSetAdjustmentException - ResultSetオブジェクトに対して外部から不正な変更があった場合に発生

database
b2007092001