ex9_7.txt

来自「j2ee core design patterns」· 文本 代码 · 共 67 行

TXT
67
字号
Example 9.7 	ReviewInfoTO, InterviewInfoTO and WorkflowContext Code
package ActionAdapter;

import java.io.Serializable;

public class ReviewInfoTO implements Serializable {
  private String notes;
  private int rating;

  public ReviewInfoTO( String notes, int rating ) {
    this.notes = notes;
    this.rating = rating;
  }
  public String getNotes() {
    return notes;
  }
  public int getRating() {
    return rating;
  }
}


package ActionAdapter;

import java.io.Serializable;

public class InterviewInfoTO implements Serializable {
  private String notes;
  private int rating;

  public InterviewInfoTO( String notes, int rating ) {
    this.notes = notes;
    this.rating = rating;
  }
  public String getNotes() {
    return notes;
  }
  public int getRating() {
    return rating;
  }
}


package ActionAdapter;

public class WorkflowContext {
  String workflowName;
  String workflowProcessId;
  String workItemId;

  public WorkflowContext(String workflowName,
      String workflowProcessId, String workItemId) {
    this.workflowName = workflowName;
    this.workflowProcessId = workflowProcessId;
    this.workItemId = workItemId;
  }

  public String getWorkflowName() {
    return workflowName;
  }
  public String getWorkflowProcessId() {
    return workflowProcessId;
  }
  public String getWorkItemId() {
    return workItemId;
  }
}

⌨️ 快捷键说明

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