📄 notemanagerimpl.java
字号:
package com.relationinfo.service.impl;import java.util.List;import com.relationinfo.model.Note;import com.relationinfo.dao.NoteDAO;import com.relationinfo.service.NoteManager;public class NoteManagerImpl extends BaseManager implements NoteManager { private NoteDAO dao; /** * Set the DAO for communication with the data layer. * @param dao */ public void setNoteDAO(NoteDAO dao) { this.dao = dao; } /** * @see com.relationinfo.service.NoteManager#getNotes(com.relationinfo.model.Note) */ public List getNotes(final Note note) { return dao.getNotes(note); } /** * @see com.relationinfo.service.NoteManager#getNote(String notecode) */ public Note getNote(final String notecode) { return dao.getNote(new String(notecode)); } /** * @see com.relationinfo.service.NoteManager#saveNote(Note note) */ public void saveNote(Note note) { dao.saveNote(note); } /** * @see com.relationinfo.service.NoteManager#removeNote(String notecode) */ public void removeNote(final String notecode) { dao.removeNote(new String(notecode)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -