T
- public class SimpleSolrRepository<T> extends Object implements SolrCrudRepository<T,String>
SolrRepositoryFactory
Constructor and Description |
---|
SimpleSolrRepository() |
SimpleSolrRepository(SolrEntityInformation<T,String> metadata,
SolrOperations solrOperations) |
SimpleSolrRepository(SolrOperations solrOperations) |
SimpleSolrRepository(SolrOperations solrOperations,
Class<T> entityClass) |
Modifier and Type | Method and Description |
---|---|
long |
count()
Returns the number of entities available.
|
protected long |
count(Query query) |
void |
delete(Iterable<? extends T> entities) |
void |
delete(String id) |
void |
delete(T entity) |
void |
deleteAll() |
boolean |
exists(String id) |
Iterable<T> |
findAll() |
Iterable<T> |
findAll(Iterable<String> ids) |
Page<T> |
findAll(Pageable pageable) |
Iterable<T> |
findAll(Sort sort) |
T |
findOne(String id) |
Class<T> |
getEntityClass() |
String |
getIdFieldName() |
SolrOperations |
getSolrOperations() |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S entity) |
void |
setEntityClass(Class<T> entityClass) |
void |
setIdFieldName(String idFieldName) |
void |
setSolrOperations(SolrOperations solrOperations) |
public SimpleSolrRepository()
public SimpleSolrRepository(SolrOperations solrOperations)
public SimpleSolrRepository(SolrEntityInformation<T,String> metadata, SolrOperations solrOperations)
public SimpleSolrRepository(SolrOperations solrOperations, Class<T> entityClass)
public Page<T> findAll(Pageable pageable)
findAll
in interface PagingAndSortingRepository<T,String>
public Iterable<T> findAll(Sort sort)
findAll
in interface PagingAndSortingRepository<T,String>
public Iterable<T> findAll(Iterable<String> ids)
findAll
in interface CrudRepository<T,String>
public long count()
SolrRepository
count
in interface CrudRepository<T,String>
count
in interface SolrRepository<T,String>
protected long count(Query query)
public <S extends T> S save(S entity)
save
in interface CrudRepository<T,String>
public <S extends T> Iterable<S> save(Iterable<S> entities)
save
in interface CrudRepository<T,String>
public boolean exists(String id)
exists
in interface CrudRepository<T,String>
public void delete(String id)
delete
in interface CrudRepository<T,String>
public void delete(T entity)
delete
in interface CrudRepository<T,String>
public void delete(Iterable<? extends T> entities)
delete
in interface CrudRepository<T,String>
public void deleteAll()
deleteAll
in interface CrudRepository<T,String>
public final String getIdFieldName()
public final void setIdFieldName(String idFieldName)
public final void setSolrOperations(SolrOperations solrOperations)
public final SolrOperations getSolrOperations()
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.