org.springbyexample.dao
Interface GenericDao<T>


public interface GenericDao<T>

Generic DAO interface.

Author:
David Winterfeldt

Method Summary
 T delete(Long id)
          Deletes record.
 T delete(T record)
          Deletes record.
 List<T> find()
          Find.
 List<T> find(int startIndex, int maxResults)
          Find records using a start index and max number of results.
 T findById(Long id)
          Find record by id.
 long findCount()
          Find's count.
 T save(T record)
          Saves record.
 

Method Detail

findById

T findById(Long id)
Find record by id.


find

List<T> find()
Find.


findCount

long findCount()
Find's count.


find

List<T> find(int startIndex,
             int maxResults)
Find records using a start index and max number of results.


save

T save(T record)
Saves record.


delete

T delete(Long id)
Deletes record.


delete

T delete(T record)
Deletes record.



Copyright © 2008-2009 Spring by Example. All Rights Reserved.