@Service @Scope(value="prototype") public abstract class GumgaReadOnlyService<T extends GumgaIdable<?>,ID extends Serializable> extends AbstractGumgaService<T,ID> implements GumgaReadableServiceable<T>
gces, logger, repository| Constructor and Description |
|---|
GumgaReadOnlyService(GumgaCrudRepository<T,ID> repository) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPesquisa(SearchResult<T> result)
Processo executado apos do método Pesquisa da classe
GumgaReadableServiceable |
void |
afterView(T entity)
Processo executado apos do método view da classe
GumgaReadableServiceable |
void |
beforePesquisa(QueryObject query)
Processo executado antes do método Pesquisa da classe
GumgaReadableServiceable |
void |
beforeView(ID id)
Processo executado antes do método view da classe
GumgaReadableServiceable |
Object |
genercView(Class clazz,
ID id)
Pesquisa a entidade passada no parametro pela primary key da entidade do parametro
|
SearchResult<T> |
pesquisa(QueryObject query) |
T |
view(ID id)
Pesquisa a entidade tipada na classe
GumgaReadableServiceable pela primary key |
clazz, gumgaOiForSearch, gumgaOiForSearchWithWildCard, loadGumgaCustomFieldsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclazz, listOldVersions, viewpublic GumgaReadOnlyService(GumgaCrudRepository<T,ID> repository)
public void beforePesquisa(QueryObject query)
GumgaReadableServiceablequery - public void afterPesquisa(SearchResult<T> result)
GumgaReadableServiceableresult - @Transactional(readOnly=true) public SearchResult<T> pesquisa(QueryObject query)
pesquisa in interface GumgaReadableServiceable<T extends GumgaIdable<?>>public void beforeView(ID id)
GumgaReadableServiceableid - public void afterView(T entity)
GumgaReadableServiceableentity - @Transactional(readOnly=true) public T view(ID id)
GumgaReadableServiceable pela primary keyid - Copyright © 2017 Gumga. All rights reserved.