|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.filmstobuy.services.impl.FilmsToBuyService
public final class FilmsToBuyService
The implementation of the films to buy service.
Field Summary |
---|
Fields inherited from interface org.jtheque.filmstobuy.services.able.IFilmsToBuyService |
---|
DATA_TYPE |
Constructor Summary | |
---|---|
FilmsToBuyService()
|
Method Summary | |
---|---|
void |
addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
|
void |
clearAll()
|
void |
create(FilmToBuy filmToBuy)
Create a new film to buy. |
boolean |
delete(FilmToBuy filmToBuy)
Delete a film to buy. |
void |
delete(int index)
Delete the film to buy. |
void |
editFilmToBuy(Integer index,
String title)
Edit a film to buy. |
Collection<FilmToBuy> |
getDatas()
|
String |
getDataType()
|
FilmToBuy |
getEmptyFilmToBuy()
Return an empty film to buy. |
Collection<FilmToBuy> |
getFilmsToBuy()
Return all the films to buy. |
FilmToBuy |
getFilmToBuy(int id)
Return the film to buy denoted by a specific id. |
void |
newFilmToBuy(String title)
Create a new FilmToBuy. |
void |
save(FilmToBuy film)
Save the film to buy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilmsToBuyService()
Method Detail |
---|
@Transactional public void newFilmToBuy(String title)
IFilmsToBuyService
newFilmToBuy
in interface IFilmsToBuyService
title
- The title of the film.public FilmToBuy getEmptyFilmToBuy()
IFilmsToBuyService
getEmptyFilmToBuy
in interface IFilmsToBuyService
@Transactional public void delete(int index)
IFilmsToBuyService
delete
in interface IFilmsToBuyService
index
- The index of the film to delete.@Transactional public void editFilmToBuy(Integer index, String title)
IFilmsToBuyService
editFilmToBuy
in interface IFilmsToBuyService
index
- The index of the film.title
- The new title of the film.@Transactional public void create(FilmToBuy filmToBuy)
IFilmsToBuyService
create
in interface IFilmsToBuyService
filmToBuy
- The film to buy to create.public Collection<FilmToBuy> getFilmsToBuy()
IFilmsToBuyService
getFilmsToBuy
in interface IFilmsToBuyService
@Transactional public void save(FilmToBuy film)
IFilmsToBuyService
save
in interface IFilmsToBuyService
film
- The film to buy to save.public FilmToBuy getFilmToBuy(int id)
IFilmsToBuyService
getFilmToBuy
in interface IFilmsToBuyService
id
- The id we want to search for.
@Transactional public boolean delete(FilmToBuy filmToBuy)
IFilmsToBuyService
delete
in interface IFilmsToBuyService
filmToBuy
- The film to buy to delete.
public Collection<FilmToBuy> getDatas()
getDatas
in interface org.jtheque.core.managers.persistence.able.DataContainer<FilmToBuy>
public void addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
addDataListener
in interface org.jtheque.core.managers.persistence.able.DataContainer<FilmToBuy>
@Transactional public void clearAll()
clearAll
in interface org.jtheque.core.managers.persistence.able.DataContainer<FilmToBuy>
public String getDataType()
getDataType
in interface org.jtheque.core.managers.persistence.able.DataContainer<FilmToBuy>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |