Class NamedQueryAnnotation
java.lang.Object
org.hibernate.boot.models.annotations.internal.NamedQueryAnnotation
- All Implemented Interfaces:
Annotation
@Generated("org.hibernate.orm.build.annotations.ClassGeneratorProcessor")
public class NamedQueryAnnotation
extends Object
implements NamedQuery
-
Constructor Summary
ConstructorsConstructorDescriptionNamedQueryAnnotation
(Map<String, Object> attributeValues, org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating annotation instances from Jandex variantNamedQueryAnnotation
(NamedQuery annotation, org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating annotation instances from JDK and Jandes variantNamedQueryAnnotation
(org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating dynamic annotation instances (e.g. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation>
void
apply
(JaxbNamedHqlQueryImpl jaxbNamedQuery, XmlDocumentContext xmlDocumentContext) boolean
void
cacheable
(boolean value) void
cacheRegion
(String value) void
void
cacheStoreMode
(CacheStoreMode value) comment()
void
int
void
fetchSize
(int value) flush()
void
flush
(QueryFlushMode value) void
flushMode
(FlushModeType value) name()
void
query()
void
boolean
readOnly()
void
readOnly
(boolean value) Class<?>
void
resultClass
(Class<?> value) int
timeout()
void
timeout
(int value)
-
Constructor Details
-
NamedQueryAnnotation
public NamedQueryAnnotation(org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating dynamic annotation instances (e.g. from XML) -
NamedQueryAnnotation
public NamedQueryAnnotation(NamedQuery annotation, org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating annotation instances from JDK and Jandes variant -
NamedQueryAnnotation
public NamedQueryAnnotation(Map<String, Object> attributeValues, org.hibernate.models.spi.SourceModelBuildingContext modelContext) Used in creating annotation instances from Jandex variant
-
-
Method Details
-
annotationType
- Specified by:
annotationType
in interfaceAnnotation
-
name
-
name
-
query
-
query
-
resultClass
-
resultClass
-
flush
-
flush
-
flushMode
-
flushMode
-
cacheable
public boolean cacheable() -
cacheable
public void cacheable(boolean value) -
cacheRegion
-
cacheRegion
-
fetchSize
public int fetchSize() -
fetchSize
public void fetchSize(int value) -
timeout
public int timeout() -
timeout
public void timeout(int value) -
comment
-
comment
-
cacheStoreMode
-
cacheStoreMode
-
cacheRetrieveMode
-
cacheRetrieveMode
-
cacheMode
-
readOnly
public boolean readOnly() -
readOnly
public void readOnly(boolean value) -
apply
-