org.jtheque.filmstobuy.persistence.dao.able
Interface IDaoFilmsToBuy

All Superinterfaces:
org.jtheque.core.managers.persistence.able.JThequeDao
All Known Implementing Classes:
DaoFilmsToBuy

public interface IDaoFilmsToBuy
extends org.jtheque.core.managers.persistence.able.JThequeDao

Data Access object to access to films to buy.

Author:
Baptiste Wicht

Field Summary
static String TABLE
           
 
Method Summary
 void create(FilmToBuy film)
          Create a new film to buy.
 FilmToBuy createFilmToBuy()
          Create an empty not persisted film to buy.
 boolean delete(FilmToBuy film)
          Delete a film to buy.
 boolean delete(int id)
          Delete the film to buy with this id.
 Collection<FilmToBuy> getFilmsToBuy()
          Returns the complete list of the films to buy.
 FilmToBuy getFilmToBuy(int id)
          Returns the film identified by the id.
 void save(FilmToBuy film)
          Save the film to buy.
 
Methods inherited from interface org.jtheque.core.managers.persistence.able.JThequeDao
addDataListener, clearAll, removeDataListener
 

Field Detail

TABLE

static final String TABLE
See Also:
Constant Field Values
Method Detail

getFilmsToBuy

Collection<FilmToBuy> getFilmsToBuy()
Returns the complete list of the films to buy. Initializes the list from the DB if she's empty.

Returns:
The list of films

getFilmToBuy

FilmToBuy getFilmToBuy(int id)
Returns the film identified by the id.

Parameters:
id - The id of the film
Returns:
The film

create

void create(FilmToBuy film)
Create a new film to buy.

Parameters:
film - The film to buy to create

delete

boolean delete(FilmToBuy film)
Delete a film to buy.

Parameters:
film - The film to buy.
Returns:
true if the object is deleted else false.

delete

boolean delete(int id)
Delete the film to buy with this id.

Parameters:
id - The id of the film
Returns:
true if the object is deleted else false.

save

void save(FilmToBuy film)
Save the film to buy.

Parameters:
film - The film to save.

createFilmToBuy

FilmToBuy createFilmToBuy()
Create an empty not persisted film to buy.

Returns:
A new film to buy.


Copyright © 2010 JTheque. All Rights Reserved.