Annotation Type InvalidateQueryCache


@Target(TYPE) @Retention(RUNTIME) public @interface InvalidateQueryCache
This is put on entity bean types that themselves are not L2 cached directly but are instead joined to other entity beans that are query cached.

For example, we could put this on an Address entity bean that is not cached but is joined to a Customer bean that is query cached.

When this is put on an entity bean it means that Insert, Update or Delete changes result in a single table modification event that is sent around the cluster. This event is used to invalidate query caches where the entries have joined to this table.

For example, a query on Customer that joins to Address is cached. When an Address is changed that address table modification event is propagated and effectively invalidates query cache entries that are dependent on the address table.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specify a named cache region.
  • Element Details

    • region

      String region
      Specify a named cache region.

      The "default" region is called r0.

      Default:
      "r0"