DTO
- A data transfer object class.public interface IIdDAO<DTO> extends IBasicDAO<DTO>
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Serializable id) |
int[] |
deleteBatch(Collection<? extends Serializable> ids) |
DTO |
get(Serializable id) |
List<DTO> |
getBatch(Collection<? extends Serializable> ids)
Returns a List containing all DTOs for the given ids.
|
List<DTO> |
getBatch(Serializable... ids)
Returns a List containing all DTOs for the given ids.
|
Serializable |
getId(DTO dto) |
Class<? extends Serializable> |
getIdClass() |
Serializable getId(DTO dto)
dto
- A DTO.Class<? extends Serializable> getIdClass()
DTO get(Serializable id)
id
- The ID of the DTO to retrieve.null
,
if no DTO with the given ID exists.List<DTO> getBatch(Serializable... ids)
ids
- array of idsList<DTO> getBatch(Collection<? extends Serializable> ids)
ids
- List of idsboolean delete(Serializable id)
id
- The ID of the object to delete.int[] deleteBatch(Collection<? extends Serializable> ids)
ids
- A collection of IDs of objects to delete.ids.size()
counts
of objects really deleted from the database,
which contains 0 or 1 for each dto to be deleted.Copyright © 2017 Clazzes.org. All rights reserved.