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>

@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)
           
 List<T> save(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

List<T> save(Iterable<? extends T> 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 © 2011. All Rights Reserved.