org.kuali.rice.krad.dao.impl
Class NoteDaoJpa

java.lang.Object
  extended by org.kuali.rice.krad.dao.impl.NoteDaoJpa
All Implemented Interfaces:
NoteDao

public class NoteDaoJpa
extends Object
implements NoteDao

This class is the JPA implementation of the NoteDao interface.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
NoteDaoJpa()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoteDaoJpa

public NoteDaoJpa()
Method Detail

save

public void save(Note note)
          throws org.springframework.dao.DataAccessException
Saves a note to the DB using JPA.

Specified by:
save in interface NoteDao
Throws:
org.springframework.dao.DataAccessException

deleteNote

public void deleteNote(Note note)
                throws org.springframework.dao.DataAccessException
Deletes a note from the DB using JPA.

Specified by:
deleteNote in interface NoteDao
Throws:
org.springframework.dao.DataAccessException

findByremoteObjectId

public List<Note> findByremoteObjectId(String remoteObjectId)
Retrieves document associated with a given object using JPA.

Specified by:
findByremoteObjectId in interface NoteDao
Returns:

getNoteByNoteId

public Note getNoteByNoteId(Long noteId)
Description copied from interface: NoteDao
Retrieve note by a given noteIdentifier

Specified by:
getNoteByNoteId in interface NoteDao
Returns:

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)
Parameters:
entityManager - the entityManager to set


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.