Uses of Interface
org.apache.openjpa.kernel.exps.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
Modifier and TypeInterfaceDescriptioninterface
A Value represents any non-operator in a query filter, including constants, variables, and object fields.Modifier and TypeClassDescriptionclass
Absolute value.class
A list of arguments to a multi-argument function.class
Coalesce expression.class
A collection-valued input parameter in an in-expression.class
Concatenate one string with another.class
A unary operator that executes a datastore specific function with zero or more arguments.class
General case expression.class
Find the index of one string within another.class
A literal value in a filter.class
Returns the Map.Entry<K,V> of a map value.class
Returns the key of a map value.class
Value produced by a mathematical operation on two values.class
A literal null value in a filter.class
OPENJPA-1794 An aggregate unary operation that can indicate whether a null value from the data store should be returned as null.class
NullIf expression.class
A parameter in a filter.class
A path represents a traversal into fields of a candidate object.class
Simple case expression.class
Square root.class
Returns the number of characters in a string.class
A subquery.class
Take a substring of a string.class
Lower-cases a string.class
Upper-cases a string.class
Returns the number of characters in a string.class
A type literal value.Modifier 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) Modifier 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) boolean
JDBCExpressionFactory.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) void
CoalesceExpression.setOtherPath
(Value other) void
GeneralCaseExpression.setOtherPath
(Value other) void
NullIfExpression.setOtherPath
(Value other) void
SimpleCaseExpression.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
-
Uses of Value in org.apache.openjpa.kernel
Modifier and TypeMethodDescriptionAbstractStoreQuery.AbstractExecutor.getUpdates
(StoreQuery q) QueryContext.getUpdates()
If this query is a bulk update, return a map of theFieldMetaData
s toConstant
s.StoreQuery.Executor.getUpdates
(StoreQuery q) Return a map ofFieldMetaData
to updateConstant
s, in cases where this query is for a bulk update.Modifier and TypeMethodDescriptionprotected void
ExpressionStoreQuery.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
Modifier and TypeInterfaceDescriptioninterface
Multiple arguments to a function call.interface
Interface for any literal value.interface
A query parameter.interface
A path represents a traversal into fields of a candidate object.interface
Query value representing a subquery.Modifier and TypeClassDescriptionclass
A path represents a traversal into fields of a candidate object.class
An in-memory representation of a coalesce expressionclass
An in-memory representation of a nullif expressionclass
An in-memory representation of a simple case expressionclass
An in-memory representation of aValue
.Modifier and TypeFieldDescriptionstatic final Value[]
QueryExpressions.EMPTY_VALUES
Value[]
QueryExpressions.grouping
Value[]
QueryExpressions.ordering
Value[]
QueryExpressions.projections
Value[]
QueryExpressions.range
Modifier and TypeFieldDescriptionQueryExpressions.updates
Map ofFieldMetaData
,Value
for update statements.Modifier 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 Value
AbstractExpressionBuilder.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 Value
AbstractExpressionBuilder.getVariable
(String id) Returns the variable associated with the schema alias (id).protected Value
AbstractExpressionBuilder.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 acontains
clause, 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 Value
AbstractExpressionBuilder.traversePath
(Path path, String field) Traverse the given field in the given path.protected Value
AbstractExpressionBuilder.traversePath
(Path path, String field, boolean pcOnly, boolean allowNull) Traverse the given field in the given path.protected Value
AbstractExpressionBuilder.traverseXPath
(Path path, String field) Trims the specified specified trimChar from the specified value.Return the type/class of the given value.Modifier and TypeMethodDescriptionReturn a value representing the absolute value of the given one.Return a value representing the two values added together.void
Context.addVariable
(String id, Value var) protected abstract void
AbstractExpressionBuilder.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 void
Record 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 void
AbstractExpressionBuilder.convertTypes
(Value val1, Value val2) Perform conversions to make values compatible.static void
AbstractExpressionBuilder.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.void
void
Enter a value.Return an expression representing the given condition.void
void
Leave 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 boolean
Return 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) boolean
ExpressionFactory.isVerticalType
(Value val) Return true if the Value is a Type expression and the Type uses joined table strategy.boolean
InMemoryExpressionFactory.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.city
Return 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) void
Add an update.protected void
AbstractExpressionBuilder.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 void
AbstractExpressionBuilder.setImplicitType
(Value val, Class<?> expected) Set the implicit type of the given value to the given class.protected void
AbstractExpressionBuilder.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 void
AbstractExpressionBuilder.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) -
Uses of Value in org.apache.openjpa.kernel.jpql
Modifier and TypeMethodDescriptionstatic Value
JPQLExpressionBuilder.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 Value
JPQLExpressionBuilder.getDefinedVariable
(String id) protected Value
JPQLExpressionBuilder.getVariable
(String var) protected Value
JPQLExpressionBuilder.getVariable
(String id, boolean bind) Identification variables in JPQL are case insensitive, so lower-case all variables we are going to bind.Modifier and TypeMethodDescriptionprotected void
JPQLExpressionBuilder.addVariableToContext
(String id, Value var) static void
JPQLExpressionBuilder.checkEmbeddable
(Value val, String currentQuery) static Value
JPQLExpressionBuilder.convertSubstringArguments
(ExpressionFactory factory, Value val1, Value val2, Value val3) Converts JPQL substring() function to OpenJPA ExpressionFactory substring() arguments.void
JPQLExpressionBuilder.setImplicitTypes
(Value val1, Value val2, Class<?> expected) static void
JPQLExpressionBuilder.setImplicitTypes
(Value val1, Value val2, Class<?> expected, Resolver resolver, OrderedMap<Object, Class<?>> parameterTypes, String currentQuery) -
Uses of Value in org.apache.openjpa.persistence.criteria
Modifier and TypeMethodDescriptionValue[]
CriteriaBuilderImpl.eval
(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)