|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
General interface for OfferDao's.
| 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. |
int |
getOfferCount()
Get the total number of offers. |
java.util.List |
getOffers()
Lists all offers. |
void |
store(org.bejug.javacareers.jobs.model.Offer offer)
Adds and updates an offer to the database. |
| Method Detail |
public java.util.List getOffers()
throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - thrown when something goes wrong
public void store(org.bejug.javacareers.jobs.model.Offer offer)
throws org.springframework.dao.DataAccessException
offer - 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
id - 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
offer - 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
id - 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
url - Value of Url field of persisted offers to delete.
org.springframework.dao.DataAccessException - thrown when something goes wrong
public int getOfferCount()
throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException - thrown when something goes wrong
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||