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 */ 016 package org.opengion.fukurou.transfer; 017 018 import 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 */ 033 public interface TransferExec { 034 035 /** 036 * ä¼é?処ç?‚’実行ã—ã¾ã™ã? 037 * 038 * @param vals ä¼é?ãƒ??ã‚¿(é…å?) 039 * @param config ä¼é?è¨å®šã‚ªãƒ–ジェクãƒ? 040 * @param tran トランザクションオブジェクãƒ? 041 */ 042 public void execute( final String[] vals, final TransferConfig config, final Transaction tran ); 043 }