Class MassQueryCacheInvalidationEvent

java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.query.QueryEvent
io.hypersistence.optimizer.hibernate.event.query.MassQueryCacheInvalidationEvent
All Implemented Interfaces:
Event, Serializable

public class MassQueryCacheInvalidationEvent extends QueryEvent
The MassQueryCacheInvalidationEvent indicates that a native SQL statement has triggered a mass invalidation of the second-level query cache. To prevent this event, you need to set the table spaces that are affected by this SQL statement via the addSynchronizedQuerySpace, addSynchronizedEntityName or addSynchronizedEntityClass Hibernate query methods.
Since:
2.7.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • MassQueryCacheInvalidationEvent

      public MassQueryCacheInvalidationEvent(String queryString)
      Instantiate the event using the provided parameters.
      Parameters:
      queryString - query string
  • Method Details