|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.bejug.javacareers.jobs.dao.hibernate.OfferDaoHibernateImpl
This class contains the common methods for all the Offer-classes.
| Field Summary |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Constructor Summary | |
OfferDaoHibernateImpl()
|
|
| Method Summary | |
void |
deleteOffer(java.lang.Integer id)
Delete an Offer by id. |
void |
deleteOffer(org.bejug.javacareers.jobs.model.Offer offer)
Delete an Offer by id. |
int |
deleteOffersByUrl(java.lang.String url)
Delete an Offers by Url field. |
org.bejug.javacareers.jobs.model.Offer |
getOffer(java.lang.Integer id)
Gets an Offer by id. |
protected int |
getOfferCount(java.lang.String namedQuery)
conveniant method for retrieving the count of offers. |
java.util.List |
getOffers()
Todo: look for a way to implement this method??? Lists all offers. |
void |
store(org.bejug.javacareers.jobs.model.Offer offer)
Adds and updates an offer to the database. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| 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 |
| Methods inherited from interface org.bejug.javacareers.jobs.dao.OfferDao |
getOfferCount |
| Constructor Detail |
public OfferDaoHibernateImpl()
| Method Detail |
public java.util.List getOffers()
throws org.springframework.dao.DataAccessException
getOffers in interface OfferDaoorg.springframework.dao.DataAccessException - thrown when something goes wrong
public void store(org.bejug.javacareers.jobs.model.Offer offer)
throws org.springframework.dao.DataAccessException
store in interface OfferDaooffer - the offer to add
org.springframework.dao.DataAccessException - thrown when something goes wrong when adding
an offer
public org.bejug.javacareers.jobs.model.Offer getOffer(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
getOffer in interface OfferDaoid - the id of the Offer
org.springframework.dao.DataAccessException - thrown zhen something goes wrong when getting
an Offer
public void deleteOffer(org.bejug.javacareers.jobs.model.Offer offer)
throws org.springframework.dao.DataAccessException
deleteOffer in interface OfferDaooffer - The persisted offer to delete.
org.springframework.dao.DataAccessException - thrown when something goes wrong
public void deleteOffer(java.lang.Integer id)
throws org.springframework.dao.DataAccessException
deleteOffer in interface OfferDaoid - The id of the offer to delete.
org.springframework.dao.DataAccessException - thrown when something goes wrong
public int deleteOffersByUrl(java.lang.String url)
throws org.springframework.dao.DataAccessException
deleteOffersByUrl in interface OfferDaourl - Value of Url field of persisted offers to delete.
org.springframework.dao.DataAccessException - thrown when something goes wrong
protected int getOfferCount(java.lang.String namedQuery)
throws org.springframework.dao.DataAccessException
namedQuery - the namedQuery to execute.
org.springframework.dao.DataAccessException - when something goes wrong.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||