public interface ErrorDefinitionsMapper
Modifier and Type | Method and Description |
---|---|
Long |
deleteUnusedErrorDefinitions(List<Long> errorDefinitionIds)
Delete all definitions stored under given ids
|
List<Long> |
getAllErrorDefinitionIds()
Get all error definitions
|
ErrorDefinition |
getById(Long id)
Get definition by ID
|
List<Long> |
getDistinctErrorDefinitionIds()
Get distinct ids that are currently used by the error metadata table
|
Long |
getErrorDefinitionIdByData(ErrorDefinition errorDefinition)
Get DB id by data
|
Long |
insertErrorDefinition(ErrorDefinition errorDefinition)
Persist a new error definition
|
ErrorDefinition getById(Long id)
id
- DB IDLong getErrorDefinitionIdByData(ErrorDefinition errorDefinition)
errorDefinition
- wanted definitionLong insertErrorDefinition(ErrorDefinition errorDefinition)
errorDefinition
- definition to be insertedList<Long> getDistinctErrorDefinitionIds()
List<Long> getAllErrorDefinitionIds()
Copyright © 2020. All rights reserved.