net.argius.stu.command
クラス Report

java.lang.Object
  拡張net.argius.stu.Command
      拡張net.argius.stu.command.Report
すべての実装インタフェース:
Comparator, EventListener, PropertyChangeListener

public class Report
extends Command
implements Comparator

DBに関する情報を取得するコマンドです。 以下の機能をサポートしています。

  1. DB情報(製品名・製品バージョン・ドライバ名・ドライババージョン)を表示
  2. テーブル情報(列名・列のNULL属性・列のタイプとサイズ)を表示
  3. テーブルのプライマリキー情報(キーの順序・列名・プライマリキー名)を表示
  4. テーブルのインデックス情報(インデックス名・インデックスキー)を表示


コンストラクタの概要
Report()
           
 
メソッドの概要
 int compare(Object o1, Object o2)
          順序付けのために2つの文字列配列を比較します。
protected  void execute(Connection conn, String parameter)
          REPORTコマンドを実行します。
 
クラス net.argius.stu.Command から継承したメソッド
getCommand, getLogLevel, getMessage, getMessage, getMessage, getProperty, getTimeoutSeconds, initialize, invoke, isSelect, print, print, println, propertyChange, resolvePath, setTimeout, showResult, split, warning, writeLog, writeLog, writeLog
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース java.util.Comparator から継承したメソッド
equals
 

コンストラクタの詳細

Report

public Report()
メソッドの詳細

execute

protected void execute(Connection conn,
                       String parameter)
                throws IllegalArgumentException,
                       SQLException,
                       IOException
REPORTコマンドを実行します。

オーバーライド:
クラス Command 内の execute
パラメータ:
conn - コネクション
parameter - 入力文字列
例外:
IllegalArgumentException - パラメータエラー
SQLException - データベースアクセスエラー
IOException - 入出力エラー

compare

public int compare(Object o1,
                   Object o2)
順序付けのために2つの文字列配列を比較します。

定義:
インタフェース Comparator 内の compare
パラメータ:
o1 - 文字列配列1
o2 - 文字列配列2
戻り値:
文字列配列1が文字列配列2より小さい場合は負の整数、 文字列配列1が文字列配列2より大きい場合は正の整数、 文字列配列1と文字列配列2が等しい場合は0