Uses of Interface
org.apache.cayenne.exp.path.CayennePath
Packages that use CayennePath
Package
Description
Contains persistence APIs directly accessible by users.
Contains classes that make up Cayenne ORM stack.
Cayenne data expression classes.
Contains expression parser and other expression internals.
Property API
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of CayennePath in org.apache.cayenne
Methods in org.apache.cayenne with parameters of type CayennePathModifier and TypeMethodDescriptionstatic Object
Cayenne.readNestedProperty
(Object o, CayennePath path) Returns a value of the property identified by a property path.Persistent.readNestedProperty
(CayennePath path) Returns a value of the property identified by a property path.PersistentObject.readNestedProperty
(CayennePath path) -
Uses of CayennePath in org.apache.cayenne.access
Fields in org.apache.cayenne.access with type parameters of type CayennePathModifier and TypeFieldDescriptionprotected Map
<Object, Map<CayennePath, ObjectId>> ObjectStore.trackedFlattenedPaths
Map that tracks flattened paths for given object Id that is present in db.Methods in org.apache.cayenne.access that return types with arguments of type CayennePathMethods in org.apache.cayenne.access with parameters of type CayennePathModifier and TypeMethodDescriptionObjectStore.getFlattenedId
(ObjectId objectId, CayennePath path) void
ObjectStore.markFlattenedPath
(ObjectId objectId, CayennePath path, ObjectId id) Mark that flattened path for object has data row in DB. -
Uses of CayennePath in org.apache.cayenne.access.flush.operation
Fields in org.apache.cayenne.access.flush.operation with type parameters of type CayennePathMethods in org.apache.cayenne.access.flush.operation that return types with arguments of type CayennePathMethods in org.apache.cayenne.access.flush.operation with parameters of type CayennePath -
Uses of CayennePath in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp with parameters of type CayennePathModifier and TypeMethodDescriptionstatic Expression
ExpressionFactory.dbIdPathExp
(CayennePath pathSpec) static Expression
ExpressionFactory.dbPathExp
(CayennePath path) static Expression
ExpressionFactory.pathExp
(CayennePath path) -
Uses of CayennePath in org.apache.cayenne.exp.parser
Fields in org.apache.cayenne.exp.parser declared as CayennePathMethods in org.apache.cayenne.exp.parser that return CayennePathMethods in org.apache.cayenne.exp.parser with parameters of type CayennePathModifier and TypeMethodDescriptionprotected Object
ASTDbIdPath.evaluateNode
(Object o, CayennePath localPath) protected void
ASTPath.setPath
(CayennePath path) Constructors in org.apache.cayenne.exp.parser with parameters of type CayennePathModifierConstructorDescriptionASTDbIdPath
(CayennePath value) ASTDbPath
(CayennePath value) ASTObjPath
(CayennePath path) -
Uses of CayennePath in org.apache.cayenne.exp.path
Fields in org.apache.cayenne.exp.path declared as CayennePathModifier and TypeFieldDescriptionstatic final CayennePath
CayennePath.EMPTY_PATH
Constant value for an empty pathMethods in org.apache.cayenne.exp.path that return CayennePathModifier and TypeMethodDescriptiondefault CayennePath
Create new path appending next segment to this.default CayennePath
CayennePath.dot
(CayennePath next) Create new path appending all segments of the next path to this.default CayennePath
CayennePath.dot
(CayennePathSegment next) Create new path appending next segment to this.default CayennePath
CayennePath.head
(int end) Create sub path from this path from the first element and ending at the given index.static CayennePath
Create path from a given Stringstatic CayennePath
Create path from a given String with a marker.static CayennePath
CayennePath.of
(List<CayennePathSegment> segments) Create path from a given list ofCayennePathSegment
static CayennePath
CayennePath.of
(List<CayennePathSegment> segments, int marker) Create path from a given list ofCayennePathSegment
and a markerstatic CayennePath
CayennePath.of
(CayennePath path, int marker) Clone given path with a different markerdefault CayennePath
CayennePath.parent()
Get the parent path, that is a path up to the last segment of this path.default CayennePath
CayennePath.tail
(int start) Create sub path from this path starting from the given index and to the end.default CayennePath
CayennePath.withMarker
(int marker) Clone this path with new markerMethods in org.apache.cayenne.exp.path with parameters of type CayennePathModifier and TypeMethodDescriptiondefault CayennePath
CayennePath.dot
(CayennePath next) Create new path appending all segments of the next path to this.static CayennePath
CayennePath.of
(CayennePath path, int marker) Clone given path with a different marker -
Uses of CayennePath in org.apache.cayenne.exp.property
Fields in org.apache.cayenne.exp.property declared as CayennePathModifier and TypeFieldDescriptionprotected final CayennePath
BaseProperty.path
Path of this propertyMethods in org.apache.cayenne.exp.property that return CayennePathMethods in org.apache.cayenne.exp.property with parameters of type CayennePathModifier and TypeMethodDescriptionstatic <T> BaseProperty
<T> PropertyFactory.createBase
(CayennePath path, Class<T> type) Create base propertystatic <T> BaseProperty
<T> PropertyFactory.createBase
(CayennePath path, Expression expression, Class<T> type) Create base propertystatic <T> BaseIdProperty
<T> PropertyFactory.createBaseId
(String attribute, CayennePath path, String entityName, Class<T> propertyType) Create property that represents base IDstatic <T> DateProperty
<T> PropertyFactory.createDate
(CayennePath path, Class<T> type) Create date propertystatic <T> DateProperty
<T> PropertyFactory.createDate
(CayennePath path, Expression expression, Class<T> type) Create date propertystatic <T extends EmbeddableObject>
EmbeddableProperty<T> PropertyFactory.createEmbeddable
(CayennePath path, Class<T> embeddableType) Create property that represents embeddablestatic <T extends EmbeddableObject>
EmbeddableProperty<T> PropertyFactory.createEmbeddable
(CayennePath path, Expression exp, Class<T> embeddableType) Create property that represents embeddablestatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createEntity
(CayennePath path, Class<T> type) Create entity propertystatic <T extends Persistent>
EntityProperty<T> PropertyFactory.createEntity
(CayennePath path, Expression expression, Class<T> entityType) Create entity propertystatic <T extends Persistent>
ListProperty<T> PropertyFactory.createList
(CayennePath path, Class<T> entityType) Create to-many relationship mapped on list propertystatic <T extends Persistent>
ListProperty<T> PropertyFactory.createList
(CayennePath path, Expression expression, Class<T> entityType) Create to-many relationship mapped on list propertystatic <K,
V extends Persistent>
MapProperty<K, V> PropertyFactory.createMap
(CayennePath path, Class<K> keyType, Class<V> entityType) Create to-many relationship mapped on map propertystatic <K,
V extends Persistent>
MapProperty<K, V> PropertyFactory.createMap
(CayennePath path, Expression expression, Class<K> keyType, Class<V> entityType) Create to-many relationship mapped on map propertystatic <T extends Number>
NumericProperty<T> PropertyFactory.createNumeric
(CayennePath path, Expression expression, Class<T> type) Create numeric propertystatic <T extends Number>
NumericIdProperty<T> PropertyFactory.createNumericId
(String attribute, CayennePath path, String entityName, Class<T> propertyType) static <T extends Persistent>
SetProperty<T> PropertyFactory.createSet
(CayennePath path, Class<T> entityType) Create to-many relationship mapped on set propertystatic <T extends Persistent>
SetProperty<T> PropertyFactory.createSet
(CayennePath path, Expression expression, Class<T> entityType) Create to-many relationship mapped on set propertystatic <T extends CharSequence>
StringProperty<T> PropertyFactory.createString
(CayennePath path, Class<T> type) Create string propertystatic <T extends CharSequence>
StringProperty<T> PropertyFactory.createString
(CayennePath path, Expression expression, Class<T> type) Create string propertyConstructors in org.apache.cayenne.exp.property with parameters of type CayennePathModifierConstructorDescriptionprotected
BaseIdProperty
(String attribute, CayennePath path, String entityName, Class<? super E> type) Constructs a new property with the given name and expressionprotected
BaseProperty
(CayennePath path, Expression expression, Class<? super E> type) Constructs a new property with the given name and expressionprotected
CollectionProperty
(CayennePath path, Expression expression, Class<? super E> collectionType, Class<V> entityType) Constructs a new property with the given name and expressionprotected
DateProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
EmbeddableProperty
(CayennePath path, Expression exp, Class<? super E> type) Constructs a new property with the given name and typeprotected
EntityProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
ListProperty
(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotected
MapProperty
(CayennePath path, Expression expression, Class<K> keyType, Class<V> entityType) Constructs a new property with the given path and expressionprotected
NumericIdProperty
(String attribute, CayennePath path, String entityName, Class<E> type) Constructs a new property with the given name and expressionprotected
NumericProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
SelfProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expressionprotected
SetProperty
(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expressionprotected
StringProperty
(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expression -
Uses of CayennePath in org.apache.cayenne.map
Fields in org.apache.cayenne.map declared as CayennePathFields in org.apache.cayenne.map with type parameters of type CayennePathMethods in org.apache.cayenne.map that return CayennePathModifier and TypeMethodDescriptionObjAttribute.getDbAttributePath()
Returns a dot-separated path that starts in the root DbEntity that maps to this attribute's ObjEntity and spans zero or more relationships, always ending in a DbAttribute name.ObjRelationship.getDbRelationshipPath()
Returns a dot-separated path over mapped DbRelationships.ObjRelationship.getReverseDbRelationshipPath()
Returns a reversed dbRelationship path.Methods in org.apache.cayenne.map that return types with arguments of type CayennePathMethods in org.apache.cayenne.map with parameters of type CayennePathModifier and TypeMethodDescriptionvoid
ObjEntity.addAttributeOverride
(String attributeName, CayennePath dbPath) Entity.resolvePathComponents
(CayennePath path) void
ObjAttribute.setDbAttributePath
(CayennePath dbAttributePath) void
ObjRelationship.setDbRelationshipPath
(CayennePath relationshipPath) Sets mapped DbRelationships as a dot-separated path.DbEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.abstract Expression
Entity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms Expression rooted in this entity to an analogous expression rooted in related entity.ObjEntity.translateToRelatedEntity
(Expression expression, CayennePath relationshipPath) Transforms an Expression rooted in this entity to an analogous expression rooted in related entity. -
Uses of CayennePath in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as CayennePathModifier and TypeFieldDescriptionprotected CayennePath
PrefetchSelectQuery.prefetchPath
The relationship path from root objects to the objects being prefetched.Methods in org.apache.cayenne.query that return CayennePathModifier and TypeMethodDescriptionPrefetchTreeNode.getPath()
Returns full prefetch path, that is a dot separated String of node names starting from root and up to and including this node.PrefetchTreeNode.getPath
(PrefetchTreeNode upTillParent) Returns full prefetch path, that is a dot separated String of node names starting from root and up to and including this node.PrefetchSelectQuery.getPrefetchPath()
Returns the prefetchPath.Methods in org.apache.cayenne.query with parameters of type CayennePathModifier and TypeMethodDescriptionPrefetchTreeNode.addPath
(CayennePath path) Adds a "path" with specified semantics to this prefetch node.PrefetchTreeNode.getNode
(CayennePath path) Looks up an existing node in the tree described by the path.void
PrefetchSelectQuery.removeResultPath
(CayennePath path) Removes an extra result path.void
PrefetchSelectQuery.setPrefetchPath
(CayennePath prefetchPath) Sets the prefetchPath.static PrefetchTreeNode
PrefetchTreeNode.withPath
(CayennePath path, int semantics) Creates and returns a prefetch tree spanning a single path.Constructors in org.apache.cayenne.query with parameters of type CayennePathModifierConstructorDescriptionPrefetchSelectQuery
(CayennePath prefetchPath, ObjRelationship lastPrefetchHint) Creates a new disjoint prefetch select query. -
Uses of CayennePath in org.apache.cayenne.reflect
Fields in org.apache.cayenne.reflect declared as CayennePathFields in org.apache.cayenne.reflect with type parameters of type CayennePathModifier and TypeFieldDescriptionprotected Map
<CayennePath, AdditionalDbEntityDescriptor> PersistentDescriptor.additionalDbEntities
Methods in org.apache.cayenne.reflect that return CayennePathMethods in org.apache.cayenne.reflect that return types with arguments of type CayennePathModifier and TypeMethodDescriptionClassDescriptor.getAdditionalDbEntities()
Returns information about additional db entities that is used for this ObjEntity (i.e.LazyClassDescriptorDecorator.getAdditionalDbEntities()
PersistentDescriptor.getAdditionalDbEntities()
Methods in org.apache.cayenne.reflect with parameters of type CayennePathModifier and TypeMethodDescriptionstatic Accessor
PropertyUtils.accessor
(CayennePath nestedPropertyPath) Compiles an accessor that can be used for fast access for the nested property of the objects of a given class.static Object
PropertyUtils.getProperty
(Object object, CayennePath nestedProperty) Returns object property using JavaBean-compatible introspection with one addition - a property can be a dot-separated property name path.