
public interface NamedQuery<T> extends Child<T>, OrmNamedQueryCommType<T,NamedQuery<T>,QueryHint<NamedQuery<T>>>
named-query xsd type| Modifier and Type | Method and Description |
|---|---|
QueryHint<NamedQuery<T>> |
createHint()
Creates a new
hint element |
NamedQuery<T> |
description(String description)
Sets the
description element |
List<QueryHint<NamedQuery<T>>> |
getAllHint()
Returns all
hint elements |
String |
getDescription()
Returns the
description element |
LockModeType |
getLockMode()
Returns the
lock-mode element |
String |
getLockModeAsString()
Returns the
lock-mode element |
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> |
lockMode(LockModeType lockMode)
Sets the
lock-mode element |
NamedQuery<T> |
lockMode(String lockMode)
Sets the
lock-mode 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> |
removeDescription()
Removes the
description element |
NamedQuery<T> |
removeLockMode()
Removes the
lock-mode attribute |
NamedQuery<T> |
removeName()
Removes the
name attribute |
NamedQuery<T> |
removeQuery()
Removes the
query element |
NamedQuery<T> description(String description)
description elementdescription - the value for the element descriptionNamedQueryString getDescription()
description elementdescriptionNamedQuery<T> removeDescription()
description elementNamedQueryNamedQuery<T> query(String query)
query elementquery - the value for the element queryNamedQueryString getQuery()
query elementqueryNamedQuery<T> removeQuery()
query elementNamedQueryNamedQuery<T> lockMode(LockModeType lockMode)
lock-mode elementlockMode - the value for the element lock-modeNamedQueryNamedQuery<T> lockMode(String lockMode)
lock-mode elementlockMode - the value for the element lock-modeNamedQueryLockModeType getLockMode()
lock-mode elementlock-modeString getLockModeAsString()
lock-mode elementlock-modeNamedQuery<T> removeLockMode()
lock-mode attributeNamedQueryQueryHint<NamedQuery<T>> getOrCreateHint()
hint element will be created and returned.
Otherwise, the first existing hint element will be returned.hintQueryHint<NamedQuery<T>> createHint()
hint elementQueryHint> List<QueryHint<NamedQuery<T>>> getAllHint()
hint elementshintNamedQuery<T> removeAllHint()
hint elementsQueryHint> NamedQuery<T> name(String name)
name attributename - the value for the attribute nameNamedQueryString getName()
name attributenameNamedQuery<T> removeName()
name attributeNamedQueryCopyright © 2021 JBoss by Red Hat. All rights reserved.