Uses of Interface
org.apache.openjpa.kernel.exps.Value
Packages that use Value
Package
Description
OpenJPA-JDBC Expression Tree
OpenJPA-JDBC SQL Abstraction
OpenJPA Runtime Kernel
OpenJPA Expression Tree
JPA Query Language Support
OpenJPA Criteria Query
-
Uses of Value in org.apache.openjpa.jdbc.kernel.exps
Subinterfaces of Value in org.apache.openjpa.jdbc.kernel.expsModifier and TypeInterfaceDescriptioninterfaceA Value represents any non-operator in a query filter, including constants, variables, and object fields.Classes in org.apache.openjpa.jdbc.kernel.exps that implement ValueModifier and TypeClassDescriptionclassAbsolute value.classA list of arguments to a multi-argument function.classCoalesce expression.classA collection-valued input parameter in an in-expression.classConcatenate one string with another.classA unary operator that executes a datastore specific function with zero or more arguments.classGeneral case expression.classFind the index of one string within another.classA literal value in a filter.classReturns the Map.Entry<K,V> of a map value.classReturns the key of a map value.classValue produced by a mathematical operation on two values.classA literal null value in a filter.classOPENJPA-1794 An aggregate unary operation that can indicate whether a null value from the data store should be returned as null.classNullIf expression.classA parameter in a filter.classA path represents a traversal into fields of a candidate object.classSimple case expression.classSquare root.classReturns the number of characters in a string.classA subquery.classTake a substring of a string.classLower-cases a string.classUpper-cases a string.classReturns the number of characters in a string.classA type literal value.Methods in org.apache.openjpa.jdbc.kernel.exps that return ValueModifier and TypeMethodDescriptionJDBCExpressionFactory.coalesceExpression(Value[] vals) JDBCExpressionFactory.generalCaseExpression(Expression[] exp, Value val) JDBCExpressionFactory.getCurrentDate(Class<T> dateType) JDBCExpressionFactory.getCurrentTime(Class<T> dateType) JDBCExpressionFactory.getCurrentTimestamp(Class<T> dateType) JDBCExpressionFactory.getMapValue(Value map, Value arg) JDBCExpressionFactory.getNull()JDBCExpressionFactory.getObjectId(Value val) CoalesceExpression.getOtherPath()GeneralCaseExpression.getOtherPath()NullIfExpression.getOtherPath()SimpleCaseExpression.getOtherPath()Val.getSelectAs()JDBCExpressionFactory.getThis()Value[]Args.getValues()JDBCExpressionFactory.newAggregate(AggregateListener listener, Value arg) JDBCExpressionFactory.newBoundVariable(String name, Class type) JDBCExpressionFactory.newExtension(FilterListener listener, Value target, Value arg) JDBCExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) JDBCExpressionFactory.newUnboundVariable(String name, Class type) JDBCExpressionFactory.nullIfExpression(Value val1, Value val2) JDBCExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val1) JDBCExpressionFactory.stringLength(Value str) JDBCExpressionFactory.toLowerCase(Value val) JDBCExpressionFactory.toUpperCase(Value val) Methods in org.apache.openjpa.jdbc.kernel.exps with parameters of type ValueModifier and TypeMethodDescriptionJDBCExpressionFactory.asExpression(Value v) JDBCExpressionFactory.bindKeyVariable(Value var, Value val) JDBCExpressionFactory.bindValueVariable(Value var, Value val) JDBCExpressionFactory.bindVariable(Value var, Value val) JDBCExpressionFactory.coalesceExpression(Value[] vals) JDBCExpressionFactory.containsKey(Value map, Value arg) JDBCExpressionFactory.containsValue(Value map, Value arg) JDBCExpressionFactory.generalCaseExpression(Expression[] exp, Value val) JDBCExpressionFactory.getMapValue(Value map, Value arg) JDBCExpressionFactory.getObjectId(Value val) JDBCExpressionFactory.greaterThan(Value v1, Value v2) JDBCExpressionFactory.greaterThanEqual(Value v1, Value v2) JDBCExpressionFactory.isInstance(Value val, Class c) JDBCExpressionFactory.isNotEmpty(Value val) booleanJDBCExpressionFactory.isVerticalType(Value val) JDBCExpressionFactory.lessThanEqual(Value v1, Value v2) JDBCExpressionFactory.newAggregate(AggregateListener listener, Value arg) JDBCExpressionFactory.newArgumentList(Value... vs) JDBCExpressionFactory.newArgumentList(Value v1, Value v2) JDBCExpressionFactory.newExtension(FilterListener listener, Value target, Value arg) JDBCExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) JDBCExpressionFactory.nullIfExpression(Value val1, Value val2) voidCoalesceExpression.setOtherPath(Value other) voidGeneralCaseExpression.setOtherPath(Value other) voidNullIfExpression.setOtherPath(Value other) voidSimpleCaseExpression.setOtherPath(Value other) JDBCExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val1) JDBCExpressionFactory.startsWith(Value v1, Value v2) JDBCExpressionFactory.stringLength(Value str) JDBCExpressionFactory.toLowerCase(Value val) JDBCExpressionFactory.toUpperCase(Value val) JDBCExpressionFactory.whenCondition(Expression exp, Value val) JDBCExpressionFactory.whenScalar(Value val1, Value val2) -
Uses of Value in org.apache.openjpa.jdbc.sql
Methods in org.apache.openjpa.jdbc.sql with parameters of type Value -
Uses of Value in org.apache.openjpa.kernel
Methods in org.apache.openjpa.kernel that return types with arguments of type ValueModifier and TypeMethodDescriptionAbstractStoreQuery.AbstractExecutor.getUpdates(StoreQuery q) QueryContext.getUpdates()If this query is a bulk update, return a map of theFieldMetaDatas toConstants.StoreQuery.Executor.getUpdates(StoreQuery q) Return a map ofFieldMetaDatato updateConstants, in cases where this query is for a bulk update.Methods in org.apache.openjpa.kernel with parameters of type ValueModifier and TypeMethodDescriptionprotected voidExpressionStoreQuery.AbstractExpressionExecutor.assertNotContainer(Value val, StoreQuery q) Throw proper exception if given value is a collection/map/array. -
Uses of Value in org.apache.openjpa.kernel.exps
Subinterfaces of Value in org.apache.openjpa.kernel.expsModifier and TypeInterfaceDescriptioninterfaceMultiple arguments to a function call.interfaceInterface for any literal value.interfaceA query parameter.interfaceA path represents a traversal into fields of a candidate object.interfaceQuery value representing a subquery.Classes in org.apache.openjpa.kernel.exps that implement ValueModifier and TypeClassDescriptionclassA path represents a traversal into fields of a candidate object.classAn in-memory representation of a coalesce expressionclassAn in-memory representation of a nullif expressionclassAn in-memory representation of a simple case expressionclassAn in-memory representation of aValue.Fields in org.apache.openjpa.kernel.exps declared as ValueModifier and TypeFieldDescriptionstatic final Value[]QueryExpressions.EMPTY_VALUESValue[]QueryExpressions.groupingValue[]QueryExpressions.orderingValue[]QueryExpressions.projectionsValue[]QueryExpressions.rangeFields in org.apache.openjpa.kernel.exps with type parameters of type ValueModifier and TypeFieldDescriptionQueryExpressions.updatesMap ofFieldMetaData,Valuefor update statements.Methods in org.apache.openjpa.kernel.exps that return ValueModifier and TypeMethodDescriptionReturn a value representing the absolute value of the given one.Return a value representing the two values added together.Return an expression representing the given condition.Return an expression representing the given condition.Return the average of the given value for all matches.Cast the value to the given class.ExpressionFactory.coalesceExpression(Value[] val) Return a coalesce expressionInMemoryExpressionFactory.coalesceExpression(Value[] val) Return a value representing the concatenation of the given target with the given args.Return the count of the given value for all matches.protected ValueAbstractExpressionBuilder.createVariable(String id, boolean bind) Return distinct values of the given value.Return a value representing the first value divided by the first one.Value[]ExpressionParser.eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Parse the given value clauses.Context.findVariable(String alias) Given an alias find the variable in JPQL contexts.ExpressionFactory.generalCaseExpression(Expression[] exp, Value val) Return a general case expressionInMemoryExpressionFactory.generalCaseExpression(Expression[] exp, Value val) ExpressionFactory.getCurrentDate(Class<T> dateType) Return a value representing the current date.InMemoryExpressionFactory.getCurrentDate(Class<T> dateType) ExpressionFactory.getCurrentTime(Class<T> timeType) Return a value representing the current time.InMemoryExpressionFactory.getCurrentTime(Class<T> dateType) ExpressionFactory.getCurrentTimestamp(Class<T> timestampType) Return a value representing the current timestamp.InMemoryExpressionFactory.getCurrentTimestamp(Class<T> dateType) Path navigation thru map keyExpressionFactory.getMapValue(Value map, Value arg) Return an expression representing the given condition.InMemoryExpressionFactory.getMapValue(Value map, Value arg) ExpressionFactory.getNull()Return a value representing null.InMemoryExpressionFactory.getNull()ExpressionFactory.getObjectId(Value val) Return the object id of the given value.InMemoryExpressionFactory.getObjectId(Value val) Val.getSelectAs()Value.getSelectAs()Return 'this' concrete class if alias is set, otherwise nullExpressionFactory.getThis()Return a value representingthis.InMemoryExpressionFactory.getThis()Value[]Arguments.getValues()Return the values that make up the arguments.protected abstract ValueAbstractExpressionBuilder.getVariable(String id) Returns the variable associated with the schema alias (id).protected ValueAbstractExpressionBuilder.getVariable(String id, boolean bind) Returns a value for the given id.Context.getVariable(String alias) Given an alias and return its associated variable.Return an index/position of the given value within a collection/map.Return a value representing the indexOf (LOCATE in JPQL) function on the given target with the given args.Return the map entry of the given value.Return the map key of the given valueReturn the max of the given value for all matches.Return the max of the given value for all matches.Return a value representing the first value mod'd by the second one.Return a value representing the two values multiplied together.ExpressionFactory.newAggregate(AggregateListener listener, Value args) Return the value of the given function.InMemoryExpressionFactory.newAggregate(AggregateListener listener, Value arg) ExpressionFactory.newBoundVariable(String name, Class type) This method will be called only once per variable bound in acontainsclause, and the returned value will be reused for any further instances of the variable in subexpression of the filter string.InMemoryExpressionFactory.newBoundVariable(String name, Class type) ExpressionFactory.newExtension(FilterListener listener, Value target, Value args) Return the value of the given extension.InMemoryExpressionFactory.newExtension(FilterListener listener, Value target, Value arg) ExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) Return a value representing the given datastore function with the given arguments.InMemoryExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) ExpressionFactory.newUnboundVariable(String name, Class type) Return an unbound variable.InMemoryExpressionFactory.newUnboundVariable(String name, Class type) ExpressionFactory.nullIfExpression(Value val1, Value val2) Return a nullif expressionInMemoryExpressionFactory.nullIfExpression(Value val1, Value val2) ExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val) Return a simple case expressionInMemoryExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val) Return an expression representing the given condition.Return the square root of the given value.ExpressionFactory.stringLength(Value str) Returns the number of characters in the String value.InMemoryExpressionFactory.stringLength(Value str) Return a value representing the substring function on the given target with the given args.Return a value representing the second value subtracted from the first.Return the max of the given value for all matches.ExpressionFactory.toLowerCase(Value str) Return the upper case of the given value.InMemoryExpressionFactory.toLowerCase(Value val) ExpressionFactory.toUpperCase(Value str) Return the upper case of the given value.InMemoryExpressionFactory.toUpperCase(Value val) protected ValueAbstractExpressionBuilder.traversePath(Path path, String field) Traverse the given field in the given path.protected ValueAbstractExpressionBuilder.traversePath(Path path, String field, boolean pcOnly, boolean allowNull) Traverse the given field in the given path.protected ValueAbstractExpressionBuilder.traverseXPath(Path path, String field) Trims the specified specified trimChar from the specified value.Return the type/class of the given value.Methods in org.apache.openjpa.kernel.exps that return types with arguments of type ValueMethods in org.apache.openjpa.kernel.exps with parameters of type ValueModifier and TypeMethodDescriptionReturn a value representing the absolute value of the given one.Return a value representing the two values added together.voidContext.addVariable(String id, Value var) protected abstract voidAbstractExpressionBuilder.addVariableToContext(String id, Value var) Register the variable associated with the schema alias (id) to the current JPQL query context.Return an expression representing the given condition.Return an expression representing the given condition.ExpressionFactory.asExpression(Value bool) Return the given value as an expression.InMemoryExpressionFactory.asExpression(Value v) Return the average of the given value for all matches.protected voidRecord that the given variable is bound.ExpressionFactory.bindKeyVariable(Value var, Value map) Bind the given variable to the key set of the given map value.InMemoryExpressionFactory.bindKeyVariable(Value var, Value val) ExpressionFactory.bindValueVariable(Value var, Value map) Bind the given variable to the value set of the given map value.InMemoryExpressionFactory.bindValueVariable(Value var, Value val) ExpressionFactory.bindVariable(Value var, Value coll) Bind the given variable to the given collection value.InMemoryExpressionFactory.bindVariable(Value var, Value val) Cast the value to the given class.ExpressionFactory.coalesceExpression(Value[] val) Return a coalesce expressionInMemoryExpressionFactory.coalesceExpression(Value[] val) Return a value representing the concatenation of the given target with the given args.Return an expression representing the given condition.ExpressionFactory.containsKey(Value map, Value arg) Return an expression representing the given condition.InMemoryExpressionFactory.containsKey(Value v1, Value v2) ExpressionFactory.containsValue(Value map, Value arg) Return an expression representing the given condition.InMemoryExpressionFactory.containsValue(Value v1, Value v2) static voidAbstractExpressionBuilder.convertTypes(Value val1, Value val2) Perform conversions to make values compatible.static voidAbstractExpressionBuilder.convertTypesQuotedNumbers(Value val1, Value val2) Perform conversions to make values compatible.Return the count of the given value for all matches.Return distinct values of the given value.Return a value representing the first value divided by the first one.Return whether the first string ends with the second.voidvoidEnter a value.Return an expression representing the given condition.voidvoidLeave a value.ExpressionFactory.generalCaseExpression(Expression[] exp, Value val) Return a general case expressionInMemoryExpressionFactory.generalCaseExpression(Expression[] exp, Value val) Path navigation thru map keyExpressionFactory.getMapValue(Value map, Value arg) Return an expression representing the given condition.InMemoryExpressionFactory.getMapValue(Value map, Value arg) ExpressionFactory.getObjectId(Value val) Return the object id of the given value.InMemoryExpressionFactory.getObjectId(Value val) ExpressionFactory.greaterThan(Value v1, Value v2) Return an expression representing the given condition.InMemoryExpressionFactory.greaterThan(Value v1, Value v2) ExpressionFactory.greaterThanEqual(Value v1, Value v2) Return an expression representing the given condition.InMemoryExpressionFactory.greaterThanEqual(Value v1, Value v2) Return an index/position of the given value within a collection/map.Return a value representing the indexOf (LOCATE in JPQL) function on the given target with the given args.protected booleanReturn true if the given variable has been bound.Return an expression representing the given condition.ExpressionFactory.isInstance(Value obj, Class c) Return whether the first value is an instance of the given class.InMemoryExpressionFactory.isInstance(Value v1, Class c) ExpressionFactory.isNotEmpty(Value target) Return an expression representing the given condition.InMemoryExpressionFactory.isNotEmpty(Value v1) booleanExpressionFactory.isVerticalType(Value val) Return true if the Value is a Type expression and the Type uses joined table strategy.booleanInMemoryExpressionFactory.isVerticalType(Value val) Return an expression representing the given condition.ExpressionFactory.lessThanEqual(Value v1, Value v2) Return an expression representing the given condition.InMemoryExpressionFactory.lessThanEqual(Value v1, Value v2) Return the map entry of the given value.Return the map key of the given valueReturn whether the string matches the matching pattern.Return the max of the given value for all matches.Return the max of the given value for all matches.Return a value representing the first value mod'd by the second one.Return a value representing the two values multiplied together.ExpressionFactory.newAggregate(AggregateListener listener, Value args) Return the value of the given function.InMemoryExpressionFactory.newAggregate(AggregateListener listener, Value arg) ExpressionFactory.newArgumentList(Value... values) Return a function argument list consisting of the given values, any of which may itself be an argument list.ExpressionFactory.newArgumentList(Value arg1, Value arg2) Return a function argument list consisting of the given values, either of which may itself be an argument list.InMemoryExpressionFactory.newArgumentList(Value... values) InMemoryExpressionFactory.newArgumentList(Value val1, Value val2) ExpressionFactory.newExtension(FilterListener listener, Value target, Value args) Return the value of the given extension.InMemoryExpressionFactory.newExtension(FilterListener listener, Value target, Value arg) ExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) Return a value representing the given datastore function with the given arguments.InMemoryExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args) Return a value representing a path which will consist of a chain of 1 or more field names starting in the namespace of the given value.
Example:var.address.cityReturn an expression representing the given condition.Return whether the string does not match the given pattern.ExpressionFactory.nullIfExpression(Value val1, Value val2) Return a nullif expressionInMemoryExpressionFactory.nullIfExpression(Value val1, Value val2) voidAdd an update.protected voidAbstractExpressionBuilder.setImplicitContainsTypes(Value val1, Value val2, int op) Set the implicit types of the given values based on the fact that the first is supposed to contain the second.protected static voidAbstractExpressionBuilder.setImplicitType(Value val, Class<?> expected) Set the implicit type of the given value to the given class.protected voidAbstractExpressionBuilder.setImplicitTypes(Value val1, Value val2, Class<?> expected) Set the implicit types of the given values based on the fact that they're used together, and based on the operator type.protected static voidAbstractExpressionBuilder.setImplicitTypes(Value val1, Value val2, Class<?> expected, Resolver resolver) ExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val) Return a simple case expressionInMemoryExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val) Return an expression representing the given condition.Return the square root of the given value.ExpressionFactory.startsWith(Value str1, Value str2) Return whether the first string starts with the second.InMemoryExpressionFactory.startsWith(Value v1, Value v2) ExpressionFactory.stringLength(Value str) Returns the number of characters in the String value.InMemoryExpressionFactory.stringLength(Value str) Return a value representing the substring function on the given target with the given args.Return a value representing the second value subtracted from the first.Return the max of the given value for all matches.ExpressionFactory.toLowerCase(Value str) Return the upper case of the given value.InMemoryExpressionFactory.toLowerCase(Value val) ExpressionFactory.toUpperCase(Value str) Return the upper case of the given value.InMemoryExpressionFactory.toUpperCase(Value val) Trims the specified specified trimChar from the specified value.Return the type/class of the given value.ExpressionFactory.whenCondition(Expression exp, Value val) Return a when condidional clauseInMemoryExpressionFactory.whenCondition(Expression exp, Value val) ExpressionFactory.whenScalar(Value val1, Value val2) Return a when scalar_expression clauseInMemoryExpressionFactory.whenScalar(Value val1, Value val2) Method parameters in org.apache.openjpa.kernel.exps with type arguments of type Value -
Uses of Value in org.apache.openjpa.kernel.jpql
Methods in org.apache.openjpa.kernel.jpql that return ValueModifier and TypeMethodDescriptionstatic ValueJPQLExpressionBuilder.convertSubstringArguments(ExpressionFactory factory, Value val1, Value val2, Value val3) Converts JPQL substring() function to OpenJPA ExpressionFactory substring() arguments.Value[]JPQLParser.eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) protected ValueJPQLExpressionBuilder.getDefinedVariable(String id) protected ValueJPQLExpressionBuilder.getVariable(String var) protected ValueJPQLExpressionBuilder.getVariable(String id, boolean bind) Identification variables in JPQL are case insensitive, so lower-case all variables we are going to bind.Methods in org.apache.openjpa.kernel.jpql with parameters of type ValueModifier and TypeMethodDescriptionprotected voidJPQLExpressionBuilder.addVariableToContext(String id, Value var) static voidJPQLExpressionBuilder.checkEmbeddable(Value val, String currentQuery) static ValueJPQLExpressionBuilder.convertSubstringArguments(ExpressionFactory factory, Value val1, Value val2, Value val3) Converts JPQL substring() function to OpenJPA ExpressionFactory substring() arguments.voidJPQLExpressionBuilder.setImplicitTypes(Value val1, Value val2, Class<?> expected) static voidJPQLExpressionBuilder.setImplicitTypes(Value val1, Value val2, Class<?> expected, Resolver resolver, OrderedMap<Object, Class<?>> parameterTypes, String currentQuery) -
Uses of Value in org.apache.openjpa.persistence.criteria
Methods in org.apache.openjpa.persistence.criteria that return ValueModifier and TypeMethodDescriptionValue[]CriteriaBuilderImpl.eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)