Uses of Class
org.apache.cayenne.exp.Expression
-
Packages that use Expression Package Description org.apache.cayenne.access.translator.select org.apache.cayenne.exp Cayenne data expression classes.org.apache.cayenne.exp.parser Contains expression parser and other expression internals.org.apache.cayenne.exp.property Property APIorg.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 -
-
Uses of Expression in org.apache.cayenne.access.translator.select
Methods in org.apache.cayenne.access.translator.select that return Expression Modifier and Type Method Description Expression
FluentSelectWrapper. getHavingQualifier()
Expression
SelectQueryWrapper. getHavingQualifier()
Deprecated.Expression
TranslatableQueryWrapper. getHavingQualifier()
Expression
FluentSelectWrapper. getQualifier()
Expression
SelectQueryWrapper. getQualifier()
Deprecated.Expression
TranslatableQueryWrapper. getQualifier()
-
Uses of Expression in org.apache.cayenne.exp
Methods in org.apache.cayenne.exp that return Expression Modifier and Type Method Description static Expression
FunctionExpressionFactory. absExp(String path)
static Expression
FunctionExpressionFactory. absExp(Expression exp)
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".static Expression
FunctionExpressionFactory. avgExp(Expression exp)
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.static Expression
ExpressionFactory. betweenExp(Expression exp, Object value1, Object value2)
static Expression
FunctionExpressionFactory. concatExp(String... paths)
Factory method for expression to call CONCAT(string1, string2, ...) functionstatic Expression
FunctionExpressionFactory. concatExp(Expression... expressions)
Factory method for expression to call CONCAT(string1, string2, ...) functionExpression
Property. contains(String substring)
Deprecated.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)
static Expression
ExpressionFactory. containsExp(Expression exp, String value)
Expression
Property. containsIgnoreCase(String value)
Deprecated.Same asProperty.contains(String)
, only using case-insensitive comparison.static Expression
ExpressionFactory. containsIgnoreCaseExp(String pathSpec, String value)
Same asExpressionFactory.containsExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory. containsIgnoreCaseExp(Expression exp, String value)
static Expression
FunctionExpressionFactory. countDistinctExp(Expression exp)
static Expression
FunctionExpressionFactory. countExp()
static Expression
FunctionExpressionFactory. countExp(Expression exp)
static Expression
FunctionExpressionFactory. currentDate()
static Expression
FunctionExpressionFactory. currentTime()
static Expression
FunctionExpressionFactory. currentTimestamp()
static Expression
FunctionExpressionFactory. dayOfMonthExp(String path)
static Expression
FunctionExpressionFactory. dayOfMonthExp(Expression exp)
static Expression
FunctionExpressionFactory. dayOfWeekExp(String path)
static Expression
FunctionExpressionFactory. dayOfWeekExp(Expression exp)
static Expression
FunctionExpressionFactory. dayOfYearExp(String path)
static Expression
FunctionExpressionFactory. dayOfYearExp(Expression exp)
static Expression
ExpressionFactory. dbIdPathExp(String pathSpec)
static Expression
ExpressionFactory. dbPathExp(String pathSpec)
Expression
Expression. deepCopy()
Clones this expression.static Expression
ExpressionFactory. enclosingObjectExp(Expression exp)
Expression
Property. endsWith(String value)
Deprecated.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)
static Expression
ExpressionFactory. endsWithExp(Expression exp, String value)
Expression
Property. endsWithIgnoreCase(String value)
Deprecated.Same asProperty.endsWith(String)
, only using case-insensitive comparison.static Expression
ExpressionFactory. endsWithIgnoreCaseExp(String pathSpec, String value)
Same asExpressionFactory.endsWithExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory. endsWithIgnoreCaseExp(Expression exp, String value)
static Expression
ExpressionFactory. exists(FluentSelect<?> subQuery)
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.static Expression
ExpressionFactory. fullObjectExp()
static Expression
ExpressionFactory. fullObjectExp(Expression exp)
static Expression
FunctionExpressionFactory. functionCall(String function, Object... args)
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. greaterExp(Expression exp, Object value)
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.static Expression
ExpressionFactory. greaterOrEqualExp(Expression exp, Object value)
static Expression
FunctionExpressionFactory. hourExp(String path)
static Expression
FunctionExpressionFactory. hourExp(Expression exp)
static Expression
ExpressionFactory. inDbExp(String pathSpec, Object... values)
A convenience shortcut for building IN DB expression.static Expression
ExpressionFactory. inDbExp(String pathSpec, Collection<?> values)
A convenience shortcut for building IN DB expression.static Expression
ExpressionFactory. inDbIdExp(String pathSpec, Object... values)
A convenience shortcut for building IN DBID expression.static Expression
ExpressionFactory. inDbIdExp(String pathSpec, Collection<?> values)
A convenience shortcut for building IN DBID expression.static Expression
ExpressionFactory. inExp(String pathSpec, Object... values)
A convenience shortcut for building IN expression.static Expression
ExpressionFactory. inExp(String pathSpec, Collection<?> values)
A convenience shortcut for building IN expression.static Expression
ExpressionFactory. inExp(Expression exp, Object... values)
static Expression
ExpressionFactory. inExp(Expression exp, Collection<?> values)
static Expression
ExpressionFactory. inExp(Expression exp, ColumnSelect<?> subQuery)
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. joinExp(int type, Collection<Expression> expressions)
Joins all expressions, making a single expression.static Expression
ExpressionFactory. joinExp(int type, Expression... expressions)
Joins all expressions, making a single expression.static Expression
FunctionExpressionFactory. lengthExp(String path)
static Expression
FunctionExpressionFactory. lengthExp(Expression exp)
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. lessExp(Expression exp, Object value)
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.static Expression
ExpressionFactory. lessOrEqualExp(Expression exp, Object value)
Expression
Property. like(String pattern)
Deprecated.Expression
Property. like(String pattern, char escapeChar)
Deprecated.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.static Expression
ExpressionFactory. likeExp(Expression exp, Object value)
static Expression
ExpressionFactory. likeExp(Expression exp, Object value, char escapeChar)
Expression
Property. likeIgnoreCase(String pattern)
Deprecated.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.static Expression
ExpressionFactory. likeIgnoreCaseExp(Expression exp, Object value)
static Expression
FunctionExpressionFactory. locateExp(String substring, String path)
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory. locateExp(String substring, Expression exp)
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory. locateExp(Expression substring, Expression exp)
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory. lowerExp(String path)
static Expression
FunctionExpressionFactory. lowerExp(Expression exp)
static Expression
ExpressionFactory. matchAllDbExp(Map<String,?> map, int pairType)
Creates an expression that matches all key-values pairs inmap
.static Expression
ExpressionFactory. matchAllExp(String path, Object... values)
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(Map<String,?> map, int pairType)
Creates an expression that matches all key-values pairs inmap
.static Expression
ExpressionFactory. matchAnyDbExp(Map<String,?> map, int pairType)
Creates an expression that matches any of the key-values pairs inmap
.static Expression
ExpressionFactory. matchAnyExp(List<? extends Persistent> objects)
Creates an expression that matches any of the objects contained in the listobjects
static Expression
ExpressionFactory. matchAnyExp(Map<String,?> map, int pairType)
Creates an expression that matches any of the key-values pairs in themap
.static Expression
ExpressionFactory. matchAnyExp(Persistent... objects)
Creates an expression that matches any of the objects contained in theobjects
arraystatic Expression
ExpressionFactory. matchDbExp(String pathSpec, Object value)
A convenience method to create an DB_PATH "equal to" expression.static Expression
ExpressionFactory. matchDbIdExp(String pathSpec, Object value)
A convenience method to create an DBID_PATH "equal to" expression.static Expression
ExpressionFactory. matchExp(String pathSpec, Object value)
A convenience method to create an OBJ_PATH "equal to" expression.static Expression
ExpressionFactory. matchExp(Expression exp, Object value)
static Expression
ExpressionFactory. matchExp(Persistent object)
Creates an expression that matches the primary key of object inObjectId
'sIdSnapshot
for the argumentobject
.static Expression
FunctionExpressionFactory. maxExp(Expression exp)
static Expression
FunctionExpressionFactory. minExp(Expression exp)
static Expression
FunctionExpressionFactory. minuteExp(String path)
static Expression
FunctionExpressionFactory. minuteExp(Expression exp)
static Expression
FunctionExpressionFactory. modExp(String path, Number number)
static Expression
FunctionExpressionFactory. modExp(Expression exp, Number number)
static Expression
FunctionExpressionFactory. modExp(Expression exp, Expression number)
static Expression
FunctionExpressionFactory. monthExp(String path)
static Expression
FunctionExpressionFactory. monthExp(Expression exp)
Expression
Property. nlike(String value)
Deprecated.Expression
Property. nlikeIgnoreCase(String value)
Deprecated.static Expression
ExpressionFactory. noMatchDbExp(String pathSpec, Object value)
A convenience method to create an DB_PATH "not equal to" expression.static Expression
ExpressionFactory. noMatchDbIdExp(String pathSpec, Object value)
A convenience method to create an DBID_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. noMatchExp(Expression exp, Object value)
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.static Expression
ExpressionFactory. notBetweenExp(Expression exp, Object value1, Object value2)
static Expression
ExpressionFactory. notExists(FluentSelect<?> subQuery)
abstract Expression
Expression. notExp()
Returns a logical NOT of current expression.static Expression
ExpressionFactory. notInDbExp(String pathSpec, Object... values)
A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory. notInDbExp(String pathSpec, Collection<?> values)
A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory. notInDbIdExp(String pathSpec, Object... values)
A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory. notInDbIdExp(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. notInExp(String pathSpec, Collection<?> values)
A convenience shortcut for building NOT_IN expression.static Expression
ExpressionFactory. notInExp(Expression exp, Object... values)
static Expression
ExpressionFactory. notInExp(Expression exp, Collection<?> values)
static Expression
ExpressionFactory. notInExp(Expression exp, ColumnSelect<?> subQuery)
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. notLikeExp(Expression exp, Object value)
static Expression
ExpressionFactory. notLikeExp(Expression exp, Object value, char escapeChar)
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. notLikeIgnoreCaseExp(Expression exp, Object value)
static Expression
ExpressionFactory. notLikeIgnoreCaseExp(Expression exp, Object value, char escapeChar)
static Expression
FunctionExpressionFactory. operator(String operator, Object... args)
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.static Expression
ExpressionFactory. pathExp(String pathSpec)
static Expression
FunctionExpressionFactory. secondExp(String path)
static Expression
FunctionExpressionFactory. secondExp(Expression exp)
abstract Expression
Expression. shallowCopy()
Creates a copy of this expression node, without copying children.static Expression
FunctionExpressionFactory. sqrtExp(String path)
static Expression
FunctionExpressionFactory. sqrtExp(Expression exp)
Expression
Property. startsWith(String value)
Deprecated.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)
static Expression
ExpressionFactory. startsWithExp(Expression exp, String value)
Expression
Property. startsWithIgnoreCase(String value)
Deprecated.Same asProperty.startsWith(String)
, only using case-insensitive comparison.static Expression
ExpressionFactory. startsWithIgnoreCaseExp(String pathSpec, String value)
Same asExpressionFactory.startsWithExp(String, String)
only using case-insensitive comparison.static Expression
ExpressionFactory. startsWithIgnoreCaseExp(Expression exp, String value)
static Expression
FunctionExpressionFactory. substringExp(String path, int offset, int length)
Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory. substringExp(Expression exp, int offset, int length)
Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory. substringExp(Expression exp, Expression offset, Expression length)
Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory. sumExp(Expression exp)
Expression
Expression. transform(Function<Object,Object> transformer)
Creates a transformed copy of this expression, applying transformation provided by Transformer to all its nodes.static Expression
FunctionExpressionFactory. trimExp(String path)
static Expression
FunctionExpressionFactory. trimExp(Expression exp)
static Expression
FunctionExpressionFactory. upperExp(String path)
static Expression
FunctionExpressionFactory. upperExp(Expression exp)
static Expression
FunctionExpressionFactory. weekExp(String path)
static Expression
FunctionExpressionFactory. weekExp(Expression exp)
static Expression
ExpressionFactory. wrapScalarValue(Object value)
Wrap value into ASTScalarstatic Expression
FunctionExpressionFactory. yearExp(String path)
static Expression
FunctionExpressionFactory. yearExp(Expression exp)
Methods in org.apache.cayenne.exp with parameters of type Expression Modifier and Type Method Description static Expression
FunctionExpressionFactory. absExp(Expression exp)
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".static Expression
FunctionExpressionFactory. avgExp(Expression exp)
static Expression
ExpressionFactory. betweenExp(Expression exp, Object value1, Object value2)
static Expression
FunctionExpressionFactory. concatExp(Expression... expressions)
Factory method for expression to call CONCAT(string1, string2, ...) functionstatic Expression
ExpressionFactory. containsExp(Expression exp, String value)
static Expression
ExpressionFactory. containsIgnoreCaseExp(Expression exp, String value)
static Expression
FunctionExpressionFactory. countDistinctExp(Expression exp)
static Expression
FunctionExpressionFactory. countExp(Expression exp)
static <T> Property<T>
Property. create(String name, Expression expression, Class<? super T> type)
Deprecated.Creates property with name, expression and typestatic <T> Property<T>
Property. create(Expression expression, Class<? super T> type)
Deprecated.Creates property with expression and typestatic Expression
FunctionExpressionFactory. dayOfMonthExp(Expression exp)
static Expression
FunctionExpressionFactory. dayOfWeekExp(Expression exp)
static Expression
FunctionExpressionFactory. dayOfYearExp(Expression exp)
static Expression
ExpressionFactory. enclosingObjectExp(Expression exp)
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)
static Expression
ExpressionFactory. endsWithExp(Expression exp, String value)
static Expression
ExpressionFactory. endsWithIgnoreCaseExp(Expression exp, String value)
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)
static Expression
ExpressionFactory. fullObjectExp(Expression exp)
static Expression
ExpressionFactory. greaterExp(Expression exp, Object value)
static Expression
ExpressionFactory. greaterOrEqualExp(Expression exp, Object value)
static Expression
FunctionExpressionFactory. hourExp(Expression exp)
static Expression
ExpressionFactory. inExp(Expression exp, Object... values)
static Expression
ExpressionFactory. inExp(Expression exp, Collection<?> values)
static Expression
ExpressionFactory. inExp(Expression exp, ColumnSelect<?> subQuery)
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. joinExp(int type, Expression... expressions)
Joins all expressions, making a single expression.static Expression
FunctionExpressionFactory. lengthExp(Expression exp)
static Expression
ExpressionFactory. lessExp(Expression exp, Object value)
static Expression
ExpressionFactory. lessOrEqualExp(Expression exp, Object value)
static Expression
ExpressionFactory. likeExp(Expression exp, Object value)
static Expression
ExpressionFactory. likeExp(Expression exp, Object value, char escapeChar)
static Expression
ExpressionFactory. likeIgnoreCaseExp(Expression exp, Object value)
static Expression
FunctionExpressionFactory. locateExp(String substring, Expression exp)
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory. locateExp(Expression substring, Expression exp)
Call LOCATE(substring, string) function that return position of substring in string or 0 if it is not found.static Expression
FunctionExpressionFactory. lowerExp(Expression exp)
static Expression
ExpressionFactory. matchExp(Expression exp, Object value)
static Expression
FunctionExpressionFactory. maxExp(Expression exp)
static Expression
FunctionExpressionFactory. minExp(Expression exp)
static Expression
FunctionExpressionFactory. minuteExp(Expression exp)
static Expression
FunctionExpressionFactory. modExp(Expression exp, Number number)
static Expression
FunctionExpressionFactory. modExp(Expression exp, Expression number)
static Expression
FunctionExpressionFactory. monthExp(Expression exp)
static Expression
ExpressionFactory. noMatchExp(Expression exp, Object value)
static Expression
ExpressionFactory. notBetweenExp(Expression exp, Object value1, Object value2)
static Expression
ExpressionFactory. notInExp(Expression exp, Object... values)
static Expression
ExpressionFactory. notInExp(Expression exp, Collection<?> values)
static Expression
ExpressionFactory. notInExp(Expression exp, ColumnSelect<?> subQuery)
static Expression
ExpressionFactory. notLikeExp(Expression exp, Object value)
static Expression
ExpressionFactory. notLikeExp(Expression exp, Object value, char escapeChar)
static Expression
ExpressionFactory. notLikeIgnoreCaseExp(Expression exp, Object value)
static Expression
ExpressionFactory. notLikeIgnoreCaseExp(Expression exp, Object value, char escapeChar)
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".static Expression
FunctionExpressionFactory. secondExp(Expression exp)
static Expression
FunctionExpressionFactory. sqrtExp(Expression exp)
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)
static Expression
ExpressionFactory. startsWithExp(Expression exp, String value)
static Expression
ExpressionFactory. startsWithIgnoreCaseExp(Expression exp, String value)
static Expression
FunctionExpressionFactory. substringExp(Expression exp, int offset, int length)
Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory. substringExp(Expression exp, Expression offset, Expression length)
Call SUBSTRING(string, offset, length) functionstatic Expression
FunctionExpressionFactory. sumExp(Expression exp)
protected void
Expression. traverse(Expression parentExp, TraversalHandler visitor)
Traverses itself and child expressions, notifying visitor via callback methods as it goes.static Expression
FunctionExpressionFactory. trimExp(Expression exp)
static Expression
FunctionExpressionFactory. upperExp(Expression exp)
static Expression
FunctionExpressionFactory. weekExp(Expression exp)
static Expression
FunctionExpressionFactory. yearExp(Expression exp)
Method parameters in org.apache.cayenne.exp with type arguments of type Expression Modifier and Type Method 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)
Constructors in org.apache.cayenne.exp with parameters of type Expression Constructor Description Property(String name, Expression expression, Class<E> type)
Deprecated.Constructs a new property with the given name and expression -
Uses of Expression in org.apache.cayenne.exp.parser
Subclasses of Expression in org.apache.cayenne.exp.parser Modifier and Type Class Description class
AggregateConditionNode
Superclass of aggregated conditional nodes such as NOT, AND, OR.class
ASTAbs
class
ASTAdd
"Add" Expression.class
ASTAggregateFunctionCall
Base class for all aggregation functions expressions It's more like marker interface for now.class
ASTAnd
"And" expression.class
ASTAsterisk
Asterisk operator for COUNT(*) expression.class
ASTAvg
class
ASTBetween
"Between" expression.class
ASTBitwiseAnd
Bitwise conjunction (AND or '&') expressionclass
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
ASTConcat
class
ASTCount
class
ASTCurrentDate
class
ASTCurrentTime
class
ASTCurrentTimestamp
class
ASTCustomFunction
class
ASTCustomOperator
class
ASTDbIdPath
class
ASTDbPath
Path expression traversing DB relationships and attributes.class
ASTDistinct
class
ASTDivide
"Divide" expression.class
ASTEnclosingObject
class
ASTEnum
Scalar node that represents constant enumeration value.class
ASTEqual
"Equal To" expression.class
ASTExists
class
ASTExtract
class
ASTFalse
Boolean false expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.class
ASTFullObject
class
ASTFunctionCall
class
ASTGreater
"Greater Than" expression.class
ASTGreaterOrEqual
"Greater Than Or Equal To" expression.class
ASTIn
"In" expression.class
ASTLength
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
ASTLocate
class
ASTLower
class
ASTMax
class
ASTMin
class
ASTMod
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
ASTNotExists
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
ASTSqrt
class
ASTSubquery
class
ASTSubstring
class
ASTSubtract
"Subtract" expression.class
ASTSum
class
ASTTrim
class
ASTTrue
Boolean true expression element Notice that there is one ASTTrue and one ASTFalse instead of a ASTBoolean with a Boolean value.class
ASTUpper
class
ConditionNode
Superclass of conditional expressions.class
EvaluatedBitwiseNode
class
EvaluatedMathNode
class
EvaluatedNode
class
PatternMatchNode
Superclass of pattern matching nodes.class
SimpleNode
Superclass of AST* expressions that implements Node interface defined by JavaCC framework.Methods in org.apache.cayenne.exp.parser that return Expression Modifier and Type Method Description Expression
ExpressionParser. expression()
Expression
SimpleNode. notExp()
Expression
ASTAbs. shallowCopy()
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
ASTAsterisk. shallowCopy()
Expression
ASTAvg. shallowCopy()
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
ASTConcat. shallowCopy()
Expression
ASTCount. shallowCopy()
Expression
ASTCurrentDate. shallowCopy()
Expression
ASTCurrentTime. shallowCopy()
Expression
ASTCurrentTimestamp. shallowCopy()
Expression
ASTCustomFunction. shallowCopy()
Expression
ASTCustomOperator. shallowCopy()
Expression
ASTDbIdPath. shallowCopy()
Creates a copy of this expression node, without copying children.Expression
ASTDbPath. shallowCopy()
Creates a copy of this expression node, without copying children.Expression
ASTDistinct. shallowCopy()
Expression
ASTDivide. shallowCopy()
Creates a copy of this expression node, without copying children.Expression
ASTEnclosingObject. shallowCopy()
Expression
ASTEnum. shallowCopy()
Expression
ASTEqual. shallowCopy()
Creates a copy of this expression node, without copying children.Expression
ASTExists. shallowCopy()
Expression
ASTExtract. shallowCopy()
Expression
ASTFalse. shallowCopy()
Expression
ASTFullObject. 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
ASTLength. shallowCopy()
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
ASTLocate. shallowCopy()
Expression
ASTLower. shallowCopy()
Expression
ASTMax. shallowCopy()
Expression
ASTMin. shallowCopy()
Expression
ASTMod. shallowCopy()
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
ASTNotExists. shallowCopy()
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
ASTSqrt. shallowCopy()
Expression
ASTSubquery. shallowCopy()
Expression
ASTSubstring. shallowCopy()
Expression
ASTSubtract. shallowCopy()
Creates a copy of this expression node, without copying children.Expression
ASTSum. shallowCopy()
Expression
ASTTrim. shallowCopy()
Expression
ASTTrue. shallowCopy()
Expression
ASTUpper. shallowCopy()
Constructors in org.apache.cayenne.exp.parser with parameters of type Expression Constructor Description ASTAbs(Expression expression)
ASTAvg(Expression expression)
ASTConcat(Expression... expressions)
ASTCount(Expression expression)
ASTDistinct(Expression expression)
ASTEnclosingObject(Expression expression)
ASTExtract(Expression expression)
ASTFullObject(Expression expression)
ASTLength(Expression expression)
ASTLocate(Expression substring, Expression path)
ASTLocate(Expression substring, Expression path, Expression offset)
ASTLower(Expression expression)
ASTMax(Expression expression)
ASTMin(Expression expression)
ASTMod(Expression expression, Expression divisor)
ASTSqrt(Expression expression)
ASTSubstring(Expression path, Expression length, Expression offset)
ASTSum(Expression expression)
ASTTrim(Expression path)
ASTUpper(Expression expression)
-
Uses of Expression in org.apache.cayenne.exp.property
Fields in org.apache.cayenne.exp.property with type parameters of type Expression Modifier and Type Field Description protected Supplier<Expression>
BaseProperty. expressionSupplier
Expression provider for the propertyMethods in org.apache.cayenne.exp.property that return Expression Modifier and Type Method Description default Expression
ComparableProperty. between(E lower, E upper)
default Expression
ComparableProperty. between(ComparableProperty<?> lower, ComparableProperty<?> upper)
Expression
CollectionProperty. contains(Collection<V> values)
Expression
CollectionProperty. contains(V value)
Expression
CollectionProperty. contains(V firstValue, V... moreValues)
Expression
MapProperty. contains(Collection<V> values)
Expression
MapProperty. contains(V value)
Expression
MapProperty. contains(V firstValue, V... moreValues)
Expression
StringProperty. contains(String substring)
Creates an expression for a database "LIKE" query with the value converted to a pattern matching anywhere in the String.Expression
CollectionProperty. containsId(Object id)
Expression
CollectionProperty. containsId(Object firstId, Object... moreId)
Expression
CollectionProperty. containsId(Collection<Object> ids)
Expression
MapProperty. containsId(Object id)
Expression
MapProperty. containsId(Object firstId, Object... moreId)
Expression
MapProperty. containsId(Collection<Object> ids)
Expression
StringProperty. containsIgnoreCase(String value)
Same asStringProperty.contains(String)
, only using case-insensitive comparison.Expression
StringProperty. endsWith(String value)
Creates an expression for a database "LIKE" query with the value converted to a pattern matching the tail of a String.Expression
StringProperty. endsWithIgnoreCase(String value)
Same asStringProperty.endsWith(String)
, only using case-insensitive comparison.Expression
BaseProperty. eq(E value)
Expression
BaseProperty. eq(BaseProperty<?> value)
default Expression
IdProperty. eq(ObjectId value)
Expression
EntityProperty. eqId(Object id)
Expression
BaseProperty. getExpression()
This method returns fresh copy of the expression for each call.Expression
Property. getExpression()
default Expression
ComparableProperty. gt(E value)
default Expression
ComparableProperty. gt(ComparableProperty<?> value)
default Expression
ComparableProperty. gte(E value)
default Expression
ComparableProperty. gte(ComparableProperty<?> value)
Expression
BaseProperty. in(E firstValue, E... moreValues)
Expression
BaseProperty. in(Collection<E> values)
Expression
BaseProperty. in(ColumnSelect<? extends E> subquery)
Expression
EntityProperty. inId(Object firstId, Object... moreIds)
Expression
EntityProperty. inId(Collection<Object> ids)
Expression
BaseProperty. isFalse()
Expression
BaseProperty. isNotNull()
Expression
BaseProperty. isNull()
Expression
BaseProperty. isTrue()
Expression
StringProperty. like(String pattern)
Expression
StringProperty. like(String pattern, char escapeChar)
Expression
StringProperty. like(StringProperty<?> pattern)
Expression
StringProperty. likeIgnoreCase(String pattern)
Expression
StringProperty. likeIgnoreCase(StringProperty<?> pattern)
default Expression
ComparableProperty. lt(E value)
default Expression
ComparableProperty. lt(ComparableProperty<?> value)
default Expression
ComparableProperty. lte(E value)
default Expression
ComparableProperty. lte(ComparableProperty<?> value)
Expression
BaseProperty. ne(E value)
Expression
BaseProperty. ne(BaseProperty<?> value)
Expression
EntityProperty. neqId(Object id)
Expression
BaseProperty. nin(E firstValue, E... moreValues)
Expression
BaseProperty. nin(Collection<E> values)
Expression
BaseProperty. nin(ColumnSelect<? extends E> subquery)
Expression
EntityProperty. ninId(Object firstId, Object... moreIds)
Expression
EntityProperty. ninId(Collection<Object> ids)
Expression
StringProperty. nlike(String value)
Expression
StringProperty. nlike(StringProperty<?> value)
Expression
StringProperty. nlikeIgnoreCase(String value)
Expression
StringProperty. nlikeIgnoreCase(StringProperty<?> value)
Expression
CollectionProperty. notContains(Collection<V> values)
Expression
CollectionProperty. notContains(V value)
Expression
CollectionProperty. notContains(V firstValue, V... moreValues)
Expression
MapProperty. notContains(Collection<V> values)
Expression
MapProperty. notContains(V value)
Expression
MapProperty. notContains(V firstValue, V... moreValues)
Expression
CollectionProperty. notContainsId(Object id)
Expression
CollectionProperty. notContainsId(Object firstId, Object... moreId)
Expression
CollectionProperty. notContainsId(Collection<Object> ids)
Expression
MapProperty. notContainsId(Object id)
Expression
MapProperty. notContainsId(Object firstId, Object... moreId)
Expression
MapProperty. notContainsId(Collection<Object> ids)
Expression
BaseProperty. path()
Deprecated.since 4.2, useBaseProperty.getExpression()
method insteadExpression
StringProperty. startsWith(String value)
Creates an expression for a database "LIKE" query with the value converted to a pattern matching the beginning of a String.Expression
StringProperty. startsWithIgnoreCase(String value)
Same asStringProperty.startsWith(String)
, only using case-insensitive comparison.Methods in org.apache.cayenne.exp.property with parameters of type Expression Modifier and Type Method Description static <T> BaseProperty<T>
PropertyFactory. createBase(String name, Expression expression, Class<T> type)
Create base propertystatic <T> BaseProperty<T>
PropertyFactory. createBase(Expression expression, Class<T> type)
Create base propertystatic <T> DateProperty<T>
PropertyFactory. createDate(String name, Expression expression, Class<T> type)
Create date propertystatic <T> DateProperty<T>
PropertyFactory. createDate(Expression expression, Class<T> type)
Create date propertystatic <T extends EmbeddableObject>
EmbeddableProperty<T>PropertyFactory. createEmbeddable(String name, Expression exp, Class<T> embeddableType)
Create property that represents embeddablestatic <T extends Persistent>
EntityProperty<T>PropertyFactory. createEntity(String name, Expression expression, Class<T> entityType)
Create entity propertystatic <T extends Persistent>
EntityProperty<T>PropertyFactory. createEntity(Expression expression, Class<T> type)
Create entity propertystatic <T extends Persistent>
ListProperty<T>PropertyFactory. createList(String name, Expression expression, Class<T> entityType)
Create to-many relationship mapped on list propertystatic <K,V extends Persistent>
MapProperty<K,V>PropertyFactory. createMap(String name, Expression expression, Class<K> keyType, Class<V> entityType)
Create to-many relationship mapped on map propertystatic <T extends Number>
NumericProperty<T>PropertyFactory. createNumeric(String name, Expression expression, Class<T> type)
Create numeric propertystatic <T extends Number>
NumericProperty<T>PropertyFactory. createNumeric(Expression expression, Class<T> type)
Create numeric propertystatic <T extends Persistent>
EntityProperty<T>PropertyFactory. createSelf(Expression expression, Class<T> type)
Self property allows to create column queries that return full objects along with custom column set.static <T extends Persistent>
SetProperty<T>PropertyFactory. createSet(String name, Expression expression, Class<T> entityType)
Create to-many relationship mapped on set propertystatic <T extends CharSequence>
StringProperty<T>PropertyFactory. createString(String name, Expression expression, Class<T> type)
Create string propertystatic <T extends CharSequence>
StringProperty<T>PropertyFactory. createString(Expression expression, Class<T> type)
Create string propertyConstructors in org.apache.cayenne.exp.property with parameters of type Expression Constructor Description BaseProperty(String name, Expression expression, Class<? super E> type)
Constructs a new property with the given name and expressionCollectionProperty(String name, Expression expression, Class<? super E> collectionType, Class<V> entityType)
Constructs a new property with the given name and expressionDateProperty(String name, Expression expression, Class<E> type)
Constructs a new property with the given name and expressionEmbeddableProperty(String name, Expression exp, Class<? super E> type)
Constructs a new property with the given name and typeEntityProperty(String name, Expression expression, Class<E> type)
Constructs a new property with the given name and expressionListProperty(String name, Expression expression, Class<V> entityType)
Constructs a new property with the given name and expressionMapProperty(String name, Expression expression, Class<K> keyType, Class<V> entityType)
Constructs a new property with the given name and expressionNumericProperty(String name, Expression expression, Class<E> type)
Constructs a new property with the given name and expressionSetProperty(String name, Expression expression, Class<V> entityType)
Constructs a new property with the given name and expressionStringProperty(String name, Expression expression, Class<E> type)
Constructs a new property with the given name and expression -
Uses of Expression in org.apache.cayenne.map
Fields in org.apache.cayenne.map declared as Expression Modifier and Type Field Description protected Expression
EntityInheritanceTree. normalizedQualifier
protected Expression
DbEntity. qualifier
Qualifier, that will be applied to all select queries and joins with this DbEntityprotected Expression
ObjEntity. qualifier
protected Expression
QueryDescriptorLoader. qualifier
protected Expression
SelectQueryDescriptor. qualifier
Methods in org.apache.cayenne.map that return Expression Modifier and Type Method 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
SelectQueryDescriptor. getQualifier()
Returns qualifier of this query.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.Methods in org.apache.cayenne.map with parameters of type Expression Modifier and Type Method Description PathComponent<DbAttribute,DbRelationship>
DbEntity. lastPathComponent(Expression path, Map aliasMap)
<T extends Attribute,U extends Relationship>
PathComponent<T,U>Entity. lastPathComponent(Expression path, Map aliasMap)
Convenience method returning the last component in the path iterator.PathComponent<ObjAttribute,ObjRelationship>
ObjEntity. lastPathComponent(Expression path, Map aliasMap)
Iterable<PathComponent<DbAttribute,DbRelationship>>
DbEntity. resolvePath(Expression pathExp, Map aliasMap)
Returns an Iterable instance over expression path components based on this entity.abstract <T extends Attribute,U extends Relationship>
Iterable<PathComponent<T,U>>Entity. resolvePath(Expression pathExp, Map aliasMap)
Returns an Iterable over the path components with elements represented asPathComponent
instances, encapsulating a relationship, an attribute or a subpath alias.Iterable<PathComponent<ObjAttribute,ObjRelationship>>
ObjEntity. resolvePath(Expression pathExp, Map aliasMap)
Returns an Iterable instance over expression path components based on this entity.Iterator<CayenneMapEntry>
DbEntity. resolvePathComponents(Expression pathExp)
abstract Iterator<CayenneMapEntry>
Entity. resolvePathComponents(Expression pathExp)
Processes expressionpathExp
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 entityvoid
SelectQueryDescriptor. setQualifier(Expression qualifier)
Sets qualifier for this query.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. -
Uses of Expression in org.apache.cayenne.query
Fields in org.apache.cayenne.query declared as Expression Modifier and Type Field Description protected Expression
FluentSelect. having
protected Expression
SelectQuery. havingQualifier
Deprecated.protected Expression
SelectQuery. qualifier
Deprecated.protected Expression
Ordering. sortSpec
protected Expression
FluentSelect. where
Methods in org.apache.cayenne.query that return Expression Modifier and Type Method Description Expression
FluentSelect. getHaving()
Returns a HAVING clause Expression of this query.Expression
SelectQuery. getHavingQualifier()
Deprecated.Returns query HAVING qualifier.Expression
SelectById.IdSpec. getQualifier(ObjEntity entity)
Expression
SelectById.MultiMapIdSpec. getQualifier(ObjEntity entity)
Expression
SelectById.MultiScalarIdSpec. getQualifier(ObjEntity entity)
Expression
SelectById.SingleMapIdSpec. getQualifier(ObjEntity entity)
Expression
SelectById.SingleScalarIdSpec. getQualifier(ObjEntity entity)
Expression
SelectQuery. getQualifier()
Deprecated.Returns query qualifier.Expression
Ordering. getSortSpec()
Returns the expression defining a ordering Java Bean property.Expression
FluentSelect. getWhere()
Returns a WHERE clause Expression of this query.Methods in org.apache.cayenne.query with parameters of type Expression Modifier and Type Method Description ColumnSelect<T>
ColumnSelect. and(Expression... expressions)
AND's provided expressions to the existing WHERE clause expression.ObjectSelect<T>
ObjectSelect. and(Expression... expressions)
AND's provided expressions to the existing WHERE clause expression.void
SelectQuery. andHavingQualifier(Expression e)
Deprecated.Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "AND".void
SelectQuery. andQualifier(Expression e)
Deprecated.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 anObjEntity
determined from a provided class and uses provided expression for its qualifier.static SelectQuery<DataRow>
SelectQuery. dataRowQuery(Class<?> rootClass, Expression qualifier)
Deprecated.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)
Deprecated.static ObjectSelect<DataRow>
ObjectSelect. dbQuery(String dbEntityName, Expression expression)
Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName" and uses provided expression for its qualifier.ColumnSelect<T>
ColumnSelect. having(Expression expression)
Appends a having qualifier expression of this query.ObjectSelect<T>
ObjectSelect. having(Expression expression)
Appends a having qualifier expression of this query.ColumnSelect<T>
ColumnSelect. or(Expression... expressions)
OR's provided expressions to the existing WHERE clause expression.ObjectSelect<T>
ObjectSelect. or(Expression... expressions)
OR's provided expressions to the existing WHERE clause expression.void
SelectQuery. orHavingQualifier(Expression e)
Deprecated.Adds specified HAVING qualifier to the existing HAVING qualifier joining it using "OR".void
SelectQuery. orQualifier(Expression e)
Deprecated.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> 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.static <T> SelectQuery<T>
SelectQuery. query(Class<T> rootClass, Expression qualifier)
Deprecated.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)
Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.void
SelectQuery. setHavingQualifier(Expression qualifier)
Deprecated.Sets new query HAVING qualifier.void
SelectQuery. setQualifier(Expression qualifier)
Deprecated.Sets new query qualifier.void
Ordering. setSortSpec(Expression sortSpec)
Sets the expression defining a ordering Java Bean property.ColumnSelect<T>
ColumnSelect. where(Expression expression)
Appends a qualifier expression of this query.ObjectSelect<T>
ObjectSelect. where(Expression expression)
Appends a qualifier expression of this query.Method parameters in org.apache.cayenne.query with type arguments of type Expression Modifier and Type Method Description ColumnSelect<T>
ColumnSelect. and(Collection<Expression> expressions)
AND's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect<T>
ObjectSelect. and(Collection<Expression> expressions)
AND's provided expressions to the existing WHERE clause expression.ColumnSelect<T>
ColumnSelect. or(Collection<Expression> expressions)
OR's provided expressions to the existing WHERE or HAVING clause expression.ObjectSelect<T>
ObjectSelect. or(Collection<Expression> expressions)
OR's provided expressions to the existing WHERE clause expression.Constructors in org.apache.cayenne.query with parameters of type Expression Constructor Description Ordering(Expression sortSpec)
Ordering(Expression sortSpec, SortOrder sortOrder)
SelectQuery(Class<T> rootClass, Expression qualifier)
Deprecated.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)
Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(String objEntityName, Expression qualifier)
Deprecated.Creates SelectQuery withobjEntityName
andqualifier
parameters.SelectQuery(String objEntityName, Expression qualifier, List<? extends Ordering> orderings)
Deprecated.Creates a SelectQuery that selects objects of a given persistent class that match supplied qualifier.SelectQuery(DbEntity root, Expression qualifier)
Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier.SelectQuery(DbEntity root, Expression qualifier, List<? extends Ordering> orderings)
Deprecated.Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.SelectQuery(ObjEntity root, Expression qualifier)
Deprecated.Creates a SelectQuery for the specified ObjEntity with the given qualifier.SelectQuery(ObjEntity root, Expression qualifier, List<? extends Ordering> orderings)
Deprecated.Creates a SelectQuery for the specified ObjEntity with the given qualifier and orderings. -
Uses of Expression in org.apache.cayenne.reflect
Fields in org.apache.cayenne.reflect declared as Expression Modifier and Type Field Description protected Expression
PersistentDescriptor. entityQualifier
Methods in org.apache.cayenne.reflect that return Expression Modifier and Type Method 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()
Methods in org.apache.cayenne.reflect with parameters of type Expression Modifier and Type Method Description void
PersistentDescriptor. setEntityQualifier(Expression entityQualifier)
-


