|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar30.QueryTypeImpl<T>
public class QueryTypeImpl<T>
This class implements the queryType
xsd type
Original Documentation:
The queryType defines a finder or select
query. It contains
- an optional description of the query
- the specification of the finder or select
method it is used by
- an optional specification of the result type
mapping, if the query is for a select method
and entity objects are returned.
- the EJB QL query string that defines the query.
Queries that are expressible in EJB QL must use the ejb-ql
element to specify the query. If a query is not expressible
in EJB QL, the description element should be used to
describe the semantics of the query and the ejb-ql element
should be empty.
The result-type-mapping is an optional element. It can only
be present if the query-method specifies a select method
that returns entity objects. The default value for the
result-type-mapping element is "Local".
Constructor Summary | |
---|---|
QueryTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
QueryTypeImpl(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 |
getDescription()
Returns the description element |
java.lang.String |
getEjbQl()
Returns the ejb-ql element |
ResultTypeMappingType |
getResultTypeMapping()
Returns the result-type-mapping element |
java.lang.String |
getResultTypeMappingAsString()
Returns the result-type-mapping element |
QueryMethodType<QueryType<T>> |
queryMethod()
If not already created, a new query-method element will be created and returned. |
QueryType<T> |
removeDescription()
Removes the description element |
QueryType<T> |
removeEjbQl()
Removes the ejb-ql element |
QueryType<T> |
removeQueryMethod()
Removes the query-method element |
QueryType<T> |
setDescription(java.lang.String description)
If not already created, a new description element with the given value will be created. |
QueryType<T> |
setEjbQl(java.lang.String ejbQl)
If not already created, a new ejb-ql element with the given value will be created. |
QueryType<T> |
setResultTypeMapping(ResultTypeMappingType resultTypeMapping)
If not already created, a new result-type-mapping element with the given value will be created. |
QueryType<T> |
setResultTypeMapping(java.lang.String resultTypeMapping)
If not already created, a new result-type-mapping 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 QueryTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public QueryTypeImpl(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 QueryType<T> setDescription(java.lang.String description)
description
element with the given value will be created.
Otherwise, the existing description
element will be updated with the given value.
setDescription
in interface QueryType<T>
QueryType
public QueryType<T> removeDescription()
description
element
removeDescription
in interface QueryType<T>
QueryType
public java.lang.String getDescription()
description
element
getDescription
in interface QueryType<T>
description
public QueryType<T> removeQueryMethod()
query-method
element
removeQueryMethod
in interface QueryType<T>
QueryType
public QueryMethodType<QueryType<T>> queryMethod()
query-method
element will be created and returned.
Otherwise, the existing query-method
element will be returned.
queryMethod
in interface QueryType<T>
query-method
public QueryType<T> setResultTypeMapping(ResultTypeMappingType resultTypeMapping)
result-type-mapping
element with the given value will be created.
Otherwise, the existing result-type-mapping
element will be updated with the given value.
setResultTypeMapping
in interface QueryType<T>
QueryType
public QueryType<T> setResultTypeMapping(java.lang.String resultTypeMapping)
result-type-mapping
element with the given value will be created.
Otherwise, the existing result-type-mapping
element will be updated with the given value.
setResultTypeMapping
in interface QueryType<T>
QueryType
public ResultTypeMappingType getResultTypeMapping()
result-type-mapping
element
getResultTypeMapping
in interface QueryType<T>
result-type-mapping
public java.lang.String getResultTypeMappingAsString()
result-type-mapping
element
getResultTypeMappingAsString
in interface QueryType<T>
result-type-mapping
public QueryType<T> setEjbQl(java.lang.String ejbQl)
ejb-ql
element with the given value will be created.
Otherwise, the existing ejb-ql
element will be updated with the given value.
setEjbQl
in interface QueryType<T>
QueryType
public QueryType<T> removeEjbQl()
ejb-ql
element
removeEjbQl
in interface QueryType<T>
QueryType
public java.lang.String getEjbQl()
ejb-ql
element
getEjbQl
in interface QueryType<T>
ejb-ql
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |