Spring Data Document

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

All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.Repository<T,ID>
All Known Implementing Classes:
QueryDslMongoRepository, SimpleMongoRepository

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

Mongo specific Repository interface.

Author:
Oliver Gierke

Method Summary
 List<T> findAll()
           
 List<T> findAll(org.springframework.data.domain.Sort sort)
           
<S extends T>
List<S>
save(Iterable<S> 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, findAll, findOne, save
 

Method Detail

save

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

findAll

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

findAll

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

Spring Data Document

Copyright © 2012. All Rights Reserved.