DTO
- The DTO class.public interface IBasicDAO<DTO>
Modifier and Type | Method and Description |
---|---|
List<DTO> |
getAll() |
DTO |
save(DTO dto)
Save the given DTO an generate a new ID.
|
List<DTO> |
saveBatch(List<DTO> dtos)
Save the given list of DTOs in a database batch and generate
new IDs for them.
|
int |
update(DTO dto) |
int[] |
updateBatch(Collection<DTO> dtos)
Update a collection of objects as an SQL batch.
|
DTO save(DTO dto)
dto
- The DTO to insert.List<DTO> saveBatch(List<DTO> dtos)
dtos
- The list of DTOs to insert.int update(DTO dto)
dto
- The DTO to updateint[] updateBatch(Collection<DTO> dtos)
UnsupportedOperationException
in the default
implementation.dtos
- A collection of DTOs to updatedtos.size()
update counts per
dto to be updated.Copyright © 2017 Clazzes.org. All rights reserved.