net.argius.stu.command
クラス Load

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

public final class Load
extends Command

ファイルに記述されたSQLを実行するコマンドです。

CSVファイルの場合、INSERT文を生成して実行します。 第1引数に拡張子が無いパラメータが指定された場合、 第2引数をCSVファイルと見なします。 それ以外の場合は、第1引数のファイル内容をSQLとしてそのまま実行します。


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

コンストラクタの詳細

Load

public Load()
メソッドの詳細

execute

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

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