org.springframework.data.document.mongodb.repository
Interface MongoRepository<T,ID extends java.io.Serializable>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>

public interface MongoRepository<T,ID extends java.io.Serializable>
extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>

Mongo specific Repository interface.

Author:
Oliver Gierke

Method Summary
 java.util.List<T> findAll()
           
 java.util.List<T> findAll(org.springframework.data.domain.Sort sort)
           
 java.util.List<T> save(java.lang.Iterable<? extends T> entites)
           
 
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
 
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, delete, delete, deleteAll, exists, findOne, save
 

Method Detail

save

java.util.List<T> save(java.lang.Iterable<? extends T> entites)
Specified by:
save in interface org.springframework.data.repository.CrudRepository<T,ID extends java.io.Serializable>

findAll

java.util.List<T> findAll()
Specified by:
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends java.io.Serializable>

findAll

java.util.List<T> findAll(org.springframework.data.domain.Sort sort)
Specified by:
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends java.io.Serializable>


Copyright © 2011. All Rights Reserved.