001/* 002 * Copyright (c) 2009 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.transfer; 017 018import org.opengion.fukurou.db.Transaction; 019 020/** 021 * 伝送要求に対するの実行方法を定義するインターフェースです。 022 * 023 * 各実装クラスでは、{@link #execute(String[], TransferConfig, Transaction)}を実装する必要があります。 024 * サブクラス内部で、DB関連の処理を行う場合は、引数のTransactionオブジェクトを利用して下さい。 025 * また、接続に対するCommit/Rollbackは、呼び出し元で行いますので、実行処理の中では行わないで下さい。 026 * 027 * @og.group 伝送システム 028 * 029 * @version 5.0 030 * @author Hiroki.Nakamura 031 * @since JDK1.6 032 */ 033public interface TransferExec { 034 035 /** 036 * 伝送処理を実行します。 037 * 038 * @param vals 伝送データ(配列) 039 * @param config 伝送設定オブジェクト 040 * @param tran トランザクションオブジェクト 041 */ 042 void execute( final String[] vals, final TransferConfig config, final Transaction tran ); 043}