public class NoteDaoJpa extends Object implements NoteDao
Constructor and Description |
---|
NoteDaoJpa() |
Modifier and Type | Method and Description |
---|---|
void |
deleteNote(Note note)
Deletes a note from the DB using JPA.
|
List<Note> |
findByremoteObjectId(String remoteObjectId)
Retrieves document associated with a given object using JPA.
|
javax.persistence.EntityManager |
getEntityManager() |
Note |
getNoteByNoteId(Long noteId)
Retrieve note by a given noteIdentifier
|
void |
save(Note note)
Saves a note to the DB using JPA.
|
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public NoteDaoJpa()
public void save(Note note) throws org.springframework.dao.DataAccessException
public void deleteNote(Note note) throws org.springframework.dao.DataAccessException
deleteNote
in interface NoteDao
org.springframework.dao.DataAccessException
public List<Note> findByremoteObjectId(String remoteObjectId)
findByremoteObjectId
in interface NoteDao
public Note getNoteByNoteId(Long noteId)
NoteDao
getNoteByNoteId
in interface NoteDao
public javax.persistence.EntityManager getEntityManager()
public void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the entityManager to setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.