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文を発行し、件数を取得します。
結果の件数を、メッセージエリアにのみ出力します。
結果エリアには何も出力されません。
クラス 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
- 入出力エラー