Class BibliotecaDaoImpl
Object
AbstractJPADao<Biblioteca,Long>
BibliotecaDaoImpl
- All Implemented Interfaces:
Dao<Biblioteca,,Long> BibliotecaDao
@Repository
public class BibliotecaDaoImpl
extends AbstractJPADao<Biblioteca,Long>
implements BibliotecaDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBibliotecaArquivoaddArquivo(Biblioteca biblioteca, Arquivo arquivo) List<Arquivo> getArquivos(BibliotecaArquivoFilter filter) List<Arquivo> getArquivos(BibliotecaArquivoFilter filter, int offset, int limit) BibliotecagetBibliotecaPorSigla(String sigla) List<Biblioteca> getBibliotecaPorTipo(TipoBiblioteca tipo) booleanisSiglaEmUso(String sigla) booleanisSiglaEmUso(String sigla, Long excluideId) voidremoverArquivo(Integer fileId) intremoverArquivos(Collection<Integer> filesId) Methods inherited from class AbstractJPADao
findById, getEntityManager, read, read, remove, removeById, save, setEntityManager, update
-
Constructor Details
-
BibliotecaDaoImpl
public BibliotecaDaoImpl()
-
-
Method Details
-
isSiglaEmUso
- Specified by:
isSiglaEmUsoin interfaceBibliotecaDao
-
isSiglaEmUso
- Specified by:
isSiglaEmUsoin interfaceBibliotecaDao
-
getBibliotecaPorSigla
- Specified by:
getBibliotecaPorSiglain interfaceBibliotecaDao
-
getBibliotecaPorTipo
- Specified by:
getBibliotecaPorTipoin interfaceBibliotecaDao
-
addArquivo
@Transactional(propagation=REQUIRED) public BibliotecaArquivo addArquivo(Biblioteca biblioteca, Arquivo arquivo) - Specified by:
addArquivoin interfaceBibliotecaDao
-
getArquivos
- Specified by:
getArquivosin interfaceBibliotecaDao
-
getArquivos
- Specified by:
getArquivosin interfaceBibliotecaDao
-
getArquivosCount
- Specified by:
getArquivosCountin interfaceBibliotecaDao
-
removerArquivos
- Specified by:
removerArquivosin interfaceBibliotecaDao
-
removerArquivo
- Specified by:
removerArquivoin interfaceBibliotecaDao
-