Package | Description |
---|---|
org.apache.cayenne.access.translator.select | |
org.apache.cayenne.dba.db2 |
IBM DB2 DbAdapter.
|
org.apache.cayenne.dba.derby |
Apache Derby DbAdapter.
|
org.apache.cayenne.dba.firebird | |
org.apache.cayenne.dba.openbase |
OpenBase DbAdapter.
|
org.apache.cayenne.dba.oracle |
Oracle DbAdapter.
|
org.apache.cayenne.dba.postgres |
PostgreSQL DbAdapter.
|
org.apache.cayenne.exp |
Cayenne data expression classes.
|
org.apache.cayenne.exp.parser |
Contains expression parser and other expression internals.
|
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
org.apache.cayenne.reflect |
Modifier and Type | Field and Description |
---|---|
protected Expression |
DataObjectMatchTranslator.expression |
Modifier and Type | Method and Description |
---|---|
protected Expression |
QualifierTranslator.extractQualifier() |
Expression |
DataObjectMatchTranslator.getExpression() |
Modifier and Type | Method and Description |
---|---|
protected void |
QueryAssemblerHelper.appendDbPath(Expression pathExp) |
protected void |
QualifierTranslator.appendLiteral(Object val,
DbAttribute attr,
Expression parentExpression) |
protected void |
QueryAssemblerHelper.appendLiteral(Object val,
DbAttribute attr,
Expression parentExpression)
Appends SQL code to the query buffer to handle
val as a
parameter to the PreparedStatement being built. |
protected void |
QueryAssemblerHelper.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression)
Appends SQL code to the query buffer to handle
val as a
parameter to the PreparedStatement being built. |
protected void |
QueryAssemblerHelper.appendObjPath(Expression pathExp)
Processes parts of the OBJ_PATH expression.
|
protected void |
QualifierTranslator.detectObjectMatch(Expression exp)
Called before processing an expression to initialize objectMatchTranslator if
needed.
|
protected void |
QualifierTranslator.doAppendPart(Expression rootNode)
Translates query qualifier to SQL WHERE clause.
|
void |
QualifierTranslator.endNode(Expression node,
Expression parentNode) |
void |
QualifierTranslator.finishedChild(Expression node,
int childIndex,
boolean hasMoreChildren) |
void |
QualifierTranslator.objectNode(Object leaf,
Expression parentNode) |
protected DbAttribute |
QueryAssemblerHelper.paramsDbType(Expression e)
Returns database type of expression parameters or null if it can not be
determined.
|
protected boolean |
QualifierTranslator.parenthesisNeeded(Expression node,
Expression parentNode) |
protected void |
QueryAssemblerHelper.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
protected void |
TrimmingQualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp)
Adds special handling of CHAR columns.
|
void |
DataObjectMatchTranslator.setExpression(Expression expression) |
void |
QualifierTranslator.startNode(Expression node,
Expression parentNode) |
Modifier and Type | Method and Description |
---|---|
protected void |
DB2QualifierTranslator.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression) |
protected void |
DB2QualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
Modifier and Type | Method and Description |
---|---|
protected void |
DerbyQualifierTranslator.processColumnWithQuoteSqlIdentifiers(DbAttribute dbAttr,
Expression pathExp) |
Modifier and Type | Method and Description |
---|---|
protected void |
FirebirdQualifierTranslator.doAppendPart(Expression rootNode) |
Modifier and Type | Method and Description |
---|---|
protected void |
OpenBaseQualifierTranslator.appendLiteralDirect(Object val,
DbAttribute attr,
Expression parentExpression) |
void |
OpenBaseQualifierTranslator.endNode(Expression node,
Expression parentNode) |
void |
OpenBaseQualifierTranslator.finishedChild(Expression node,
int childIndex,
boolean hasMoreChildren) |
void |
OpenBaseQualifierTranslator.startNode(Expression node,
Expression parentNode) |
Modifier and Type | Method and Description |
---|---|
Expression |
OracleQualifierTranslator.INTrimmer.trimmedInExpression(Expression exp,
int maxInSize) |
Modifier and Type | Method and Description |
---|---|
protected void |
OracleQualifierTranslator.doAppendPart(Expression rootNode) |
Expression |
OracleQualifierTranslator.INTrimmer.trimmedInExpression(Expression exp,
int maxInSize) |
Modifier and Type | Method and Description |
---|---|
void |
PostgresQualifierTranslator.endNode(Expression node,
Expression parentNode) |
void |
PostgresQualifierTranslator.finishedChild(Expression node,
int childIndex,
boolean hasMoreChildren) |
void |
PostgresQualifierTranslator.startNode(Expression node,
Expression parentNode) |
Modifier and Type | Method and Description |
---|---|
static Expression |
ExpressionFactory.and(Collection<Expression> expressions) |
static Expression |
ExpressionFactory.and(Expression... expressions) |
Expression |
Expression.andExp(Expression exp)
Chains this expression with another expression using "and".
|
Expression |
Expression.andExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "and".
|
Expression |
Property.between(E lower,
E upper) |
static Expression |
ExpressionFactory.betweenDbExp(String pathSpec,
Object value1,
Object value2)
A convenience shortcut for building BETWEEN expressions.
|
static Expression |
ExpressionFactory.betweenExp(String pathSpec,
Object value1,
Object value2)
A convenience shortcut for building BETWEEN expressions.
|
Expression |
Property.contains(String substring)
Creates an expression for a database "LIKE" query with the value
converted to a pattern matching anywhere in the String.
|
static Expression |
ExpressionFactory.containsExp(String pathSpec,
String value) |
Expression |
Property.containsIgnoreCase(String value)
Same as
Property.contains(String) , only using case-insensitive
comparison. |
static Expression |
ExpressionFactory.containsIgnoreCaseExp(String pathSpec,
String value)
Same as
ExpressionFactory.containsExp(String, String) only using case-insensitive
comparison. |
Expression |
Expression.deepCopy()
Clones this expression.
|
Expression |
Property.endsWith(String value)
Creates an expression for a database "LIKE" query with the value
converted to a pattern matching the tail of a String.
|
static Expression |
ExpressionFactory.endsWithExp(String pathSpec,
String value) |
Expression |
Property.endsWithIgnoreCase(String value)
Same as
Property.endsWith(String) , only using case-insensitive
comparison. |
static Expression |
ExpressionFactory.endsWithIgnoreCaseExp(String pathSpec,
String value)
Same as
ExpressionFactory.endsWithExp(String, String) only using case-insensitive
comparison. |
Expression |
Property.eq(E value) |
Expression |
Property.eq(Property<?> value) |
static Expression |
ExpressionFactory.exp(String expressionString,
Object... parameters)
Parses string, converting it to Expression and optionally binding
positional parameters.
|
static Expression |
ExpressionFactory.expFalse()
A convenience shortcut for boolean false expression.
|
static Expression |
ExpressionFactory.expressionOfType(int type)
Creates a new expression for the type requested.
|
static Expression |
ExpressionFactory.expTrue()
A convenience shortcut for boolean true expression.
|
Expression |
Expression.expWithParameters(Map<String,?> parameters)
Deprecated.
since 4.0 use
params(Map) |
Expression |
Expression.expWithParameters(Map<String,?> parameters,
boolean pruneMissing)
Deprecated.
since 4.0 use
params(Map, boolean) instead. |
static Expression |
Expression.fromString(String expressionString)
Deprecated.
since 4.0 use
ExpressionFactory.exp(String, Object...) |
static Expression |
ExpressionFactory.greaterDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "greater than" expression.
|
static Expression |
ExpressionFactory.greaterExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "greater than" expression.
|
static Expression |
ExpressionFactory.greaterOrEqualDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "greater than or equal to"
expression.
|
static Expression |
ExpressionFactory.greaterOrEqualExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "greater than or equal to"
expression.
|
Expression |
Property.gt(E value) |
Expression |
Property.gt(Property<?> value) |
Expression |
Property.gte(E value) |
Expression |
Property.gte(Property<?> value) |
Expression |
Property.in(Collection<E> values) |
Expression |
Property.in(E firstValue,
E... moreValues) |
static Expression |
ExpressionFactory.inDbExp(String pathSpec,
Collection<?> values)
A convenience shortcut for building IN DB expression.
|
static Expression |
ExpressionFactory.inDbExp(String pathSpec,
Object... values)
A convenience shortcut for building IN DB expression.
|
static Expression |
ExpressionFactory.inExp(String pathSpec,
Collection<?> values)
A convenience shortcut for building IN expression.
|
static Expression |
ExpressionFactory.inExp(String pathSpec,
Object... values)
A convenience shortcut for building IN expression.
|
Expression |
Property.isFalse() |
Expression |
Property.isNotNull() |
Expression |
Property.isNull() |
Expression |
Property.isTrue() |
static Expression |
ExpressionFactory.joinExp(int type,
Collection<Expression> expressions)
Joins all expressions, making a single expression.
|
Expression |
Expression.joinExp(int type,
Expression exp)
Creates a new expression that joins this object with another expression,
using specified join type.
|
Expression |
Expression.joinExp(int type,
Expression exp,
Expression... expressions)
Creates a new expression that joins this object with other expressions,
using specified join type.
|
static Expression |
ExpressionFactory.lessDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "less than" expression.
|
static Expression |
ExpressionFactory.lessExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "less than" expression.
|
static Expression |
ExpressionFactory.lessOrEqualDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "less than or equal to"
expression.
|
static Expression |
ExpressionFactory.lessOrEqualExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "less than or equal to"
expression.
|
Expression |
Property.like(String pattern) |
Expression |
Property.like(String pattern,
char escapeChar) |
static Expression |
ExpressionFactory.likeDbExp(String pathSpec,
Object value)
A convenience shortcut for building LIKE DB_PATH expression.
|
static Expression |
ExpressionFactory.likeDbExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building LIKE DB_PATH expression.
|
static Expression |
ExpressionFactory.likeExp(String pathSpec,
Object value)
A convenience shortcut for building LIKE expression.
|
static Expression |
ExpressionFactory.likeExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building LIKE expression.
|
Expression |
Property.likeIgnoreCase(String pattern) |
static Expression |
ExpressionFactory.likeIgnoreCaseDbExp(String pathSpec,
Object value)
A convenience shortcut for building LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.likeIgnoreCaseDbExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.likeIgnoreCaseExp(String pathSpec,
Object value)
A convenience shortcut for building LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.likeIgnoreCaseExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building LIKE_IGNORE_CASE expression.
|
Expression |
Property.lt(E value) |
Expression |
Property.lt(Property<?> value) |
Expression |
Property.lte(E value) |
Expression |
Property.lte(Property<?> value) |
static Expression |
ExpressionFactory.matchAllDbExp(Map<String,?> map,
int pairType)
Creates an expression that matches all key-values pairs in
map . |
static Expression |
ExpressionFactory.matchAllExp(Map<String,?> map,
int pairType)
Creates an expression that matches all key-values pairs in
map . |
static Expression |
ExpressionFactory.matchAllExp(String path,
Collection<?> values)
Creates an expression to match a collection of values against a single
path expression.
|
static Expression |
ExpressionFactory.matchAllExp(String path,
Object... values) |
static Expression |
ExpressionFactory.matchAnyDbExp(Map<String,?> map,
int pairType)
Creates an expression that matches any of the key-values pairs in
map . |
static Expression |
ExpressionFactory.matchAnyExp(List<? extends Persistent> objects)
Creates an expression that matches any of the objects contained in the
list
objects |
static Expression |
ExpressionFactory.matchAnyExp(Map<String,?> map,
int pairType)
Creates an expression that matches any of the key-values pairs in the
map . |
static Expression |
ExpressionFactory.matchAnyExp(Persistent... objects)
Creates an expression that matches any of the objects contained in the
objects array |
static Expression |
ExpressionFactory.matchDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "equal to" expression.
|
static Expression |
ExpressionFactory.matchExp(Persistent object)
Creates an expression that matches the primary key of object in
ObjectId 's IdSnapshot for the argument
object . |
static Expression |
ExpressionFactory.matchExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "equal to" expression.
|
Expression |
Property.ne(E value) |
Expression |
Property.ne(Property<?> value) |
Expression |
Property.nin(Collection<E> values) |
Expression |
Property.nin(E firstValue,
E... moreValues) |
Expression |
Property.nlike(String value) |
Expression |
Property.nlikeIgnoreCase(String value) |
static Expression |
ExpressionFactory.noMatchDbExp(String pathSpec,
Object value)
A convenience method to create an DB_PATH "not equal to" expression.
|
static Expression |
ExpressionFactory.noMatchExp(String pathSpec,
Object value)
A convenience method to create an OBJ_PATH "not equal to" expression.
|
static Expression |
ExpressionFactory.notBetweenDbExp(String pathSpec,
Object value1,
Object value2)
A convenience shortcut for building NOT_BETWEEN expressions.
|
static Expression |
ExpressionFactory.notBetweenExp(String pathSpec,
Object value1,
Object value2)
A convenience shortcut for building NOT_BETWEEN expressions.
|
abstract Expression |
Expression.notExp()
Returns a logical NOT of current expression.
|
static Expression |
ExpressionFactory.notInDbExp(String pathSpec,
Collection<?> values)
A convenience shortcut for building NOT_IN expression.
|
static Expression |
ExpressionFactory.notInDbExp(String pathSpec,
Object... values)
A convenience shortcut for building NOT_IN expression.
|
static Expression |
ExpressionFactory.notInExp(String pathSpec,
Collection<?> values)
A convenience shortcut for building NOT_IN expression.
|
static Expression |
ExpressionFactory.notInExp(String pathSpec,
Object... values)
A convenience shortcut for building NOT_IN expression.
|
static Expression |
ExpressionFactory.notLikeDbExp(String pathSpec,
Object value)
A convenience shortcut for building NOT_LIKE expression.
|
static Expression |
ExpressionFactory.notLikeDbExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building NOT_LIKE expression.
|
static Expression |
ExpressionFactory.notLikeExp(String pathSpec,
Object value)
A convenience shortcut for building NOT_LIKE expression.
|
static Expression |
ExpressionFactory.notLikeExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building NOT_LIKE expression.
|
static Expression |
ExpressionFactory.notLikeIgnoreCaseDbExp(String pathSpec,
Object value)
A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.notLikeIgnoreCaseDbExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.notLikeIgnoreCaseExp(String pathSpec,
Object value)
A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.notLikeIgnoreCaseExp(String pathSpec,
Object value,
char escapeChar)
A convenience shortcut for building NOT_LIKE_IGNORE_CASE expression.
|
static Expression |
ExpressionFactory.or(Collection<Expression> expressions) |
static Expression |
ExpressionFactory.or(Expression... expressions) |
Expression |
Expression.orExp(Expression exp)
Chains this expression with another expression using "or".
|
Expression |
Expression.orExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "or".
|
Expression |
Expression.params(Map<String,?> parameters)
Creates and returns a new Expression instance based on this expression,
but with named parameters substituted with provided values.
|
Expression |
Expression.params(Map<String,?> parameters,
boolean pruneMissing)
Creates and returns a new Expression instance based on this expression,
but with named parameters substituted with provided values.If any
subexpressions containing parameters not matching the "name" argument are
found, the behavior depends on "pruneMissing" argument.
|
Expression |
Expression.paramsArray(Object... parameters)
Creates and returns a new Expression instance based on this expression,
but with parameters substituted with provided values.
|
abstract Expression |
Expression.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
Property.startsWith(String value)
Creates an expression for a database "LIKE" query with the value
converted to a pattern matching the beginning of a String.
|
static Expression |
ExpressionFactory.startsWithExp(String pathSpec,
String value) |
Expression |
Property.startsWithIgnoreCase(String value)
Same as
Property.startsWith(String) , only using case-insensitive
comparison. |
static Expression |
ExpressionFactory.startsWithIgnoreCaseExp(String pathSpec,
String value)
Same as
ExpressionFactory.startsWithExp(String, String) only using
case-insensitive comparison. |
Expression |
Expression.transform(org.apache.commons.collections.Transformer transformer)
Creates a transformed copy of this expression, applying transformation
provided by Transformer to all its nodes.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
ExpressionFactory.and(Expression... expressions) |
Expression |
Expression.andExp(Expression exp)
Chains this expression with another expression using "and".
|
Expression |
Expression.andExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "and".
|
Expression |
Expression.andExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "and".
|
void |
TraversalHandler.endNode(Expression node,
Expression parentNode)
Called during the traversal after an expression node children
processing is finished.
|
void |
TraversalHelper.endNode(Expression node,
Expression parentNode) |
void |
TraversalHandler.finishedChild(Expression node,
int childIndex,
boolean hasMoreChildren)
Called during traversal after a child of expression
has been visited.
|
void |
TraversalHelper.finishedChild(Expression node,
int childIndex,
boolean hasMoreChildren) |
Expression |
Expression.joinExp(int type,
Expression exp)
Creates a new expression that joins this object with another expression,
using specified join type.
|
Expression |
Expression.joinExp(int type,
Expression exp,
Expression... expressions)
Creates a new expression that joins this object with other expressions,
using specified join type.
|
Expression |
Expression.joinExp(int type,
Expression exp,
Expression... expressions)
Creates a new expression that joins this object with other expressions,
using specified join type.
|
void |
TraversalHandler.objectNode(Object leaf,
Expression parentNode)
Called during the traversal when a leaf non-expression node
is encountered.
|
void |
TraversalHelper.objectNode(Object leaf,
Expression parentNode) |
static Expression |
ExpressionFactory.or(Expression... expressions) |
Expression |
Expression.orExp(Expression exp)
Chains this expression with another expression using "or".
|
Expression |
Expression.orExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "or".
|
Expression |
Expression.orExp(Expression exp,
Expression... expressions)
Chains this expression with other expressions using "or".
|
void |
TraversalHandler.startNode(Expression node,
Expression parentNode)
Called during the traversal before an expression node children
processing is started.
|
void |
TraversalHelper.startNode(Expression node,
Expression parentNode) |
protected void |
Expression.traverse(Expression parentExp,
TraversalHandler visitor)
Traverses itself and child expressions, notifying visitor via callback
methods as it goes.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
ExpressionFactory.and(Collection<Expression> expressions) |
static Expression |
ExpressionFactory.joinExp(int type,
Collection<Expression> expressions)
Joins all expressions, making a single expression.
|
static Expression |
ExpressionFactory.or(Collection<Expression> expressions) |
Modifier and Type | Class and Description |
---|---|
class |
AggregateConditionNode
Superclass of aggregated conditional nodes such as NOT, AND, OR.
|
class |
ASTAdd
"Add" Expression.
|
class |
ASTAnd
"And" expression.
|
class |
ASTBetween
"Between" expression.
|
class |
ASTBitwiseAnd
Bitwise conjunction (AND or '&') expression
|
class |
ASTBitwiseLeftShift
Bitwise left shift '<<' operation.
|
class |
ASTBitwiseNot
Bitwise negation (NOT i.e.
|
class |
ASTBitwiseOr
Bitwise disjunction (OR or '|') expression.
|
class |
ASTBitwiseRightShift
Bitwise right shift '>>' operation.
|
class |
ASTBitwiseXor
Bitwise exclusive disjunction (XOR or '^') operation.
|
class |
ASTDbPath
Path expression traversing DB relationships and attributes.
|
class |
ASTDivide
"Divide" expression.
|
class |
ASTEqual
"Equal To" expression.
|
class |
ASTFalse
Boolean false expression element
Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean
with a Boolean value.
|
class |
ASTGreater
"Greater Than" expression.
|
class |
ASTGreaterOrEqual
"Greater Than Or Equal To" expression.
|
class |
ASTIn
"In" expression.
|
class |
ASTLess
"Less Then" expression.
|
class |
ASTLessOrEqual
"Less than or equal to" expression.
|
class |
ASTLike
"Like" expression.
|
class |
ASTLikeIgnoreCase
"Case insensitive like" expression.
|
class |
ASTList
A leaf expression representing an immutable collection of values.
|
class |
ASTMultiply
"Multiply" expression.
|
class |
ASTNamedParameter
A named expression parameter.
|
class |
ASTNegate
"Negate" expression.
|
class |
ASTNot
"Not" expression.
|
class |
ASTNotBetween
"Not Between" expression.
|
class |
ASTNotEqual
"Not equal to" expression.
|
class |
ASTNotIn
"Not In" expression.
|
class |
ASTNotLike
"Not Like" expression.
|
class |
ASTNotLikeIgnoreCase
"Not like, ignore case" expression.
|
class |
ASTObjPath |
class |
ASTOr
"Or" expression.
|
class |
ASTPath
Generic path expression.
|
class |
ASTScalar
A scalar value wrapper expression.
|
class |
ASTSubtract
"Subtract" expression.
|
class |
ASTTrue
Boolean true expression element Notice that there is one ASTTrue and one
ASTFalse instead of a ASTBoolean with a Boolean value.
|
class |
ConditionNode
Superclass of conditional expressions.
|
class |
PatternMatchNode
Superclass of pattern matching nodes.
|
class |
SimpleNode
Superclass of AST* expressions that implements Node interface defined by
JavaCC framework.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionParser.expression() |
Expression |
SimpleNode.notExp() |
Expression |
ASTAdd.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTAnd.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTBetween.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTBitwiseAnd.shallowCopy() |
Expression |
ASTBitwiseLeftShift.shallowCopy() |
Expression |
ASTBitwiseNot.shallowCopy() |
Expression |
ASTBitwiseOr.shallowCopy() |
Expression |
ASTBitwiseRightShift.shallowCopy() |
Expression |
ASTBitwiseXor.shallowCopy() |
Expression |
ASTDbPath.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTDivide.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTEqual.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTFalse.shallowCopy() |
Expression |
ASTGreater.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTGreaterOrEqual.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTIn.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTLess.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTLessOrEqual.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTLike.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTLikeIgnoreCase.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTList.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTMultiply.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNamedParameter.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNegate.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNot.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNotBetween.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNotEqual.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNotIn.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNotLike.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTNotLikeIgnoreCase.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTObjPath.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTOr.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTScalar.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTSubtract.shallowCopy()
Creates a copy of this expression node, without copying children.
|
Expression |
ASTTrue.shallowCopy() |
Modifier and Type | Field and Description |
---|---|
protected Expression |
EntityInheritanceTree.normalizedQualifier |
protected Expression |
DbEntity.qualifier
Qualifier, that will be applied to all select queries and joins with this
DbEntity
|
protected Expression |
ObjEntity.qualifier |
Modifier and Type | Method and Description |
---|---|
Expression |
EntityInheritanceTree.getDbQualifier()
Returns entity qualifier expressed as DB path qualifier or null if entity has no
qualifier.
|
Expression |
ObjEntity.getDeclaredQualifier()
Returns a qualifier that imposes a restriction on what objects belong to
this entity.
|
Expression |
DbEntity.getQualifier() |
Expression |
EntityInheritanceTree.qualifierForEntityAndSubclasses()
Returns a qualifier Expression that matches root entity of this tree and all its
subentities.
|
Expression |
ObjEntity.translateToDbPath(Expression expression)
Transforms an Expression to an analogous expression in terms of the
underlying DbEntity.
|
Expression |
DbEntity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Transforms Expression rooted in this entity to an analogous expression
rooted in related entity.
|
abstract Expression |
Entity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Translates Expression rooted in this entity to an analogous expression rooted in
related entity.
|
Expression |
ObjEntity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Transforms an Expression rooted in this entity to an analogous expression
rooted in related entity.
|
Modifier and Type | Method and Description |
---|---|
PathComponent<DbAttribute,DbRelationship> |
DbEntity.lastPathComponent(Expression path,
Map aliasMap) |
PathComponent<ObjAttribute,ObjRelationship> |
ObjEntity.lastPathComponent(Expression path,
Map aliasMap) |
<T extends Attribute,U extends Relationship> |
Entity.lastPathComponent(Expression path,
Map aliasMap)
Convenience method returning the last component in the path iterator.
|
Iterable<PathComponent<DbAttribute,DbRelationship>> |
DbEntity.resolvePath(Expression pathExp,
Map aliasMap)
Returns an Iterable instance over expression path components based on
this entity.
|
Iterable<PathComponent<ObjAttribute,ObjRelationship>> |
ObjEntity.resolvePath(Expression pathExp,
Map aliasMap)
Returns an Iterable instance over expression path components based on
this entity.
|
abstract <T extends Attribute,U extends Relationship> |
Entity.resolvePath(Expression pathExp,
Map aliasMap)
Returns an Iterable over the path components with elements represented as
PathComponent instances, encapsulating a relationship, an attribute or a
subpath alias. |
Iterator<CayenneMapEntry> |
DbEntity.resolvePathComponents(Expression pathExp) |
abstract Iterator<CayenneMapEntry> |
Entity.resolvePathComponents(Expression pathExp)
Processes expression
pathExp and returns an Iterator of path
components that contains a sequence of Attributes and Relationships. |
Iterator<CayenneMapEntry> |
ObjEntity.resolvePathComponents(Expression pathExp) |
void |
ObjEntity.setDeclaredQualifier(Expression qualifier)
Sets a qualifier that imposes a limit on what objects belong to this
entity.
|
void |
DbEntity.setQualifier(Expression qualifier)
Sets qualifier for this entity
|
Expression |
ObjEntity.translateToDbPath(Expression expression)
Transforms an Expression to an analogous expression in terms of the
underlying DbEntity.
|
Expression |
DbEntity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Transforms Expression rooted in this entity to an analogous expression
rooted in related entity.
|
abstract Expression |
Entity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Translates Expression rooted in this entity to an analogous expression rooted in
related entity.
|
Expression |
ObjEntity.translateToRelatedEntity(Expression expression,
String relationshipPath)
Transforms an Expression rooted in this entity to an analogous expression
rooted in related entity.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
SelectQuery.qualifier |
protected Expression |
Ordering.sortSpec |
Modifier and Type | Method and Description |
---|---|
Expression |
SelectQuery.getQualifier()
Returns query qualifier.
|
Expression |
Ordering.getSortSpec()
Returns the expression defining a ordering Java Bean property.
|
Expression |
ObjectSelect.getWhere()
Returns a WHERE clause Expression of this query.
|
Modifier and Type | Method and Description |
---|---|
ObjectSelect<T> |
ObjectSelect.and(Expression... expressions)
AND's provided expressions to the existing WHERE clause expression.
|
void |
SelectQuery.andQualifier(Expression e)
Adds specified qualifier to the existing qualifier joining it using
"AND".
|
static ObjectSelect<DataRow> |
ObjectSelect.dataRowQuery(Class<?> entityType,
Expression expression)
Creates a ObjectSelect that fetches data for an
ObjEntity
determined from a provided class and uses provided expression for its
qualifier. |
static SelectQuery<DataRow> |
SelectQuery.dataRowQuery(Class<?> rootClass,
Expression qualifier)
Creates a SelectQuery that selects DataRows that correspond to a given
persistent class that match supplied qualifier.
|
static SelectQuery<DataRow> |
SelectQuery.dataRowQuery(Class<?> rootClass,
Expression qualifier,
List<Ordering> orderings) |
static ObjectSelect<DataRow> |
ObjectSelect.dbQuery(String dbEntityName,
Expression expression)
Creates a ObjectSelect that fetches DataRows for a
DbEntity
determined from provided "dbEntityName" and uses provided expression for
its qualifier. |
ObjectSelect<T> |
ObjectSelect.or(Expression... expressions)
OR's provided expressions to the existing WHERE clause expression.
|
void |
SelectQuery.orQualifier(Expression e)
Adds specified qualifier to the existing qualifier joining it using "OR".
|
static <T> ObjectSelect<T> |
ObjectSelect.query(Class<T> entityType,
Expression expression)
Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.
|
static <T> SelectQuery<T> |
SelectQuery.query(Class<T> rootClass,
Expression qualifier)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
static <T> SelectQuery<T> |
SelectQuery.query(Class<T> rootClass,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
static <T> ObjectSelect<T> |
ObjectSelect.query(Class<T> entityType,
Expression expression,
List<Ordering> orderings)
Creates a ObjectSelect that selects objects of a given persistent class
and uses provided expression for its qualifier.
|
void |
SelectQuery.setQualifier(Expression qualifier)
Sets new query qualifier.
|
void |
Ordering.setSortSpec(Expression sortSpec)
Sets the expression defining a ordering Java Bean property.
|
ObjectSelect<T> |
ObjectSelect.where(Expression expression)
Initializes or resets a qualifier expression of this query.
|
Modifier and Type | Method and Description |
---|---|
ObjectSelect<T> |
ObjectSelect.and(Collection<Expression> expressions)
AND's provided expressions to the existing WHERE clause expression.
|
ObjectSelect<T> |
ObjectSelect.or(Collection<Expression> expressions)
OR's provided expressions to the existing WHERE clause expression.
|
Constructor and Description |
---|
SelectQuery(Class<T> rootClass,
Expression qualifier)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
SelectQuery(Class<T> rootClass,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
SelectQuery(DbEntity root,
Expression qualifier)
Creates a SelectQuery for the specified DbEntity with the given
qualifier.
|
SelectQuery(DbEntity root,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery for the specified DbEntity with the given qualifier
and orderings.
|
SelectQuery(ObjEntity root,
Expression qualifier)
Creates a SelectQuery for the specified ObjEntity with the given
qualifier.
|
SelectQuery(ObjEntity root,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery for the specified ObjEntity with the given
qualifier and orderings.
|
SelectQuery(String objEntityName,
Expression qualifier)
Creates SelectQuery with
objEntityName and
qualifier parameters. |
SelectQuery(String objEntityName,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
PersistentDescriptor.entityQualifier |
Modifier and Type | Method and Description |
---|---|
Expression |
ClassDescriptor.getEntityQualifier()
Returns entity qualifier as a Cayenne expression that includes qualifiers for this
entity and all subentities.
|
Expression |
LazyClassDescriptorDecorator.getEntityQualifier() |
Expression |
PersistentDescriptor.getEntityQualifier() |
Modifier and Type | Method and Description |
---|---|
void |
PersistentDescriptor.setEntityQualifier(Expression entityQualifier) |
Copyright © 2001–2015 Apache Cayenne. All rights reserved.