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.ModelsContext modelContext) Used in creating annotation instances from Jandex variantNamedQueryAnnotation(NamedQuery annotation, org.hibernate.models.spi.ModelsContext modelContext) Used in creating annotation instances from JDK and Jandes variantNamedQueryAnnotation(org.hibernate.models.spi.ModelsContext modelContext) Used in creating dynamic annotation instances (e.g. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> voidapply(JaxbNamedHqlQueryImpl jaxbNamedQuery, XmlDocumentContext xmlDocumentContext) booleanvoidcacheable(boolean value) voidcacheRegion(String value) voidvoidcacheStoreMode(CacheStoreMode value) comment()voidintvoidfetchSize(int value) flush()voidflush(QueryFlushMode value) voidflushMode(FlushModeType value) name()voidquery()voidbooleanreadOnly()voidreadOnly(boolean value) Class<?> voidresultClass(Class<?> value) inttimeout()voidtimeout(int value)
-
Constructor Details
-
NamedQueryAnnotation
public NamedQueryAnnotation(org.hibernate.models.spi.ModelsContext modelContext) Used in creating dynamic annotation instances (e.g. from XML) -
NamedQueryAnnotation
public NamedQueryAnnotation(NamedQuery annotation, org.hibernate.models.spi.ModelsContext modelContext) Used in creating annotation instances from JDK and Jandes variant -
NamedQueryAnnotation
public NamedQueryAnnotation(Map<String, Object> attributeValues, org.hibernate.models.spi.ModelsContext modelContext) Used in creating annotation instances from Jandex variant
-
-
Method Details
-
annotationType
- Specified by:
annotationTypein 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
-