Package org.apache.cayenne.map
Class EJBQLQueryDescriptor
- java.lang.Object
-
- org.apache.cayenne.map.QueryDescriptor
-
- org.apache.cayenne.map.EJBQLQueryDescriptor
-
- All Implemented Interfaces:
Serializable,ConfigurationNode,XMLSerializable
public class EJBQLQueryDescriptor extends QueryDescriptor
- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringejbql-
Fields inherited from class org.apache.cayenne.map.QueryDescriptor
DATA_MAP_ROOT, dataMap, DB_ENTITY_ROOT, EJBQL_QUERY, JAVA_CLASS_ROOT, name, OBJ_ENTITY_ROOT, PROCEDURE_QUERY, PROCEDURE_ROOT, properties, root, SELECT_QUERY, SQL_TEMPLATE, type
-
-
Constructor Summary
Constructors Constructor Description EJBQLQueryDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EJBQLQuerybuildQuery()Assembles Cayenne query instance of appropriate type from this descriptor.voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)Prints itself as XML to the provided XMLEncoder.StringgetEjbql()Returns EJBQL query string for this query.voidsetEjbql(String ejbql)Sets EJBQL query string for this query.-
Methods inherited from class org.apache.cayenne.map.QueryDescriptor
acceptVisitor, descriptor, ejbqlQueryDescriptor, getDataMap, getName, getProperties, getProperty, getRoot, getType, procedureQueryDescriptor, selectQueryDescriptor, setDataMap, setName, setProperties, setProperty, setRoot, setType, sqlTemplateDescriptor
-
-
-
-
Field Detail
-
ejbql
protected String ejbql
-
-
Method Detail
-
getEjbql
public String getEjbql()
Returns EJBQL query string for this query.
-
setEjbql
public void setEjbql(String ejbql)
Sets EJBQL query string for this query.
-
buildQuery
public EJBQLQuery buildQuery()
Description copied from class:QueryDescriptorAssembles Cayenne query instance of appropriate type from this descriptor.- Overrides:
buildQueryin classQueryDescriptor
-
encodeAsXML
public void encodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable- Overrides:
encodeAsXMLin classQueryDescriptor
-
-