net.argius.stu.command
クラス Count

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

public final class Count
extends Command

カウント処理のコマンドです。

パラメータ文字列の先頭にSELECT COUNT(*) FROMを 付加したSQL文を発行し、件数を取得します。 結果の件数を、メッセージエリアにのみ出力します。 結果エリアには何も出力されません。


コンストラクタの概要
Count()
           
 
メソッドの概要
protected  void execute(Connection conn, String parameter)
          COUNTコマンドを実行します。
 
クラス 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
 

コンストラクタの詳細

Count

public Count()
メソッドの詳細

execute

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

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