Package org.apache.cayenne.ejbql
Interface EJBQLCompiledExpression
public interface EJBQLCompiledExpression
Represents an EJB QL expression "compiled" in the context of a certain mapping.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptiongetEntityDescriptor
(String identifier) Returns a ClassDescriptor for the id variable.Returns a tree representation of an EJBQL expression.getIncomingRelationships
(String identifier) Returns a collection of relationships that joins identifier with a parent entity.Returns prefetched columns tree for fetch joins.Returns a mapping of the result set columns, or null if this is not a select expression.Returns a descriptor of the root of this expression such as entity being fetched or updated.Returns EJB QL source of the compiled expression if available.
-
Method Details
-
getExpression
EJBQLExpression getExpression()Returns a tree representation of an EJBQL expression. -
getRootDescriptor
ClassDescriptor getRootDescriptor()Returns a descriptor of the root of this expression such as entity being fetched or updated. -
getEntityDescriptor
Returns a ClassDescriptor for the id variable. -
getIncomingRelationships
Returns a collection of relationships that joins identifier with a parent entity. Returns null if the identifier corresponds to one of the query roots. -
getSource
String getSource()Returns EJB QL source of the compiled expression if available. -
getResult
SQLResult getResult()Returns a mapping of the result set columns, or null if this is not a select expression. -
getPrefetchTree
PrefetchTreeNode getPrefetchTree()Returns prefetched columns tree for fetch joins.
-