public interface NamedQuery<T> extends Child<T>, OrmNamedQueryCommType<T,NamedQuery<T>,QueryHint<NamedQuery<T>>>
named-query
xsd typeModifier and Type | Method and Description |
---|---|
QueryHint<NamedQuery<T>> |
createHint()
Creates a new
hint element |
List<QueryHint<NamedQuery<T>>> |
getAllHint()
Returns all
hint elements |
String |
getName()
Returns the
name attribute |
QueryHint<NamedQuery<T>> |
getOrCreateHint()
If not already created, a new
hint element will be created and returned. |
String |
getQuery()
Returns the
query element |
NamedQuery<T> |
name(String name)
Sets the
name attribute |
NamedQuery<T> |
query(String query)
Sets the
query element |
NamedQuery<T> |
removeAllHint()
Removes all
hint elements |
NamedQuery<T> |
removeName()
Removes the
name attribute |
NamedQuery<T> |
removeQuery()
Removes the
query element |
NamedQuery<T> query(String query)
query
elementquery
- the value for the element query
NamedQuery
String getQuery()
query
elementquery
NamedQuery<T> removeQuery()
query
elementNamedQuery
QueryHint<NamedQuery<T>> getOrCreateHint()
hint
element will be created and returned.
Otherwise, the first existing hint
element will be returned.hint
QueryHint<NamedQuery<T>> createHint()
hint
elementQueryHint>
List<QueryHint<NamedQuery<T>>> getAllHint()
hint
elementshint
NamedQuery<T> removeAllHint()
hint
elementsQueryHint>
NamedQuery<T> name(String name)
name
attributename
- the value for the attribute name
NamedQuery
String getName()
name
attributename
NamedQuery<T> removeName()
name
attributeNamedQuery
Copyright © 2017 JBoss by Red Hat. All rights reserved.