org.jtheque.films.persistence.dao.able
Interface IDaoFilms

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

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

A DAO for films specification.

Author:
Baptiste Wicht

Field Summary
static String ACTORS_FILMS_TABLE
           
static String KINDS_FILMS_TABLE
           
static String TABLE
           
 
Method Summary
 void create(Film film)
          Create the film.
 void createAll(Iterable<Film> films)
          Create all the films in the list.
 Film createFilm()
          Create an empty film.
 boolean delete(Film film)
          Delete the film.
 Film getFilm(int id)
          Return the film with the specified id.
 Collection<Film> getFilms()
          Return all the films of the current collection.
 void save(Film film)
          Save the film on the database.
 
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

ACTORS_FILMS_TABLE

static final String ACTORS_FILMS_TABLE
See Also:
Constant Field Values

KINDS_FILMS_TABLE

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

getFilms

Collection<Film> getFilms()
Return all the films of the current collection.

Returns:
All the films of the current collection.

getFilm

Film getFilm(int id)
Return the film with the specified id.

Parameters:
id - The id of the searched film.
Returns:
The Film with the specified id or null if there is no film with this id.

create

void create(Film film)
Create the film.

Parameters:
film - The film to create.

createAll

void createAll(Iterable<Film> films)
Create all the films in the list.

Parameters:
films - The films to create.

save

void save(Film film)
Save the film on the database.

Parameters:
film - The film to save.

delete

boolean delete(Film film)
Delete the film.

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

createFilm

Film createFilm()
Create an empty film.

Returns:
An empty film.


Copyright © 2010 JTheque. All Rights Reserved.