Class View.Literal

java.lang.Object
com.oracle.coherence.cdi.AnnotationLiteral<View>
com.oracle.coherence.cdi.View.Literal
All Implemented Interfaces:
Annotation
Enclosing class:
View

public static class View.Literal extends AnnotationLiteral<View> implements View
An annotation literal for the View annotation.
See Also:
  • Field Details

    • INSTANCE

      public static final View.Literal INSTANCE
      A singleton instance of View.Literal with the cache values flag set to true.
  • Method Details

    • of

      public static View.Literal of(boolean fCacheValues)
      Create a View.Literal.
      Parameters:
      fCacheValues - a flag that is true to cache both the keys and values of the materialized view locally, or false to only cache the keys
      Returns:
      a View.Literal with the specified value
    • cacheValues

      public boolean cacheValues()
      Obtain the flag that is true to cache both the keys and values of the materialized view locally, or false to only cache the keys (the default value is true).
      Returns:
      true to indicate that values should be cache or false to indicate that only keys should be cached.