Class AbstractEntityInterceptor
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.AbstractEntityInterceptor
- All Implemented Interfaces:
EntityInterceptor
Base class for
EntityInterceptor
with default implementations.-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.api.hibernate.EntityInterceptor
EntityInterceptor.AccessType
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractEntityInterceptor
(Object entity, EntityInterceptor next) -
Method Summary
Modifier and TypeMethodDescriptionaccessField
(String fieldName, EntityInterceptor.AccessType accessType) Allows to rewrite a field name of a specific entity type.createRelationInterceptor
(Relation relation) Create aRelationInterceptor
which intercepts modifications of relations.void
Delete entity represented by this interceptor
-
Field Details
-
entity
-
next
-
-
Constructor Details
-
AbstractEntityInterceptor
-
-
Method Details
-
accessField
Description copied from interface:EntityInterceptor
Allows to rewrite a field name of a specific entity type. This may be used to resolve virtual properties.- Specified by:
accessField
in interfaceEntityInterceptor
-
deleteEntity
public void deleteEntity()Description copied from interface:EntityInterceptor
Delete entity represented by this interceptor- Specified by:
deleteEntity
in interfaceEntityInterceptor
-
createRelationInterceptor
Description copied from interface:EntityInterceptor
Create aRelationInterceptor
which intercepts modifications of relations.- Specified by:
createRelationInterceptor
in interfaceEntityInterceptor
-