Package org.hibernate.envers.strategy
Interface AuditStrategy
-
- All Superinterfaces:
AuditStrategy
- All Known Implementing Classes:
DefaultAuditStrategy
,org.hibernate.envers.strategy.internal.DefaultAuditStrategy
,org.hibernate.envers.strategy.internal.ValidityAuditStrategy
,ValidityAuditStrategy
@Deprecated public interface AuditStrategy extends AuditStrategy
Deprecated.(since 5.4), useAuditStrategy
instead.Behaviours of different audit strategy for populating audit data.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
perform(Session session, java.lang.String entityName, org.hibernate.envers.boot.internal.EnversService enversService, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
Deprecated.default void
performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
-
Methods inherited from interface org.hibernate.envers.strategy.spi.AuditStrategy
addAdditionalColumns, addAssociationAtRevisionRestriction, addEntityAtRevisionRestriction, perform, performCollectionChange, postInitialize
-
-
-
-
Method Detail
-
perform
@Deprecated default void perform(Session session, java.lang.String entityName, org.hibernate.envers.boot.internal.EnversService enversService, java.io.Serializable id, java.lang.Object data, java.lang.Object revision)
Deprecated.Perform the persistence of audited data for regular entities.- Parameters:
session
- Session, which can be used to persist the data.entityName
- Name of the entity, in which the audited change happensenversService
- The EnversServiceid
- Id of the entity.data
- Audit data to persistrevision
- Current revision data
-
performCollectionChange
@Deprecated default void performCollectionChange(Session session, java.lang.String entityName, java.lang.String propertyName, org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeData persistentCollectionChangeData, java.lang.Object revision)
Deprecated.Perform the persistence of audited data for collection ("middle") entities.- Parameters:
session
- Session, which can be used to persist the data.entityName
- Name of the entity, in which the audited change happens.propertyName
- The name of the property holding the persistent collectionenversService
- The EnversServicepersistentCollectionChangeData
- Collection change data to be persisted.revision
- Current revision data
-
-