The data here is scraped from the Metmuseum Collections Website, and as such, is under the same terms and conditions. That is to say, any person using this data takes full responsibility in abiding by those terms and conditions. The code is available on github - please submit bug reports and suggestions to the issue tracker.


Doctrine2 ¶
Access the database using Doctrine2 ORM.
When used with Zend Framework 2 or Symfony2, Doctrine's Entity Manager is automatically retrieved from Service Locator.
Set up your functional.suite.yml
like this:
modules:
enabled:
- Symfony # 'ZF2' or 'Symfony'
- Doctrine2:
depends: Symfony
cleanup: true # All doctrine queries will be wrapped in a transaction, which will be rolled back at the end of each test
If you don't use Symfony or Zend Framework, you need to specify a callback function to retrieve the Entity Manager:
modules:
enabled:
- Doctrine2:
connection_callback: ['MyDb', 'createEntityManager']
cleanup: true # All doctrine queries will be wrapped in a transaction, which will be rolled back at the end of each test
This will use static method of MyDb::createEntityManager()
to establish the Entity Manager.
By default, the module will wrap everything into a transaction for each test and roll it back afterwards. By doing this tests will run much faster and will be isolated from each other.
Status ¶
- Maintainer: davert
- Stability: stable
- Contact<EMAIL_ADDRESS>Config ¶
Public Properties ¶
em
- Entity Manager
Actions ¶
dontSeeInRepository ¶
Flushes changes to database and performs findOneBy()
call for current repository.
param
$entityparam array
$params
flushToDatabase ¶
Performs $em->flush();
grabEntitiesFromRepository ¶
Selects entities from repository. It builds query based on array of parameters. You can use entity associations to build complex queries.
Example:
<?php
$users = $I->grabEntitiesFromRepository('AppBundle:User', array('name' => 'davert'));
?>
Available since
1.1param
$entityparam array
$paramsreturn
array
grabEntityFromRepository ¶
Selects a single entity from repository. It builds query based on array of parameters. You can use entity associations to build complex queries.
Example:
<?php
$user = $I->grabEntityFromRepository('User', array('id' => '1234'));
?>
Available since
1.1param
$entityparam array
$paramsreturn
object
grabFromRepository ¶
Selects field value from repository. It builds query based on array of parameters. You can use entity associations to build complex queries.
Example:
<?php
$email = $I->grabFromRepository('User', 'email', array('name' => 'davert'));
?>
Available since
1.1param
$entityparam
$fieldparam array
$paramsreturn
array
haveFakeRepository ¶
Mocks the repository.
With this action you can redefine any method of any repository. Please, note: this fake repositories will be accessible through entity manager till the end of test.
Example:
<?php
$I->haveFakeRepository('Entity\User', array('findByUsername' => function($username) { return null; }));
This creates a stub class for Entity\User repository with redefined method findByUsername, which will always return the NULL value.
param
$classnameparam array
$methods
haveInRepository ¶
Persists record into repository.
This method creates an entity, and sets its properties directly (via reflection).
Setters of entity won't be executed, but you can create almost any entity and save it to database.
Returns id using getId
of newly created entity.
$I->haveInRepository('Entity\User', array('name' => 'davert'));
onReconfigure ¶
@throws ModuleConfigException
persistEntity ¶
Adds entity to repository and flushes. You can redefine it's properties with the second parameter.
Example:
<?php
$I->persistEntity(new \Entity\User, array('name' => 'Miles'));
$I->persistEntity($user, array('name' => 'Miles'));
param
$objparam array
$values
seeInRepository ¶
Flushes changes to database, and executes a query with parameters defined in an array. You can use entity associations to build complex queries.
Example:
<?php
$I->seeInRepository('AppBundle:User', array('name' => 'davert'));
$I->seeInRepository('User', array('name' => 'davert', 'Company' => array('name' => 'Codegyre')));
$I->seeInRepository('Client', array('User' => array('Company' => array('name' => 'Codegyre')));
?>
Fails if record for given criteria can\'t be found,
param
$entityparam array
$params


--- layout: default title: Obsidian User Studies ---
We conducted user studies to compare different designs of the Obsidian language to see which is best for programmers. If you participated, thank you!
Obsidian detects bugs involving loss of assets and improper invocation of transactions in smart contracts. We recruited 20 programmers. We asked 10 of them to complete a programming task in Solidity and 10 to complete the same task in Obsidian. Of 9 programmers who thought they finished the task in Solidity, 7 inserted bugs that lost assets! None of the 8 who thought they completed the task in Obsidian lost any assets. You can read more about this study in our OOPSLA paper.
We also conducted formative studies so that we could base the design of Obsidian on data from users. We summarized these formative studies in an upcoming TOCHI paper
.


The safetyGraphics
shiny app provides an easy-to-use shiny interface for creating shareable safety graphics for any study. This vignette provides an overview of the app’s functionality, shows how to initialize the app with your own study data, and provides links to technical resources explaining how to customize the app.
A demo of shiny application using data from the {safetyData} package is hosted here. The app can also be initialized with the safetyGraphicsApp()
function in the R console - see Appendix 1 for details.
Let’s take a quick look at the various pages in the app.
The Mapping tab is used to tell charts which data columns and fields to use for various chart components.
This mapping process makes it easy to re-use charts across many different studies. You can see previews of the loaded data using the checkbox at the top of the page. The demo data has 3 data domains (labs, adverse events (aes) and demographics (dm)), but others can be added as well. The mapping tab is automatically filled in for common data standards, like the ADaM data shown here, but can also be filled in manually for non-standard data.
The Filtering tab allows users to interactively select which participants to include in charts.
This tab is created using the filter functionality included in the {datamods} package. Whenever data is filtered in this tab, those filtered data are used in all charts (across all data domains). Note that the number of participants selected is always shown in the upper right hand corner of the app.
Clicking the Charts tab opens a dropdown menu containing a series of charts related to clinical trial safety. Clicking the Hepatic Safety Explorer opens this page:
safetyGraphics supports many different kinds of charts including web-based interactive graphics using {htmlwidgets} (like the chart shown above), static plots, plotly plots and custom shiny modules. Each chart has a header that provides details about the chart, links to chart-specific resources and buttons that allow users to download a stand-alone html report or a .R file that reproduces the chart. See the Chart Configuration Vignette for more detail about the safetyGraphics charting framework.
Finally, the Settings tab - shown as a gear icon ⚙ - contains technical details that can be used to customize/troubleshoot the app. Clicking on the “Code” sub-tab (shown below) allows you to download a zip file that can be used to re-open the app with with any customizations that have been made during your current session.
safetyGraphics supports a wide range of data formats and standards. Generally speaking, any clinical data can be loaded as long it meets the minimal data requirements described in appendix 2.
There are 2 primary ways to load your study data in to the safetyGraphics shiny app:
safetyGraphicsInit()
shiny interfacesafetyGraphicsApp()
safetyGraphicsInit()
The safetyGraphicsInit()
function starts a simple app that allows users to select charts and then load the data required via a point-and-click interface as shown below:
The app dynamically determines which data sets are required for the selected charts and updates the “Data Loader” UI when the charts selection changes. Below, we’ve selected 2 charts from the labs domain - so the other data domains are automatically hidden.
Once you’ve picked charts, click the “Load” buttons in the “Data Loader” section to select data files for each domain. Data is loaded using the import functionality from the {datamods}
package which allows you to select data loaded in your R session or load data files directly from your file system. datamods supports any file format that {rio} can handle including text files, Excel, SAS and SPSS format.
Once you’ve loaded files for all of the active data domains, the “Run App” button will become active. Click it to initialize the app.
safetyGraphicsApp()
You can also initialize the app with custom data directly from the R console. The basic workflow is as follows:
safetyGraphicsApp()
using the domainData
to pass the list of data frames.Here is a simple example that starts the app with SDTM data from the safetyData library:
library(safetyData)
sdtm <- list(
dm=safetyData::sdtm_dm,
aes=safetyData::sdtm_ae,
labs=safetyData::sdtm_lb
)
safetyGraphics::safetyGraphicsApp(domainData=sdtm)
This example and other use cases are described in cookbook vignette.
Use the maxFileSize
option to load data sets larger than 5 mb in safetyGraphicsInit
(e.g. safetyGraphicsinit(maxFileSize=100)
). safetyGraphicsApp()
does not have size limits for data files, but note that large data (>100 mb) may cause performance issues.
Several additional vignettes are available for more advanced topics:
The {safetyGraphics} app is maintained by the Interactive Safety Graphics (ISG) subteam of the ASA Biopharm-DIA Safety Working Group. You can learn more about the team and find links to recent presentations and publications at our home page.
We suggest running the app in RStudio with R version 4.0 or higher. The following code installs the {safetyGraphics} package and initializes the app demo:
install.packages('safetyGraphics')
library(safetyGraphics)
safetyGraphicsApp()
Or to use the initialization workflow:
install.packages('safetyGraphics')
library(safetyGraphics)
safetyGraphicsInit()
Or you can install the most recent development version of {safetyGraphics} and the companion package {safetyCharts} directly from GitHub:
install.packages("devtools")
library(devtools)
devtools::install_github("safetyGraphics/safetyGraphics")
library(safetyGraphics)
devtools::install_github("safetyGraphics/safetyCharts")
library(safetyCharts)
safetyGraphicsApp() #or safetyGraphicsInit()
Since the safetyGraphics
framework supports adding custom charts (that may have custom settings), there are no universal data requirements for the app. However, the charts included by default version of the app are built to share requirements whenever possible. These requirements are captured in an included metadata file called safetyGraphics::meta
.
The most basic requirements for the 3 default domains are:
labs
) domain - Expects one record per person per visit per lab measurement with columns for: Participant ID, lab result, lab name, lower limit of normal, upper limit of normal, study day, study visit (numeric), study visit (character). See safetyGraphics::meta %>% filter(domain=="labs")
for additional details and optional columns used by some charts.aes
) domain - Expects one record per adverse event with columns for: Participant ID, AE Sequence, Study Day, AE Start day, AE end day, AE preferred term and AE body system. See safetyGraphics::meta %>% filter(domain=="aes")
dm
) domain - Expects one record per person with columns for: Participant ID, Sex, Race, Age and Study Treatment (optional) . See safetyGraphics::meta %>% filter(domain=="dm")
for additional details.


