public interface NamedNativeQuery<T> extends Child<T>, OrmNamedNativeQueryCommType<T,NamedNativeQuery<T>,QueryHint<NamedNativeQuery<T>>>
named-native-query
xsd typeModifier and Type | Method and Description |
---|---|
QueryHint<NamedNativeQuery<T>> |
createHint()
Creates a new
hint element |
NamedNativeQuery<T> |
description(String description)
Sets the
description element |
List<QueryHint<NamedNativeQuery<T>>> |
getAllHint()
Returns all
hint elements |
String |
getDescription()
Returns the
description element |
String |
getName()
Returns the
name attribute |
QueryHint<NamedNativeQuery<T>> |
getOrCreateHint()
If not already created, a new
hint element will be created and returned. |
String |
getQuery()
Returns the
query element |
String |
getResultClass()
Returns the
result-class attribute |
String |
getResultSetMapping()
Returns the
result-set-mapping attribute |
NamedNativeQuery<T> |
name(String name)
Sets the
name attribute |
NamedNativeQuery<T> |
query(String query)
Sets the
query element |
NamedNativeQuery<T> |
removeAllHint()
Removes all
hint elements |
NamedNativeQuery<T> |
removeDescription()
Removes the
description element |
NamedNativeQuery<T> |
removeName()
Removes the
name attribute |
NamedNativeQuery<T> |
removeQuery()
Removes the
query element |
NamedNativeQuery<T> |
removeResultClass()
Removes the
result-class attribute |
NamedNativeQuery<T> |
removeResultSetMapping()
Removes the
result-set-mapping attribute |
NamedNativeQuery<T> |
resultClass(String resultClass)
Sets the
result-class attribute |
NamedNativeQuery<T> |
resultSetMapping(String resultSetMapping)
Sets the
result-set-mapping attribute |
NamedNativeQuery<T> description(String description)
description
elementdescription
- the value for the element description
NamedNativeQuery
String getDescription()
description
elementdescription
NamedNativeQuery<T> removeDescription()
description
elementNamedNativeQuery
NamedNativeQuery<T> query(String query)
query
elementquery
- the value for the element query
NamedNativeQuery
String getQuery()
query
elementquery
NamedNativeQuery<T> removeQuery()
query
elementNamedNativeQuery
QueryHint<NamedNativeQuery<T>> getOrCreateHint()
hint
element will be created and returned.
Otherwise, the first existing hint
element will be returned.hint
QueryHint<NamedNativeQuery<T>> createHint()
hint
elementQueryHint>
List<QueryHint<NamedNativeQuery<T>>> getAllHint()
hint
elementshint
NamedNativeQuery<T> removeAllHint()
hint
elementsQueryHint>
NamedNativeQuery<T> name(String name)
name
attributename
- the value for the attribute name
NamedNativeQuery
String getName()
name
attributename
NamedNativeQuery<T> removeName()
name
attributeNamedNativeQuery
NamedNativeQuery<T> resultClass(String resultClass)
result-class
attributeresultClass
- the value for the attribute result-class
NamedNativeQuery
String getResultClass()
result-class
attributeresult-class
NamedNativeQuery<T> removeResultClass()
result-class
attributeNamedNativeQuery
NamedNativeQuery<T> resultSetMapping(String resultSetMapping)
result-set-mapping
attributeresultSetMapping
- the value for the attribute result-set-mapping
NamedNativeQuery
String getResultSetMapping()
result-set-mapping
attributeresult-set-mapping
NamedNativeQuery<T> removeResultSetMapping()
result-set-mapping
attributeNamedNativeQuery
Copyright © 2024 JBoss by Red Hat. All rights reserved.