|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.QueryMethodTypeImpl<T>
public class QueryMethodTypeImpl<T>
This class implements the query-methodType
xsd type
Original Documentation:
[
The query-method specifies the method for a finder or select
query.
The method-name element specifies the name of a finder or select
method in the entity bean's implementation class.
Each method-param must be defined for a query-method using the
method-params element.
It is used by the query-method element.
Example:
SELECT OBJECT(o) FROM Order o
WHERE o.amount > 1000
Constructor Summary | |
---|---|
QueryMethodTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
QueryMethodTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.lang.String |
getMethodName()
Returns the method-name element |
MethodParamsType<QueryMethodType<T>> |
methodParams()
If not already created, a new method-params element will be created and returned. |
QueryMethodType<T> |
removeMethodName()
Removes the method-name element |
QueryMethodType<T> |
removeMethodParams()
Removes the method-params element |
QueryMethodType<T> |
setMethodName(java.lang.String methodName)
If not already created, a new method-name element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryMethodTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public QueryMethodTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public QueryMethodType<T> setMethodName(java.lang.String methodName)
method-name
element with the given value will be created.
Otherwise, the existing method-name
element will be updated with the given value.
setMethodName
in interface QueryMethodType<T>
QueryMethodType
public QueryMethodType<T> removeMethodName()
method-name
element
removeMethodName
in interface QueryMethodType<T>
QueryMethodType
public java.lang.String getMethodName()
method-name
element
getMethodName
in interface QueryMethodType<T>
method-name
public QueryMethodType<T> removeMethodParams()
method-params
element
removeMethodParams
in interface QueryMethodType<T>
QueryMethodType
public MethodParamsType<QueryMethodType<T>> methodParams()
method-params
element will be created and returned.
Otherwise, the existing method-params
element will be returned.
methodParams
in interface QueryMethodType<T>
method-params
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |