001/*
002 * Copyright (c) 2017 The openGion Project.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied. See the License for the specific language
014 * governing permissions and limitations under the License.
015 */
016package org.opengion.fukurou.fileexec;
017
018import java.nio.file.Path;
019
020import static org.opengion.fukurou.fileexec.AppliExec.GE72.*;           // enum のショートカット
021
022/**
023 * RunExec_NONE は、RunExec インターフェースの実装クラスで、何もしません。
024 *
025 *<pre>
026 * GE72.RUNTYPEが、'0' の場合の処理を行います。
027 *      0:NONE          // なにもしない
028 *      1:DBIN          // DB入力
029 *      2:PLSQL         // PL/SQLコール
030 *      3:BAT           // BATファイルコール
031 *      4:JSP           // JSPファイルコール(URLコネクション)
032 *
033 * 一次的に処理を止めたいときなどに使用します。
034 *</pre>
035 *
036 * @og.rev 7.2.5.0 (2020/06/01) 新規作成
037 *
038 * @version  7.2
039 * @author   Kazuhiko Hasegawa
040 * @since    JDK11,
041 */
042public class RunExec_NONE implements RunExec {
043
044        /**
045         * デフォルトコンストラクター
046         *
047         * @og.rev 7.2.5.0 (2020/06/01) 新規作成
048         */
049        public RunExec_NONE() { super(); }              // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
050
051        /**
052         * 実際に処理を実行するプログラムのメソッド。
053         *
054         * @og.rev 7.2.5.0 (2020/06/01) 新規作成
055         *
056         * @param       path 処理するファイルパス
057         * @param       ge72Data GE72 テーブルデータ
058         * @return      処理件数(正は成功、マイナスは異常時の行番号)
059         */
060        @Override       // RunExec
061        public int exec( final Path path , final String[] ge72Data ) {
062                return 0;
063        }
064
065        /**
066         * 追加で呼び出す PL/SQL を実行します。
067         *
068         * これは、取り込み処理の実施結果にかかわらず、必ず呼ばれます。
069         *
070         * @og.rev 7.2.5.0 (2020/06/01) 新規作成
071         *
072         * @param       path 処理するファイルパス
073         * @param       ge72Data GE72 テーブルデータ
074         * @param       fgtkan 取込完了フラグ(0:取込なし , 1:処理中 , 2:済 , 7:デーモンエラー , 8:アプリエラー)
075         * @param       errMsg エラーメッセージ
076         */
077        @Override       // RunExec
078        public void endExec( final Path path , final String[] ge72Data , final String fgtkan , final String errMsg ) {
079//              return ;
080        }
081}