org.appfuse.persistence
Interface ResumeDAO

All Superinterfaces:
DAO
All Known Implementing Classes:
ResumeDAOHibernate

public interface ResumeDAO
extends DAO

User Data Access Object (DAO) interface.


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 resumeId)
          Gets a resume based on a resume's id
 List getResumesByUserId(Long userId)
          Gets resume by name, create new resume 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.
 

Method Detail

getResumesByUserId

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

Parameters:
userId - the user's id
Throws:
DAOException

getResume

public Resume getResume(Long resumeId)
                 throws DAOException
Gets a resume based on a resume's id

Parameters:
resumeId -
Returns:
Resume
Throws:
DAOException

removeResume

public void removeResume(Object o)
                  throws DAOException
Deletes a resume.

Parameters:
o - the object to remove
Throws:
DAOException

saveObject

public Object saveObject(Object o)
                  throws DAOException
Generic method to save an object - handles both update and insert.

Parameters:
o - the object to save
Throws:
DAOException

removeObject

public void removeObject(Object o)
                  throws Exception
Generic method to delete an object

Parameters:
o - the object to delete
Throws:
DAOException
Exception

getSchools

public List getSchools(Long resumeId)
                throws DAOException
Gets a list of education experiences based on the passed in resumeId.

Parameters:
resumeId -
Returns:
Throws:
DAOException

getEducation

public Education getEducation(Long id)
                       throws DAOException
Gets a specific education experience based on its id.

Parameters:
id -
Returns:
Throws:
DAOException

getWorkHistory

public List getWorkHistory(Long resumeId)
                    throws DAOException
Gets a list of work experiences based on the passed in resumeId.

Parameters:
resumeId -
Returns:
Throws:
DAOException

getExperience

public Experience getExperience(Long id)
                         throws DAOException
Gets a specific work experience based on its id.

Parameters:
id -
Returns:
Throws:
DAOException

getReferences

public List getReferences(Long resumeId)
                   throws DAOException
Gets a list of references based on the passed in resumeId.

Parameters:
resumeId -
Returns:
Throws:
DAOException

getReference

public Reference getReference(Long id)
                       throws DAOException
Gets a specific reference based on its id.

Parameters:
id -
Returns:
Throws:
DAOException

getMemberships

public List getMemberships(Long resumeId)
                    throws DAOException
Gets a list of memberships based on the passed in resumeId.

Parameters:
resumeId -
Returns:
Throws:
DAOException

getMembership

public Membership getMembership(Long id)
                         throws DAOException
Gets a specific membership based on its id.

Parameters:
id -
Returns:
Throws:
DAOException


Copyright © 2002-2004