Number of messages currently in the buffer: 0
This example demonstrates the use of the logging system and a variety of logging appenders. When the "Log" button is pressed, an error, a warning, and an info message are logged. A console appender logs these messages to your browser console, a DOM appender logs the messages (WARN and higher) to a DIV element above, and a buffering appender collects all logged messages in an array that can be accessed at a later time. The number of messages that are currently in the buffer is displayed below the log button. Clicking "Clear" only clears the DOM appender's output window. To demonstrate logging of objects on older browsers this example includes a copy of json2.js, Douglas Crockford's simple polyfill for ECMAScript 5 JSON formatting.


Discrete-time state equation
Discrete-time solution appears to be all about dynamic programming
and a chance for me to remember that I’m out of practice writing recursive functions. It’s just that in thinking about the problem, you start from the end, with the trivial subcase, and keep adding the layers. But the recursive function kinda starts at the beginning, and that trivial case is the exit condition. R doesn’t seem very efficient with these recursive functions, so this might become a C sub-routine eventually.
Problem setup
We consider some discrete-time state equation for (fish stock, \(x\)) under some control parameter (harvest, \(h\)):
\[ x_{t+1} = f(x_t, h) \]
We again have utility function, \(\pi(h)\) for diminishing returns on fish harvest. Discrete time means we maximize over the discrete discounting rate \(\beta\) and sum over intervals:
\[ \max_{h_t} \sum_{t=0}^T \beta^t \pi(h) \]
subject to the state equation above and some boundary conditions \(x_0 = X_0, \qquad x_T = X_T\). First-order conditions are:
\[ U'(h_t) = \beta U'(h_{t+1}) F'(x_{t+1} ) \forall t \] and solution will use a dynamic programming approach of the following recursion
\[ V(x_t) = \max_h \left( U(h) + \beta V(x_{t+1} ) \right) \]
Which substituting in the state equation gives us:
\[ V(x_t) = \max_h \left( U(h) + \beta V( F(x_t)) \right) \] Let’s assume a discrete Ricker-style model: \[ x_{t+1} = f(x,h) = x \exp \left( \alpha \left(1-\frac{x}{K}\right) \left( \frac{x-C}{K} \right) \right) - h x \]
The Ricker-style formulation in analogy to our continuous time problem, Alan suggests we actually consider the case by Myers et al., (Myers et. al. 1995)
\[N_{t+1} = \frac{r N_t^{\alpha}}{1+\frac{N_t^{\alpha}}{K} } \]
Trivial case of no cost at boundary, harvests everything.
A simpler case
Fish remaining are whatever wasn’t harvested yet: \[ x_{t+1} = x_t - h_t \]
Cost/profit of harvesting: Profit \(p(t)\) per fish (possibly varies with year), but cost gets harder \(c h^2\), \(c << p(t)\), \[ U(h) = p h - c h^2 \]
The algorithm can be specified by recursion,
phi <- function(x) 300
J <- function(t,x){
if(t < T)
out <- U(t,x, h_star(t,x)) + beta*J(t+1, f(t,x, h_star(t,x)))
else
out <- phi(x)
out
}
h_star <- function(t,x){
func <- function(h) U(t, x, h) + beta*J(t+1, f(t,x,h))
# optimize(f=func, interval=c(0,1))[[1]]
h <- seq(0,1000,length=500)
cost <- sapply(h, func)
i <- which.max(cost)
h[i]
}
See full code.
but this is terribly inefficient.
A simple dynamic programming reference here.
Stochastic Optimal Control
Looks like this needs a dynamic programming approach. A useful reference.
Higher-dimensional state equations
Can these lead to oscillating solutions in as the number of state equations increases? Depends on nature of constraints? Inequalities?
Steps check list
Simple boundary-value problem solution by collocation. Example.
Chebychev polynomial collocation
Harvest vs fishing effort as control variable.
Solution under inequality bounds
Discrete-time state equations
Stochastic Control
Parrotfish 3 dimensional system, Horan 2 dimensional system. See (Mumby et. al. 2007), (Blackwood et. al. 2010) (Horan et. al. 2011)
Uncertainty
References
Myers R, Barrowman N, Hutchings J and Rosenberg A (1995). “Population Dynamics of Exploited Fish Stocks at Low Population Levels.” Science, 269. ISSN 0036-8075, https://dx.doi.org/10.1126/science.269.5227.1106.
Mumby P, Hastings A and Edwards H (2007). “Thresholds And The Resilience of Caribbean Coral Reefs.” Nature, 450. ISSN 0028-0836, https://dx.doi.org/10.1038/nature06252.
Blackwood J, Hastings A and Mumby P (2010). “The Effect of Fishing on Hysteresis in Caribbean Coral Reefs.” Theoretical Ecology, 5. ISSN 1874-1738, https://dx.doi.org/10.1007/s12080-010-0102-0.
Horan R, Fenichel E, Drury K and Lodge D (2011). “Managing Ecological Thresholds in Coupled Environmental-Human Systems.” Proceedings of The National Academy of Sciences, 108. ISSN 0027-8424, https://dx.doi.org/10.1073/pnas.1005431108.


WebAudio Drum Machine
1.2
Tom 1
Tom 2
Tom 3
Hi-Hat
Snare
Kick
Kit
Effect
Tempo
bpm
Swing
Effect Level
Kick Pitch
Snare Pitch
Hi-Hat Pitch
Tom 1 Pitch
Tom 2 Pitch
Tom 3 Pitch
Beat
Demo


It is close to dinner time, and you're hungry. Mommy or Daddy is cooking dinner. You want to make sure that you know dinner is ready as soon as it's ready. Would you walk into the kitchen every 5 minutes and ask Mommy/Daddy if dinner is ready? Or, would you ask Mommy/Daddy to let you know when dinner's ready? That way, you can do other things, like playing or watching a cartoon. When dinner is ready, you'll be told so, and until then, you don't have to think about it, except when you're tummy reminds you.
The Observer pattern is shown in this, because you asked your parent to tell you when something that you care about (dinner) has changed its state (it's ready to be eaten).
public class MealCooker {
private List<Observer> observers = new ArrayList<Observer>();
public void addObserver(Observer observer) {
observers.add(observer);
}
public void cookMeal() {
// prepareIngredients();
// allowToCool();
for (Observer observer : observers) {
observer.notifyMealReady();
}
}
}
public interface Observer {
public void notifyMealReady();
}
public class Child implements Observer {
private MealCooker parent;
public void setMealCooker(MealCooker inCooker) {
parent = inCooker;
}
public void whenHungry() {
parent.addObserver(this);
}
public void notifyMealReady() {
// washUp();
// comeToTable();
// eat()
}
}
let hungryChildren = []
class Parent {
constructor(name) {
this.name = name
}
cookMeal() {
// prepareIngredients()
// allowToCool()
console.log(`${this.name} cooked a meal!`)
hungryChildren.forEach((kid) => kid.notifyMealReady())
hungryChildren = []
}
}
class Child {
constructor(name) {
this.name = name
}
isHungry() {
hungryChildren.push(this)
console.log(`${this.name} is hungry!`)
}
notifyMealReady() {
// washUp()
// comeToTable()
// eat()
console.log(`${this.name} has been fed!`)
}
}
let mommy = new Parent('Mommy')
let daddy = new Parent('Daddy')
let joey = new Child('Joey')
let jimmy = new Child('Jimmy')
let johnny = new Child('Johnny')
joey.isHungry()
// Joey is hungry!
johnny.isHungry()
// Johnny is hungry!
daddy.cookMeal()
// Daddy cooked a meal!
// Joey has been fed!
// Johnny has been fed!
jimmy.isHungry()
// Jimmy is hungry!
mommy.cookMeal()
// Mommy cooked a meal!
// Jimmy has been fed!
The MealCooker
object keeps track of a list of Observer
objects. When it is done performing
its long cookMeal
function, it spins through each Observer
object and notifies it.


To begin, enter your Hydrus API information in the settings page
For help setting up the Hydrus API for Hydrus Web refer to the wiki.


Returns TRUE if the first member is an ancestor of the second member and, optionally, if the first member is equal to the second member.
Syntax
IsAncestor ( member1 , member2 [, INCLUDEMEMBER])
| Parameter | Description |
|---|---|
|
A member specification. |
|
|
A member specification. |
|
INCLUDEMEMBER |
Optional. Use this keyword if you want IsAncestor to return TRUE if the first member is equal to the second member. |
Example
The following query returns all Market dimension members for which the expression IsAncestor([Market].CurrentMember, [Florida]) returns TRUE; in other words, the query returns all ancestors of Florida.
SELECT Filter([Market].Members, IsAncestor([Market].CurrentMember, [Florida])) ON COLUMNS FROM Sample.Basic
| Market | East |
| 105522 | 24161 |
The following query is the same as the above query, except that it uses INCLUDEMEMBER. It returns all Market dimension members for which the expression IsAncestor([Market].CurrentMember, [Florida], INCLUDEMEMBER)) returns TRUE; in other words, the query returns Florida and all ancestors of Florida.
SELECT Filter([Market].Members, IsAncestor([Market].CurrentMember, [Florida], INCLUDEMEMBER)) ON COLUMNS FROM Sample.Basic {[Market], [East], [Florida]}
| Market | East | Florida |
| 105522 | 24161 | 5029 |


Life
LIFE IS BEAUTIFUL!
Life is beautiful, but not always. It has lots of problems you have to face everyday. Don't worry though! All these problems make you strong, it gives you courage to stand alone in future. Life is full of moments of joy, pleasure, success and comfort punctuated by misery, defeat, failures and problems. There is no human being on Earth, strong, powerful, wise or rich, who has not experienced, struggle, suffering or failure. You have to work hard to reach to the highest position. Life is full of paths, you just have to choose the right one. Life is interesting and amazing like the stars up in the skies. With no doubt, Life is beautiful and full of celebrations. However you should always be ready to face adversity and challenges. There are difficult situations in life as well.Be careful!! You might get hurt too hard. Life is sometimes too selfish to think about yourself. Then life is too hard to handle. Falling in love! People tend to fall in love nowadays but i personally think the right time has to come... You might also get hurt in Love. You might be broken-hearted as the people say. Life is the place where people treat everyone differently, racism exists as well as bullying. People tend to say bad stuff behind people's back. There are millions of people using horrible words to call people, People use people everyday. Life is not that easy in my view. Sometimes, all you want to do is sit alone and question yourself with hundred of questions . Am I ugly as the people say? Why don't i have any friends? Why is the world so hard to live in? What do i look like in other peoples eyes? Why don't i have the same colour of the skin as everyone else? :'( :'( How can i make others happy? The questions does not stop. You ask those questions over and over again. When you don't have any answers, you want to scream out loud or cry. Bullying? Racism? What are all these?, I don't understand what people get from making others unhappy and upset.  EVERYTHING IS BEAUTIFUL!  "RUMORS ARE SPREADED BY HATERS, CARRIED BY FOOLS AND ACCEPTED BY IDIOT!" Treat people the way they treat you! Be strong and face these saddo people around the world.  So what? If you're not beautiful, pretty, you have life and thats the most of it. Not everyone gets to live and those who do are sooo lucky! People die, life changes, people come and go but guess what you have to go with it however much it hurts .  I know the feeling of that, I miss my handsome uncle as well but i know we can never meet again. I know he is not here anymore, So what i will still love him the most in my life. People say forget the past, life in present and save the future for tomorrow. I think that is true, but i cannot forget my past, it has all those beautiful moments which mean the world to me. It is the hardest thing but i just try try try and try. Don't give up or lose hope on anything.  Dance as much you want! Take risks.. Trust yourself. Believe in yourself.... Damn care about haters! There is so much to do so stop faffing about. Life is too short to save it for tomorrow. Don't give up and Hope always! Love Forever!! Do what your heart says... DREAM AS MUCH AS YOU LIKE AND MAKE IT TRUE!  From this i learned awful a lot things. I started to enjoy life instead of listening to sad songs and sitting alone. Happiness came into my life but there is sadness as well. Everyday i used to dress in dull clothes now i love colours i used to hate going out of my house but guess what all these sound outside sounds attractive than sad songs. Rock music is what i listen to now, sometimes sad as well All things in life depends on what your mood and the situation.


Defined in generated file: python/ops/gen_nn_ops.py
L2 Loss.
tf.compat.v1.nn.l2_loss
tf.compat.v2.nn.l2_loss
tf.nn.l2_loss( t, name=None )
Computes half the L2 norm of a tensor without the sqrt
:
output = sum(t ** 2) / 2
t
: A Tensor
. Must be one of the following types: half
, bfloat16
, float32
, float64
.
Typically 2-D, but may have any dimensions.name
: A name for the operation (optional).A Tensor
. Has the same type as t
.


How many different ways can you type your address? City agencies in Lexington sometimes disagree on the correct way to reference a single address or taxlot. (And sometimes someone entering data just makes a typo. Oops!) That makes it really hard to get a complete picture of a single property.
Streetscope allows different databases to know they're talking about the same address, even if it's not spelled exactly the same. It's mostly for computers, but people can use it too! It was built based on data provided by the Fayette County PVA. Learn more
©2014 Code for America


| Samples Sorted by Development Platforms For a complete list, please browse the ADSI samples directory.
Getting Started Samples Getting started samples can be found here. The source code can be found in \\samples\start.
Application Samples Some samples listed below are actually working applications.
Samples Sorted by Providers (or Technologies)
Samples that Highlight ADSI Interfaces, APIs, and Technologies Technologies
Interfaces
APIs
Samples can also be found in the samples directory and on the Active Directory page.
Visual C++ source code: \\samples\General\ADsCmd This C++ sample code demonstrates how to enumerate and filter by getting a list of attributes from the schema and displaying attributes on an object. Usage: adscmd [list|dump] <ADsPath> Examples: adscmd dump WinNT://MYDOMAIN adscmd list LDAP://dc01/CN=Administrators, OU=Admin, DC=MyDomain, DC=Com
Visual C++ source Code: \\samples\General\ADQI ADQI allows you to find all of the interfaces related to ADSI that are supported for a given ADsPath. You can then use the interfaces to further manipulate the object.
Visual C++ source code: \\samples\General\DsSrch This code contains a command line executable which highlights the usage of IDirectorySearch, complete with the Preference option. Usage: dssrch /b <baseObject> /f <search_filter> [/f
<attrlist>] [/p <preference>=value>] [/u <UserName>
<Password>] [/t<flagName>=<value> baseObject = ADsPath of the base of the search
Asynchronous, AttrTypesOnly, DerefAliases, SizeLimit,
TimeLimit,
SecureAuth or UseEncrypt Value Yes/no for a Boolean and the respective integer for
integers. Either "Base", "OneLevel", or "Subtree" dssrch /b NDS://ntmarst/ms /f "(object Class=*)" /a
"ADsPath, name, description" /p searchScope=onelevel /p searchscope=onelevel
Visual C++ source code: \\samples\General\ADSIDump This application traverses a tree, visiting each object in the tree and getting the attributes on each object. All actions are recorded in a log file. Written using C++/ATL. Usage: ADSIDUMP ADsPath LogFile ADSIDUMP LDAP://OU=Dev,DC=Platforms,DC=Microsoft,DC=COM ntdev.log
Visual C++ source code: \\samples\General\ADOQuery This code demonstrates an ADO query against an LDAP provider. Only ADSI providers that support IDirectorySearch and OLE DB can work with ADO. ADSI ships two providers that are aware of OLE DB: LDAP and NDS.
Active Directory Windows Address Book ASP source code: \\samples\ASP\WAB The Windows address book searches for and displays users, groups, and contacts in Active Directory. It showcases an Active Directory search based on ambiguous name resolution (ANR). It also demonstrates an ADSI search using ADO against Active Directory. To run the samples, first you must move the global.asa (or append the existing global.asa) to the default web site directory.
Visual C++ source code:
\\samples\activedir\addgroup\VC This sample adds a Windows 2000 group under a container. The group can either be a security or a distribution list type. Other options for the group type are universal, global and domain local groups.
Visual C++ source code:
\\samples\activedir\attributes\VC This sample demonstrates how to find attributes by indexed value, GC replication, and type.
Active Directory: Bind To Parent Visual C++ source code:
\\samples\activedir\bindtoparent\VC This program finds a user and displays the user's container.
Visual Basic source code: \\samples\activedir\computer This sample creates a machine account under the Active Directory computer container. You may create a machine under an organizational unit. This program requires you to specify a machine account. By default (using the GPO-Group Policy Objects) in the Windows 2000 domain, every authenticated user is able to create a machine account.
Visual C++ source code:
\\samples\activedir\createuser\VC This sample creates a user under a specified container. It requires that you specify the user's relative distinguished name and downlevel name.
Visual C++ source code:
\\samples\activedir\credentials\VC This sample allows you to log on to the current domain with alternate credentials.
Active Directory: Find All Users in Global Catalog Visual C++ source code:
\\samples\activedir\gcallusers\VC
Active Directory: Get Domain Mode Visual C++ source code:
\\samples\activedir\getdomainmode This sample checks whether Active Directory is in mixed or native mode.
Visual C++ source code:
\\samples\ActiveDir\GetSchemaInfo This program queries the schema for the specified classes or attributes.
Active Directory: GUID Binding Visual C++ source code:
\\samples\ActiveDir\GUIDBinding Active Directory allows you to bind object by its GUID. This sample demonstrates binding to a GUID.
Active Directory: Well Known GUID Visual C++ source code:
\\samples\ActiveDir\WKGUID Active Directory has the concept of well known GUIDs. This is a well known place, normally a container, which is associated to a well known GUID.
Active Directory: Property List Visual C++ source code:
\\samples\ActiveDir\PropertyList This code demonstrates the use of PropertyList in Active Directory.
Visual C++ source code:
\\samples\ActiveDir\QueryUsers This sample finds a user in the current domain.
Visual C++ source code:
\\samples\ActiveDir\RootDSE This sample gets the RootDSE on a server and prints out the entries.
C++ Source code: \\samples\Extension\Tutorial\Step2 This is a step-by-step tutorial on how to create an ADSI extension. The first step is to create an early binding extension without implementing IADsExtension. The second step implements the IADsExtension to support late binding. This extension will extend a 'user' object on the LDAP provider. You can easily change it to other provider by modifying the DLL Registration code. You can use this source code as a code base for your extension. This sample code accompanies with the client code written in VB.
Visual C++ source code: \\samples\ActiveDir\User This program finds a user in the current Window 2000 domain, and displays its IADsUser properties.
Active Directory Other WellKnown Object Visual C++ source code:
\\samples\ActiveDir\OtherWKO\VC This program does the following:
Visual C++ source code:
\\samples\ActiveDir\SID\VC This program finds a user in the current Windows 2000
domain
Visual Basic source code: \\samples\WinNT\Binding\VB This code snippet illustrates how to bind to a domain, remote computer, or a user in a domain. It also shows how to bind an object with alternate credentials.
Visual Basic source code: \\samples\WinNT\Group\VB This sample is a walkthrough for managing a group life cycle, from the creation and enumeration of the group (both local and global), to the addition and removal of users and groups to the group.
Visual Basic source code: \\samples\WinNT\Computer\VB This sample demonstrates how to bind to a computer object, enumerate services, sessions, and resources, and create a file share.
Visual Basic source code: \\samples\WinNT\User\VB This sample demonstrates how to create a user, set a user's properties, and rename and delete a user.
Visual Basic source code: \\samples\WinNT\UsrMgr This sample is a WinNT User Management Application.
Visual Basic source code:
\\samples\WinNT\ChangePwd
Visual Basic source code: \\samples\WinNT\PrintQueue (short version), \\samples\WinNT\PrintQueue\App (long version) This code shows print queues for a given computer.
Visual Basic source code: \\samples\WinNT\ResetPwd This sample resets the user's password. The caller must have administrative privileges.
Perl source code: \\samples\Perl
Perl: Creating and Deleting an Object Perl source code: \\samples\Perl
Perl: Retrieving and Modifying Properties Perl source code: \\samples\Perl
C++ source code: \\samples\Provider The following is the installation procedure for the Active DS Sample Provider:
You will need to run install.bat to install the Sample Provider and set up the sample directory service in the registry. To view the sample provider:
|
|


2017-11-12 Steemit and Minnow Support Project Orientation by @aggroed live in 8 hours on mspwaves steemit
2017-11-11 Announcement: Steemit Growth Forum // Saturday November 18th 11AM NYC time (1600 UTC) held Virtually on MSPWaves Radio within the PALnet Discord channel. steemitgrowthforum
2017-11-09 Yesterday I said that SEGWIT2X getting cancelled would be good for steem.... let's see what happened. segwit2x
2017-09-24 @aggroed interviews Steemit's hightech wizard @gtg aka @gandalf about the future and stability of the Steemit Blockchain. steemit
2017-08-23 STEEMIT TIPS: Bake a pie for your neighbors! (@crimsonclad heavy metal show is Thursday on mspwaves.com) steemittips
2017-08-14 New Steemit Feature- Cover art in addition to portrait art. Steemgig opportunity inside too! coverart
2017-08-14 MSP Delegation Contest & First act with Steem generated from my top 20 Witness- I just delegated 1,000 SP to the Minnow Support Project delegation
2017-07-11 Boston STEEMIT Meetup hosted by @aggroed and @justtryme90 6:30 Knight Moves Brookline Tuesday August 1st 6:30pm meetup
2017-06-24 STEEMIT TIPS: Dolphin 101- You're reading comments wrong! (about to cross 2400 followers!) howto


This is San Francisco’s main Food Stamps office. People call it twelve-thirty-five, as in 1235 Mission Street. The first time I went was on Thursday, February 7, 2013
This is San Francisco’s main Food Stamps office. People call it twelve-thirty-five, as in 1235 Mission Street. The first time I went was on Thursday, February 7, 2013


Story
After seeing all of the problems with conventional social networks, and recognizing the potential in creating a completely new platform, we decided to do just that. The concept was to create a completely open platform that stresses meeting and connecting with new people, and stressing in-person interactions. The entire platform is location-based, meaning users can see in real-time if their friends are nearby and can then meet up with them. Nearby events, activities, shops, businesses, and attractions are shown in a personalized user-feed.


Weekly musing #12 - Gearing up for release
Final touches on ABC
Bitcoin ABC is a modified version of Bitcoin Core with a user-configurable maximum blocksize, i.e. an Adjustable Blocksize Cap (hence "ABC").
It is based on Core 0.14.1, and implements the UAHF specification. The source code and development can be found at https://reviews.bitcoinabc.org .
We've been very busy getting this to near release so far. There are a few minor finishing touches remaining on the code, but it's almost feature complete.
In a follow-up post I'd like to do a walk-through post of the changes at some stage, but this requires reformatting the baseline (the Core 0.14.1 commit where ABC branched off) so that we can cleanly compare what was built on top.
The difference looks bigger than it really is in terms of code changes, because nearly the entire codebase has been put through clang-format to clean up the source code.
This obscures the significant functional changes to an extent.
A git diff --stat
shows 508 changed files so far - that includes files that were newly added (e.g. ABC tests) and files that were removed (e.g. those related purely to SegWit).
Re-formatting the baseline 0.14.1 with the same style rules to get a clean comparison requires some touch-ups. This is because some sections in ABC were protected from clang-format's modifications. There are also manual formatting actions to improve layouting of comments, although these are easy to ignore. Overall, there were 337 commits since development on top of Core commit 964a185cc began.
It could be helpful to mark the functional changes related to UAHF with their respective requirements.
Test framework issues
We have identified what is likely an issue with the Python test framework's handling of peer messages.
During tests with large blocks, the test framework's mininode may run into buffering problems on the received data, which often leads to test failure. This only seems to happen towards the end of one big-block test at the moment, and there is a workaround to reduces the chance of this happening.
However, it is very likely that we need to re-work the test framework's message buffering and processing if we want to be able to do very-large-block tests.
Perhaps this played a role in previous tests where we struggled to test > 16MB blocks.
On testnet3, the forked client has produced blocks over 15MB already which were well received by its peers.


404 Page not found - go to homepage
Toggle Navigation
Rewards
Blog
Careers
About Us
We are sorry - this page is not here anymore
Error 404 - Page not found
Go to Homepage


This module is implemented in JabaScript and Vue.js. See Micro Moves blog series for details. It introduced this module in Part 3.