org.perfectjpattern.jee.integration.dao.jpa
Interface IMovieGenericDao

All Superinterfaces:
IBaseDao<Long,Movie>, IBaseReadOnlyDao<Long,Movie>, IGenericDao<Long,Movie>, IGenericReadOnlyDao<Long,Movie>
All Known Implementing Classes:
MovieGenericDao

public interface IMovieGenericDao
extends IGenericDao<Long,Movie>

Abstract Movie IGenericDao definition

Version:
$Revision: 1.0 $Date: Feb 11, 2009 11:30:01 AM $
Author:
Giovanni Azua
 

Method Summary
 List<Movie> findByYear(int aYear)
          Returns matching Movie instances found.
 
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IGenericReadOnlyDao
findByExample
 
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseDao
create, delete, deleteAll, update
 
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseReadOnlyDao
contains, count, findAll, findById, getSession, getTransaction
 

Method Detail

findByYear

List<Movie> findByYear(int aYear)
Returns matching Movie instances found. Searches for movies by year. Example how to implement custom finder methods on top of IGenericReadOnlyDao.findByExample(Object, String...)

Parameters:
aYear - Year to search for
Returns:
matching Movie instances found


Copyright © 2007-2009. All Rights Reserved.