@Repository public class ErrorDefinitionDAOImpl extends Object implements ErrorDefinitionDAO
Constructor and Description |
---|
ErrorDefinitionDAOImpl(ErrorDefinitionsMapper errorDefinitionsMapper)
Instantiates a new Error definition dao.
|
Modifier and Type | Method and Description |
---|---|
Long |
delete(List<Long> errorDefinitionIds)
Delete all definitions stored under given ids
|
ErrorDefinition |
find(Long errorDefinitionId)
Get definition by ID
|
List<Long> |
getAll()
Get all error definitions
|
List<Long> |
getDistinct()
Get distinct ids that are currently used by the error metadata table
|
Long |
getIdByData(ErrorDefinition errorDefinition)
Get DB id by data
|
Long |
save(ErrorDefinition errorDefinition)
Persist a new error definition
|
@Autowired public ErrorDefinitionDAOImpl(ErrorDefinitionsMapper errorDefinitionsMapper)
errorDefinitionsMapper
- the error definitions mapperpublic Long getIdByData(ErrorDefinition errorDefinition)
ErrorDefinitionDAO
getIdByData
in interface ErrorDefinitionDAO
errorDefinition
- wanted definitionpublic Long save(ErrorDefinition errorDefinition)
ErrorDefinitionDAO
save
in interface ErrorDefinitionDAO
errorDefinition
- definition to be insertedpublic ErrorDefinition find(Long errorDefinitionId)
ErrorDefinitionDAO
find
in interface ErrorDefinitionDAO
errorDefinitionId
- DB IDpublic List<Long> getDistinct()
ErrorDefinitionDAO
getDistinct
in interface ErrorDefinitionDAO
public List<Long> getAll()
ErrorDefinitionDAO
getAll
in interface ErrorDefinitionDAO
public Long delete(List<Long> errorDefinitionIds)
ErrorDefinitionDAO
delete
in interface ErrorDefinitionDAO
errorDefinitionIds
- list of ids to deleteCopyright © 2020. All rights reserved.