command.java

来自「this is a trade sale system realized by 」· Java 代码 · 共 27 行

JAVA
27
字号
package trader.nw;
import trader.*;
import java.io.*;

public abstract class Command implements Serializable {
  protected Object    result = null;
  protected Exception excep = null;

  protected abstract void execute(BrokerModel broker);
  /**
    * @exception  DuplicateException  
    *     if another record has same primary key
    * @exception  RecordNotFoundException 
    *     if no record is found in the table
    */

  public Object getResult( )  throws  Exception{
    if (this.result != null){
      return this.result;
    }
    if (this.excep != null){
      throw this.excep;
    }
    return null;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?