Class QuotesServiceImpl
java.lang.Object
info.ejava.examples.svc.content.quotes.services.QuotesServiceImpl
- All Implemented Interfaces:
QuotesService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsQuote(int id) createQuote(QuoteDTO quote) voidvoiddeleteQuote(int id) getQuote(int id) getQuotes(int offset, int limit) voidupdateQuote(int id, QuoteDTO quote) protected voidvoidvalidatePaging(int offset, int limit)
-
Field Details
-
nextId
-
quotes
-
-
Constructor Details
-
QuotesServiceImpl
-
-
Method Details
-
createQuote
- Specified by:
createQuotein interfaceQuotesService
-
updateQuote
- Specified by:
updateQuotein interfaceQuotesService
-
validate
-
deleteQuote
public void deleteQuote(int id) - Specified by:
deleteQuotein interfaceQuotesService
-
deleteAllQuotes
public void deleteAllQuotes()- Specified by:
deleteAllQuotesin interfaceQuotesService
-
containsQuote
public boolean containsQuote(int id) - Specified by:
containsQuotein interfaceQuotesService
-
getQuote
- Specified by:
getQuotein interfaceQuotesService
-
randomQuote
- Specified by:
randomQuotein interfaceQuotesService
-
getQuotes
- Specified by:
getQuotesin interfaceQuotesService
-
validatePaging
public void validatePaging(int offset, int limit)
-