コード例 #1
0
  public String edit() {
    Paper paper = this.paperManager.getById(id);

    this.paperAttribute = paper.getPaperAttribute();
    this.note = paper.getNote();
    this.paperAuthor = paper.getPaperAuthor();
    this.paperName = paper.getPaperName();

    return SUCCESS;
  }
コード例 #2
0
  public String modify() {
    Paper paper = paperManager.getById(id);
    paper.setPaperName(paperName);
    paper.setPaperAttribute(paperAttribute);
    paper.setPaperAuthor(paperAuthor);
    paper.setNote(note);

    paperManager.modify(paper);

    return SUCCESS;
  }
コード例 #3
0
  public String addPaper() {

    Paper paper = new Paper();
    paper.setPaperName(paperName);
    paper.setPaperAttribute(paperAttribute);
    paper.setPaperAuthor(paperAuthor);
    paper.setNote(note);

    paperManager.save(paper);

    return SUCCESS;
  }