Method | Description | |
---|---|---|
AfterPropertiesSet ( ) : void |
Ensures that the property PersistenceExceptionTranslator has been set. Invoked by an Spring.Objects.Factory.IObjectFactory after it has injected all of an object's dependencies.
|
|
Invoke ( IMethodInvocation invocation ) : object |
Return a translated exception if this is appropriate, otherwise rethrow the original exception.
|
|
PersistenceExceptionTranslationInterceptor ( ) : System |
Initializes a new instance of the PersistenceExceptionTranslationInterceptor class. Needs to be configured with a PersistenceExceptionTranslator afterwards.
|
|
PersistenceExceptionTranslationInterceptor ( IListableObjectFactory objectFactory ) : System |
Initializes a new instance of the PersistenceExceptionTranslationInterceptor class, autodetecting IPersistenceExceptionTranslators in the given object factory.
|
|
PersistenceExceptionTranslationInterceptor ( IPersistenceExceptionTranslator persistenceExceptionTranslator ) : System |
Initializes a new instance of the PersistenceExceptionTranslationInterceptor class for the given IPersistenceExceptionTranslator
|
Method | Description | |
---|---|---|
DetectPersistenceExceptionTranslators ( IListableObjectFactory objectFactory ) : IPersistenceExceptionTranslator |
Detects the petsistence exception translators in the given object factory.
|
protected DetectPersistenceExceptionTranslators ( IListableObjectFactory objectFactory ) : IPersistenceExceptionTranslator | ||
objectFactory | IListableObjectFactory | The object factory for obtaining all IPersistenceExceptionTranslators. |
return | IPersistenceExceptionTranslator |
public Invoke ( IMethodInvocation invocation ) : object | ||
invocation | IMethodInvocation | |
return | object |
public PersistenceExceptionTranslationInterceptor ( ) : System | ||
return | System |
public PersistenceExceptionTranslationInterceptor ( IListableObjectFactory objectFactory ) : System | ||
objectFactory | IListableObjectFactory | The object factory to obtain all IPersistenceExceptionTranslators from. |
return | System |
public PersistenceExceptionTranslationInterceptor ( IPersistenceExceptionTranslator persistenceExceptionTranslator ) : System | ||
persistenceExceptionTranslator | IPersistenceExceptionTranslator | The persistence exception translator to use. |
return | System |