T - Classe que contenha um identificador padrão, exemplo: ID do registroID - Tipo do identificador contido na classe@Service @Scope(value="prototype") public abstract class GumgaNoDeleteService<T extends GumgaIdable<ID>,ID extends Serializable> extends AbstractGumgaService<T,ID> implements GumgaReadableServiceable<T,ID>, GumgaWritableServiceable<T,ID>
gces, logger, repository| Constructor and Description |
|---|
GumgaNoDeleteService(GumgaCrudRepository<T,ID> repository) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPesquisa(SearchResult<T> result)
Processo executado apos do método Pesquisa da classe
GumgaNoDeleteService |
void |
afterSave(T entity)
Processo executado apos do método save da classe
GumgaNoDeleteService |
void |
afterUpdate(T entity)
Processo executado apos do método update da classe
GumgaNoDeleteService |
void |
afterView(T entity)
Processo executado apos do método view da classe
GumgaNoDeleteService |
void |
beforePesquisa(QueryObject query)
Processo executado antes do método Pesquisa da classe
GumgaNoDeleteService |
void |
beforeSave(T entity)
Processo executado antes do método save da classe
GumgaNoDeleteService |
void |
beforeUpdate(T entity)
Processo executado antes do método update da classe
GumgaNoDeleteService |
void |
beforeView(ID id)
Processo executado antes do método view da classe
GumgaNoDeleteService |
void |
forceFlush()
Sincronizar os dados do
EntityManager com o banco de dados. |
SearchResult<T> |
pesquisa(QueryObject query) |
T |
save(T resource)
Salvar entidade na base de dados
|
T |
view(ID id)
Pesquisa a entidade tipada na classe
GumgaNoDeleteService pela primary key |
clazz, gumgaOiForSearch, gumgaOiForSearchWithWildCard, loadGumgaCustomFieldsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclazz, listOldVersionspublic GumgaNoDeleteService(GumgaCrudRepository<T,ID> repository)
public void beforePesquisa(QueryObject query)
GumgaNoDeleteServicequery - Objeto de pesquisapublic void afterPesquisa(SearchResult<T> result)
GumgaNoDeleteServiceresult - Resultado da pesquisa@Transactional(readOnly=true) public SearchResult<T> pesquisa(QueryObject query)
pesquisa in interface GumgaReadableServiceable<T extends GumgaIdable<ID>,ID extends Serializable>public void beforeView(ID id)
GumgaNoDeleteServiceid - Id da Entidadepublic void afterView(T entity)
GumgaNoDeleteServiceentity - Id da Entidade@Transactional(readOnly=true) public T view(ID id)
GumgaNoDeleteService pela primary keyview in interface GumgaReadableServiceable<T extends GumgaIdable<ID>,ID extends Serializable>id - Id da Entidadepublic void beforeSave(T entity)
GumgaNoDeleteServiceentity - Entidadepublic void beforeUpdate(T entity)
GumgaNoDeleteServiceentity - Entidadepublic void afterSave(T entity)
GumgaNoDeleteServiceentity - Entidadepublic void afterUpdate(T entity)
GumgaNoDeleteServiceentity - Entidade@Transactional public T save(T resource)
save in interface GumgaWritableServiceable<T extends GumgaIdable<ID>,ID extends Serializable>resource - Entidade a ser salvapublic void forceFlush()
EntityManager com o banco de dados.Copyright © 2018 Gumga. All rights reserved.