@Component public final class GenericDaoAspect extends Object
| Constructor and Description |
|---|
GenericDaoAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterThrowing(org.springframework.dao.DataIntegrityViolationException e)
Convert a DataIntegrityViolationException into a DataConstraintException
|
void |
afterThrowing(org.springframework.dao.DataRetrievalFailureException e)
Convert a DataRetrievalFailureException into a DataNotFoundException
|
public void afterThrowing(org.springframework.dao.DataIntegrityViolationException e)
throws DataConstraintException
e - DataIntegrityViolationExceptionDataConstraintException - In any casepublic void afterThrowing(org.springframework.dao.DataRetrievalFailureException e)
throws DataNotFoundException
e - DataRetrievalFailureExceptionDataNotFoundException - In any caseCopyright © 2012. All Rights Reserved.