Package com.oracle.coherence.cdi
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 theView
annotation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.coherence.cdi.View
View.Literal
-
-
Field Summary
Fields Modifier and Type Field Description static View.Literal
INSTANCE
A singleton instance ofView.Literal
with the cache values flag set to true.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cacheValues()
Obtain the flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys (the default value istrue
).static View.Literal
of(boolean fCacheValues)
Create aView.Literal
.-
Methods inherited from class com.oracle.coherence.cdi.AnnotationLiteral
annotationType, equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final View.Literal INSTANCE
A singleton instance ofView.Literal
with the cache values flag set to true.
-
-
Method Detail
-
of
public static View.Literal of(boolean fCacheValues)
Create aView.Literal
.- Parameters:
fCacheValues
- a flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys- Returns:
- a
View.Literal
with the specified value
-
cacheValues
public boolean cacheValues()
Obtain the flag that istrue
to cache both the keys and values of the materialized view locally, orfalse
to only cache the keys (the default value istrue
).- Returns:
true
to indicate that values should be cache orfalse
to indicate that only keys should be cached.
-
-