Package | Description |
---|---|
org.apache.cayenne.ejbql | |
org.apache.cayenne.exp |
Cayenne data expression classes.
|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
org.apache.cayenne.util |
General utility classes.
|
Modifier and Type | Method and Description |
---|---|
PrefetchTreeNode |
EJBQLCompiledExpression.getPrefetchTree()
Returns prefetched columns tree for fetch joins.
|
Modifier and Type | Method and Description |
---|---|
PrefetchTreeNode |
Property.disjoint()
Returns a prefetch tree that follows this property path, potentially
spanning a number of phantom nodes, and having a single leaf with
"disjoint" prefetch semantics.
|
PrefetchTreeNode |
Property.disjointById()
Returns a prefetch tree that follows this property path, potentially
spanning a number of phantom nodes, and having a single leaf with
"disjoint by id" prefetch semantics.
|
PrefetchTreeNode |
Property.joint()
Returns a prefetch tree that follows this property path, potentially
spanning a number of phantom nodes, and having a single leaf with "joint"
prefetch semantics.
|
Modifier and Type | Field and Description |
---|---|
protected PrefetchTreeNode |
PrefetchTreeNode.parent |
Modifier and Type | Field and Description |
---|---|
protected Collection<PrefetchTreeNode> |
PrefetchTreeNode.children |
Modifier and Type | Method and Description |
---|---|
PrefetchTreeNode |
PrefetchTreeNode.addPath(String path)
Adds a "path" with specified semantics to this prefetch node.
|
PrefetchTreeNode |
SQLTemplate.addPrefetch(String prefetchPath)
Adds a prefetch.
|
PrefetchTreeNode |
SelectQuery.addPrefetch(String prefetchPath)
Adds a prefetch with specified relationship path to the query.
|
PrefetchTreeNode |
ProcedureQuery.addPrefetch(String prefetchPath)
Adds a prefetch.
|
PrefetchTreeNode |
PrefetchTreeNode.cloneJointSubtree()
Returns a clone of subtree that includes all joint children starting from
this node itself and till the first occurrence of non-joint node
|
protected PrefetchTreeNode |
PrefetchTreeNode.getChild(String segment) |
PrefetchTreeNode |
PrefetchTreeNode.getNode(String path)
Looks up an existing node in the tree desribed by the dot-separated path.
|
PrefetchTreeNode |
PrefetchTreeNode.getParent() |
PrefetchTreeNode |
SelectById.getPrefetches() |
PrefetchTreeNode |
ObjectSelect.getPrefetches() |
PrefetchTreeNode |
SQLTemplate.getPrefetchTree() |
PrefetchTreeNode |
SelectQuery.getPrefetchTree() |
PrefetchTreeNode |
QueryMetadata.getPrefetchTree()
Returns a root node of prefetch tree used by this query, or null of no prefetches
are configured.
|
PrefetchTreeNode |
ProcedureQuery.getPrefetchTree() |
PrefetchTreeNode |
PrefetchTreeNode.getRoot()
Returns the root of the node tree.
|
static PrefetchTreeNode |
PrefetchTreeNode.withPath(String path,
int semantics)
Creates and returns a prefetch tree spanning a single path.
|
Modifier and Type | Method and Description |
---|---|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.adjacentJointNodes()
Returns a subset of nodes with "joint" semantics that are to be
prefetched in the same query as the current node.
|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.disjointByIdNodes()
Returns a collection of PrefetchTreeNodes with disjoint semantics
|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.disjointNodes()
Returns a collection of PrefetchTreeNodes with disjoint semantics.
|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.getChildren()
Returns an unmodifiable collection of children.
|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.jointNodes()
Returns a collection of PrefetchTreeNodes in this tree with joint
semantics.
|
Collection<PrefetchTreeNode> |
PrefetchTreeNode.nonPhantomNodes()
Returns a collection of PrefetchTreeNodes that are not phantoms.
|
Modifier and Type | Method and Description |
---|---|
void |
PrefetchTreeNode.addChild(PrefetchTreeNode child) |
void |
SelectQuery.addPrefetch(PrefetchTreeNode prefetchElement)
Adds a prefetch with specified relationship path to the query.
|
SelectById<T> |
SelectById.addPrefetch(PrefetchTreeNode prefetch)
Merges prefetch into the query prefetch tree.
|
ObjectSelect<T> |
ObjectSelect.addPrefetch(PrefetchTreeNode prefetch)
Merges prefetch into the query prefetch tree.
|
void |
PrefetchProcessor.finishPrefetch(PrefetchTreeNode node) |
String |
PrefetchTreeNode.getPath(PrefetchTreeNode upTillParent) |
void |
PrefetchTreeNode.merge(PrefetchTreeNode node)
Merges
PrefetchTreeNode into the current prefetch tree, cloning
the nodes added to this tree. |
SelectById<T> |
SelectById.prefetch(PrefetchTreeNode prefetch)
Resets internal prefetches to the new value.
|
ObjectSelect<T> |
ObjectSelect.prefetch(PrefetchTreeNode prefetch)
Resets internal prefetches to the new value.
|
void |
PrefetchTreeNode.removeChild(PrefetchTreeNode child) |
void |
SelectQuery.setPrefetchTree(PrefetchTreeNode prefetchTree) |
boolean |
PrefetchProcessor.startDisjointByIdPrefetch(PrefetchTreeNode prefetchTreeNode) |
boolean |
PrefetchProcessor.startDisjointPrefetch(PrefetchTreeNode node) |
boolean |
PrefetchProcessor.startJointPrefetch(PrefetchTreeNode node) |
boolean |
PrefetchProcessor.startPhantomPrefetch(PrefetchTreeNode node) |
boolean |
PrefetchProcessor.startUnknownPrefetch(PrefetchTreeNode node) |
Constructor and Description |
---|
PrefetchTreeNode(PrefetchTreeNode parent,
String name)
Creates a phantom PrefetchTreeNode, initializing it with parent node and
a name of a relationship segment connecting this node with the parent.
|
Modifier and Type | Method and Description |
---|---|
Object |
ObjectDetachOperation.detach(Object object,
ClassDescriptor descriptor,
PrefetchTreeNode prefetchTree)
"Detaches" an object from its context by creating an unattached copy.
|
Copyright © 2001–2015 Apache Cayenne. All rights reserved.