public interface CrudService<T extends CollectionEntity>
CollectionEntity
entities.Modifier and Type | Method and Description |
---|---|
UUID |
create(T entity)
Creates a new entity.
|
void |
delete(@NotNull UUID key)
Deletes an entity by key.
|
boolean |
exists(@NotNull UUID key)
Checks if there is an entity with the key received.
|
T |
get(@NotNull UUID key)
Retrieves an entity by its key.
|
void |
update(T entity)
Updates an existing entity.
|
UUID create(@NotNull @Valid T entity)
entity
- to createvoid delete(@NotNull @NotNull UUID key)
key
- of the entity to be deleted.T get(@NotNull @NotNull UUID key)
key
- of the entity to be retrieved.void update(@NotNull @Valid T entity)
entity
- that will replace the existing entity.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.