1 /** 2 * Copyright 2005-2011 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.krad.dao; 17 18 import java.util.List; 19 20 import org.kuali.rice.krad.bo.Note; 21 22 23 /** 24 * The data access interface for NOte objects. 25 * 26 * @author Kuali Rice Team (rice.collab@kuali.org) 27 */ 28 public interface NoteDao { 29 /** 30 * Saves a note to the DB. 31 * 32 * @param line 33 */ 34 void save(Note note); 35 36 /** 37 * Deletes a note from the DB. 38 * 39 * @param line 40 */ 41 void deleteNote(Note note); 42 43 /** 44 * Retrieves a list of notes (by class type) associated with a given object. 45 * 46 * @param clazz 47 * @param id 48 * @return 49 */ 50 public List<Note> findByremoteObjectId(String id); 51 52 /** 53 * Retrieve note by a given noteIdentifier 54 * 55 * @param noteId 56 * @return 57 */ 58 public Note getNoteByNoteId(Long noteId); 59 }