|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamedQuery<T>
This interface defines the contract for the named-query
xsd type
Method Summary | |
---|---|
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 |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
NamedQuery<T> description(String description)
description
element
description
- the value for the element description
NamedQuery
String getDescription()
description
element
description
NamedQuery<T> removeDescription()
description
element
NamedQuery
NamedQuery<T> query(String query)
query
element
query
- the value for the element query
NamedQuery
String getQuery()
query
element
query
NamedQuery<T> removeQuery()
query
element
NamedQuery
NamedQuery<T> lockMode(LockModeType lockMode)
lock-mode
element
lockMode
- the value for the element lock-mode
NamedQuery
NamedQuery<T> lockMode(String lockMode)
lock-mode
element
lockMode
- the value for the element lock-mode
NamedQuery
LockModeType getLockMode()
lock-mode
element
lock-mode
String getLockModeAsString()
lock-mode
element
lock-mode
NamedQuery<T> removeLockMode()
lock-mode
attribute
NamedQuery
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
element
QueryHint>
List<QueryHint<NamedQuery<T>>> getAllHint()
hint
elements
hint
NamedQuery<T> removeAllHint()
hint
elements
QueryHint>
NamedQuery<T> name(String name)
name
attribute
name
- the value for the attribute name
NamedQuery
String getName()
name
attribute
name
NamedQuery<T> removeName()
name
attribute
NamedQuery
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |