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としてそのまま実行します。
クラス 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
- 入出力エラー