T
- The complete entity classW
- The writable entity class, can be the same as TK
- The primary key class of the entitypublic interface CrudService<T,W,K>
Modifier and Type | Method and Description |
---|---|
K |
create(W entity)
Persists a new entity.
|
void |
delete(K key)
Deletes the entity.
|
T |
get(K key)
Get an entity by its unique key.
|
PagingResponse<T> |
list(Pageable page)
Lists all entity.
|
void |
update(W entity)
Updates the entity.
|
K create(W entity)
entity
- to create.@Nullable T get(K key)
PagingResponse<T> list(@Nullable Pageable page)
page
- to enable paging.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.