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 TypeMethodDescriptionboolean
containsQuote
(int id) createQuote
(QuoteDTO quote) void
void
deleteQuote
(int id) getQuote
(int id) getQuotes
(int offset, int limit) void
updateQuote
(int id, QuoteDTO quote) protected void
void
validatePaging
(int offset, int limit)
-
Field Details
-
nextId
-
quotes
-
-
Constructor Details
-
QuotesServiceImpl
-
-
Method Details
-
createQuote
- Specified by:
createQuote
in interfaceQuotesService
-
updateQuote
- Specified by:
updateQuote
in interfaceQuotesService
-
validate
-
deleteQuote
public void deleteQuote(int id) - Specified by:
deleteQuote
in interfaceQuotesService
-
deleteAllQuotes
public void deleteAllQuotes()- Specified by:
deleteAllQuotes
in interfaceQuotesService
-
containsQuote
public boolean containsQuote(int id) - Specified by:
containsQuote
in interfaceQuotesService
-
getQuote
- Specified by:
getQuote
in interfaceQuotesService
-
randomQuote
- Specified by:
randomQuote
in interfaceQuotesService
-
getQuotes
- Specified by:
getQuotes
in interfaceQuotesService
-
validatePaging
public void validatePaging(int offset, int limit)
-