org.appfuse.persistence.hibernate
Class ResumeDAOHibernate

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended byorg.appfuse.persistence.hibernate.ResumeDAOHibernate
All Implemented Interfaces:
DAO, InitializingBean, ResumeDAO

public class ResumeDAOHibernate
extends HibernateDaoSupport
implements ResumeDAO


Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
ResumeDAOHibernate()
           
 
Method Summary
 Education getEducation(Long id)
          Gets a specific education experience based on its id.
 Experience getExperience(Long id)
          Gets a specific work experience based on its id.
 Membership getMembership(Long id)
          Gets a specific membership based on its id.
 List getMemberships(Long resumeId)
          Gets a list of memberships based on the passed in resumeId.
 Reference getReference(Long id)
          Gets a specific reference based on its id.
 List getReferences(Long resumeId)
          Gets a list of references based on the passed in resumeId.
 Resume getResume(Long id)
          Gets a resume based on a resume's id
 List getResumesByUserId(Long userId)
          Get resume by name, create new one if necessary.
 List getSchools(Long resumeId)
          Gets a list of education experiences based on the passed in resumeId.
 List getWorkHistory(Long resumeId)
          Gets a list of work experiences based on the passed in resumeId.
 void removeObject(Object o)
          Generic method to delete an object
 void removeResume(Object o)
          Deletes a resume.
 Object saveObject(Object o)
          Generic method to save an object - handles both update and insert.
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResumeDAOHibernate

public ResumeDAOHibernate()
Method Detail

getResumesByUserId

public List getResumesByUserId(Long userId)
                        throws DAOException
Get resume by name, create new one if necessary.

Specified by:
getResumesByUserId in interface ResumeDAO
Parameters:
userId - the current user's id
Returns:
a list of the user's resumes
Throws:
DAOException

getResume

public Resume getResume(Long id)
                 throws DAOException
Description copied from interface: ResumeDAO
Gets a resume based on a resume's id

Specified by:
getResume in interface ResumeDAO
Parameters:
id -
Returns:
Resume
Throws:
DAOException
See Also:
ResumeDAO.getResume(java.lang.Long)

saveObject

public Object saveObject(Object o)
                  throws DAOException
Description copied from interface: ResumeDAO
Generic method to save an object - handles both update and insert.

Specified by:
saveObject in interface ResumeDAO
Parameters:
o - the object to save
Throws:
DAOException
See Also:
ResumeDAO.saveObject(java.lang.Object)

removeObject

public void removeObject(Object o)
                  throws Exception
Description copied from interface: ResumeDAO
Generic method to delete an object

Specified by:
removeObject in interface ResumeDAO
Parameters:
o - the object to delete
Throws:
Exception
See Also:
ResumeDAO.removeObject(java.lang.Object)

removeResume

public void removeResume(Object o)
                  throws DAOException
Description copied from interface: ResumeDAO
Deletes a resume.

Specified by:
removeResume in interface ResumeDAO
Parameters:
o - the object to remove
Throws:
DAOException
See Also:
ResumeDAO.removeResume(java.lang.Object)

getEducation

public Education getEducation(Long id)
                       throws DAOException
Description copied from interface: ResumeDAO
Gets a specific education experience based on its id.

Specified by:
getEducation in interface ResumeDAO
Parameters:
id -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getEducation(java.lang.Long)

getSchools

public List getSchools(Long resumeId)
                throws DAOException
Description copied from interface: ResumeDAO
Gets a list of education experiences based on the passed in resumeId.

Specified by:
getSchools in interface ResumeDAO
Parameters:
resumeId -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getSchools(java.lang.Long)

getExperience

public Experience getExperience(Long id)
                         throws DAOException
Description copied from interface: ResumeDAO
Gets a specific work experience based on its id.

Specified by:
getExperience in interface ResumeDAO
Parameters:
id -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getExperience(java.lang.Long)

getWorkHistory

public List getWorkHistory(Long resumeId)
                    throws DAOException
Description copied from interface: ResumeDAO
Gets a list of work experiences based on the passed in resumeId.

Specified by:
getWorkHistory in interface ResumeDAO
Parameters:
resumeId -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getWorkHistory(java.lang.Long)

getReferences

public List getReferences(Long resumeId)
                   throws DAOException
Description copied from interface: ResumeDAO
Gets a list of references based on the passed in resumeId.

Specified by:
getReferences in interface ResumeDAO
Parameters:
resumeId -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getReferences(java.lang.Long)

getReference

public Reference getReference(Long id)
                       throws DAOException
Description copied from interface: ResumeDAO
Gets a specific reference based on its id.

Specified by:
getReference in interface ResumeDAO
Parameters:
id -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getReference(java.lang.Long)

getMemberships

public List getMemberships(Long resumeId)
                    throws DAOException
Description copied from interface: ResumeDAO
Gets a list of memberships based on the passed in resumeId.

Specified by:
getMemberships in interface ResumeDAO
Parameters:
resumeId -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getMemberships(java.lang.Long)

getMembership

public Membership getMembership(Long id)
                         throws DAOException
Description copied from interface: ResumeDAO
Gets a specific membership based on its id.

Specified by:
getMembership in interface ResumeDAO
Parameters:
id -
Returns:
Throws:
DAOException
See Also:
ResumeDAO.getMembership(java.lang.Long)


Copyright © 2002-2004