Interface AuditStrategy
- All Superinterfaces:
org.hibernate.envers.strategy.spi.AuditStrategy
- All Known Implementing Classes:
DefaultAuditStrategy, DefaultAuditStrategy, ValidityAuditStrategy, ValidityAuditStrategy
@Deprecated(since="5.4")
public interface AuditStrategy
extends org.hibernate.envers.strategy.spi.AuditStrategy
Deprecated.
Behaviours of different audit strategy for populating audit data.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidperform(org.hibernate.Session session, String entityName, EnversService enversService, Object id, Object data, Object revision) Deprecated.useAuditStrategy.perform(org.hibernate.engine.spi.SharedSessionContractImplementor, String, Configuration, Object, Object, Object)default voidperformCollectionChange(org.hibernate.Session session, String entityName, String propertyName, EnversService enversService, PersistentCollectionChangeData persistentCollectionChangeData, Object revision) Deprecated.useAuditStrategy.performCollectionChange(SharedSessionContractImplementor, String, String, Configuration, PersistentCollectionChangeData, Object)Methods declared in interface org.hibernate.envers.strategy.spi.AuditStrategy
addAdditionalColumns, addAssociationAtRevisionRestriction, addEntityAtRevisionRestriction, perform, performCollectionChange, postInitialize
-
Method Details
-
perform
@Deprecated(since="5.2.1") default void perform(org.hibernate.Session session, String entityName, EnversService enversService, Object id, Object data, Object revision) Deprecated.useAuditStrategy.perform(org.hibernate.engine.spi.SharedSessionContractImplementor, String, Configuration, Object, Object, Object)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(since="5.2.1") default void performCollectionChange(org.hibernate.Session session, String entityName, String propertyName, EnversService enversService, PersistentCollectionChangeData persistentCollectionChangeData, Object revision) Deprecated.useAuditStrategy.performCollectionChange(SharedSessionContractImplementor, String, String, Configuration, PersistentCollectionChangeData, Object)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
-
AuditStrategyinstead.