org.kuali.rice.kns.dao.impl
Class NoteDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.rice.kns.dao.impl.NoteDaoOjb
All Implemented Interfaces:
NoteDao, PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class NoteDaoOjb
extends PlatformAwareDaoBaseOjb
implements NoteDao

This class is the OJB implementation of the NoteDao interface.

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

Field Summary
private static org.apache.log4j.Logger LOG
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
NoteDaoOjb()
          Default constructor.
 
Method Summary
private  void defaultOrderBy(org.apache.ojb.broker.query.QueryByCriteria query)
          This method defines the default sort for notes
 void deleteNote(Note note)
          Deletes a note from the DB using OJB.
 ArrayList findByremoteObjectId(String remoteObjectId)
          Retrieves document associated with a given object using OJB.
private  Collection findCollection(org.apache.ojb.broker.query.Query query)
          Retrieve a Collection of note instances found by a query.
 Note getNoteByNoteId(Long noteId)
          Retrieve note by a given noteIdentifier
 void save(Note note)
          Saves a note to the DB using OJB.
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG
Constructor Detail

NoteDaoOjb

public NoteDaoOjb()
Default constructor.

Method Detail

save

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

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

deleteNote

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

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

findByremoteObjectId

public ArrayList findByremoteObjectId(String remoteObjectId)
Retrieves document associated with a given object using OJB.

Specified by:
findByremoteObjectId in interface NoteDao
Parameters:
id -
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:

defaultOrderBy

private void defaultOrderBy(org.apache.ojb.broker.query.QueryByCriteria query)
This method defines the default sort for notes

Parameters:
query -

findCollection

private Collection findCollection(org.apache.ojb.broker.query.Query query)
                           throws org.springframework.dao.DataAccessException
Retrieve a Collection of note instances found by a query.

Parameters:
query -
Returns:
Throws:
org.springframework.dao.DataAccessException


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.