View Javadoc
1 //============================================================================== 2 // file : Command.java 3 // project: Front View Control 4 // 5 // last change: date: $Date: 2003/09/10 09:13:57 $ 6 // by: $Author: bitiboy $ 7 // revision: $Revision: 1.1 $ 8 //------------------------------------------------------------------------------ 9 // copyright: GNU GPL Software License (see class documentation) 10 //============================================================================== 11 package com.justhis.control; 12 13 14 /* 15 * $Id: Command.java,v 1.1 2003/09/10 09:13:57 bitiboy Exp $ 16 * 17 * Copyright 2003 Acai Software All Rights Reserved. 18 * 19 * This file Command.java is part of the Front View Control. 20 21 * The Front View Control is free software; you can redistribute it and/or modify 22 * it under the terms of the GNU General Public License as published by 23 * the Free Software Foundation; either version 2 of the License, or 24 * (at your option) any later version. 25 26 * The Front View Control is distributed in the hope that it will be useful, 27 * but WITHOUT ANY WARRANTY; without even the implied warranty of 28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29 * GNU General Public License for more details. 30 31 * You should have received a copy of the GNU General Public License 32 * along with the Front View Control; if not, write to the Free Software 33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 34 35 * http://www.justhis.com http://ejb.cn 36 * CONTACT: email = superaxis@sohu.com webmaster@justhis.com 37 */ 38 import com.justhis.util.exception.LogicException; 39 import com.justhis.util.exception.UtilException; 40 41 import java.sql.SQLException; 42 43 import javax.servlet.ServletException; 44 45 46 /*** 47 * common command interface 48 * 49 * @author <a href="http://blog.ejb.cn">acai</a> 50 * @version $Revision: 1.1 $ 51 */ 52 public interface Command { 53 //~ Methods ---------------------------------------------------------------- 54 55 /*** 56 * Get the name of this command. 57 * 58 * @return the name of the command 59 */ 60 public String getName(); 61 62 /*** 63 * execute command 64 * 65 * @return the page url 66 * 67 * @throws LogicException if happen logic error. 68 * @throws SQLException if persistence database or any sql error. 69 * @throws ServletException if servlet error occur. 70 * @throws UtilException if some utility errors happen 71 */ 72 public String execute() 73 throws LogicException, SQLException, ServletException, 74 UtilException; 75 76 /*** 77 * inital command by CommandDispatcher 78 * 79 * @param dispathcher 80 */ 81 public void init(CommandDispatcher dispathcher) throws ServletException; 82 } 83 84 85 /* 86 * $Log: Command.java,v $ 87 * Revision 1.1 2003/09/10 09:13:57 bitiboy 88 * *** empty log message *** 89 * 90 * 91 */

This page was automatically generated by Maven