public class TemplateRestRepository<T,ID extends Serializable> extends Object implements RestRepository<T,ID>
| Constructor and Description |
|---|
TemplateRestRepository(Class<T> entityClass,
String url) |
TemplateRestRepository(Class<T> entityClass,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
long |
countByQuery(AbstractQuery query) |
void |
delete(ID id) |
void |
delete(Iterable<? extends T> ts) |
void |
delete(T t) |
void |
deleteAll() |
boolean |
exists(ID id) |
Iterable<T> |
findAll() |
Iterable<T> |
findAll(Iterable<ID> ids) |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(org.springframework.data.domain.Sort orders) |
Iterable<T> |
findByQuery(AbstractQuery query) |
T |
findOne(ID id) |
static <T,ID extends Serializable> |
forRegistrySymbol(ProcessRegistry processRegistry,
String serviceSymbol,
Class<T> entityClass) |
static <T,ID extends Serializable> |
forRegistrySymbol(ProcessRegistry processRegistry,
String serviceSymbol,
Class<T> entityClass,
String entityResource) |
<R> Iterable<R> |
listByQuery(AbstractQuery query,
Class<R> ListingRecordClass) |
<S extends T> |
save(Iterable<S> entities) |
<S extends T> |
save(S s) |
protected void |
updateId(T entity,
ID id) |
public TemplateRestRepository(Class<T> entityClass, String url) throws MalformedURLException
MalformedURLExceptionpublic static <T,ID extends Serializable> TemplateRestRepository<T,ID> forRegistrySymbol(ProcessRegistry processRegistry, String serviceSymbol, Class<T> entityClass, String entityResource)
public static <T,ID extends Serializable> TemplateRestRepository<T,ID> forRegistrySymbol(ProcessRegistry processRegistry, String serviceSymbol, Class<T> entityClass)
public Iterable<T> findByQuery(AbstractQuery query)
findByQuery in interface RestRepository<T,ID extends Serializable>public long countByQuery(AbstractQuery query)
countByQuery in interface RestRepository<T,ID extends Serializable>public <R> Iterable<R> listByQuery(AbstractQuery query, Class<R> ListingRecordClass)
listByQuery in interface RestRepository<T,ID extends Serializable>public Iterable<T> findAll(org.springframework.data.domain.Sort orders)
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>public <S extends T> S save(S s)
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public <S extends T> Iterable<S> save(Iterable<S> entities)
save in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public T findOne(ID id)
findOne in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public boolean exists(ID id)
exists in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public Iterable<T> findAll()
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public Iterable<T> findAll(Iterable<ID> ids)
findAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public long count()
count in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(ID id)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(T t)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void delete(Iterable<? extends T> ts)
delete in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>public void deleteAll()
deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID extends Serializable>Copyright © 2011–2014 Red Hat. All rights reserved.