Uses of Interface
org.apache.openjpa.kernel.exps.Value
-
Packages that use Value Package Description org.apache.openjpa.jdbc.kernel.exps OpenJPA-JDBC Expression Treeorg.apache.openjpa.jdbc.sql OpenJPA-JDBC SQL Abstractionorg.apache.openjpa.kernel OpenJPA Runtime Kernelorg.apache.openjpa.kernel.exps OpenJPA Expression Treeorg.apache.openjpa.kernel.jpql JPA Query Language Supportorg.apache.openjpa.persistence.criteria OpenJPA Criteria Query -
-
Uses of Value in org.apache.openjpa.jdbc.kernel.exps
Subinterfaces of Value in org.apache.openjpa.jdbc.kernel.exps Modifier and Type Interface Description interface
Val
A 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 Value Modifier and Type Class Description class
Abs
Absolute value.class
Args
A list of arguments to a multi-argument function.class
CoalesceExpression
Coalesce expression.class
CollectionParam
A collection-valued input parameter in an in-expression.class
Concat
Concatenate one string with another.class
DatastoreFunction
A unary operator that executes a datastore specific function with zero or more arguments.class
GeneralCaseExpression
General case expression.class
IndexOf
Find the index of one string within another.class
Lit
A literal value in a filter.class
MapEntry
Returns the Map.Entryof a map value. class
MapKey
Returns the key of a map value.class
Math
Value produced by a mathematical operation on two values.class
Null
A literal null value in a filter.class
NullableAggregateUnaryOp
OPENJPA-1794 An aggregate unary operation that can indicate whether a null value from the data store should be returned as null.class
NullIfExpression
NullIf expression.class
Param
A parameter in a filter.class
PCPath
A path represents a traversal into fields of a candidate object.class
SimpleCaseExpression
Simple case expression.class
Sqrt
Square root.class
StringLength
Returns the number of characters in a string.class
SubQ
A subquery.class
Substring
Take a substring of a string.class
ToLowerCase
Lower-cases a string.class
ToUpperCase
Upper-cases a string.class
Trim
Returns the number of characters in a string.class
TypeLit
A type literal value.Methods in org.apache.openjpa.jdbc.kernel.exps that return Value Modifier and Type Method Description Value
JDBCExpressionFactory. abs(Value val)
Value
JDBCExpressionFactory. add(Value v1, Value v2)
Value
JDBCExpressionFactory. all(Value val)
Value
JDBCExpressionFactory. any(Value val)
Value
JDBCExpressionFactory. avg(Value val)
Value
JDBCExpressionFactory. cast(Value val, java.lang.Class cls)
Value
JDBCExpressionFactory. coalesceExpression(Value[] vals)
Value
JDBCExpressionFactory. concat(Value v1, Value v2)
Value
JDBCExpressionFactory. count(Value val)
Value
JDBCExpressionFactory. distinct(Value val)
Value
JDBCExpressionFactory. divide(Value v1, Value v2)
Value
JDBCExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
<T extends java.util.Date>
ValueJDBCExpressionFactory. getCurrentDate(java.lang.Class<T> dateType)
<T extends java.util.Date>
ValueJDBCExpressionFactory. getCurrentTime(java.lang.Class<T> dateType)
<T extends java.util.Date>
ValueJDBCExpressionFactory. getCurrentTimestamp(java.lang.Class<T> dateType)
Value
JDBCExpressionFactory. getKey(Value val)
Value
JDBCExpressionFactory. getMapValue(Value map, Value arg)
Value
JDBCExpressionFactory. getNull()
Value
JDBCExpressionFactory. getObjectId(Value val)
Value
CoalesceExpression. getOtherPath()
Value
GeneralCaseExpression. getOtherPath()
Value
NullIfExpression. getOtherPath()
Value
SimpleCaseExpression. getOtherPath()
Value
Val. getSelectAs()
Value
JDBCExpressionFactory. getThis()
Value[]
Args. getValues()
Value
JDBCExpressionFactory. index(Value val)
Value
JDBCExpressionFactory. indexOf(Value v1, Value v2)
Value
JDBCExpressionFactory. mapEntry(Value key, Value val)
Value
JDBCExpressionFactory. mapKey(Value key, Value val)
Value
JDBCExpressionFactory. max(Value val)
Value
JDBCExpressionFactory. min(Value val)
Value
JDBCExpressionFactory. mod(Value v1, Value v2)
Value
JDBCExpressionFactory. multiply(Value v1, Value v2)
Value
JDBCExpressionFactory. newAggregate(AggregateListener listener, Value arg)
Value
JDBCExpressionFactory. newBoundVariable(java.lang.String name, java.lang.Class type)
Value
JDBCExpressionFactory. newExtension(FilterListener listener, Value target, Value arg)
Value
JDBCExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Value
JDBCExpressionFactory. newUnboundVariable(java.lang.String name, java.lang.Class type)
Value
JDBCExpressionFactory. nullIfExpression(Value val1, Value val2)
Value
JDBCExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val1)
Value
JDBCExpressionFactory. size(Value val)
Value
JDBCExpressionFactory. sqrt(Value val)
Value
JDBCExpressionFactory. stringLength(Value str)
Value
JDBCExpressionFactory. substring(Value v1, Value v2)
Value
JDBCExpressionFactory. subtract(Value v1, Value v2)
Value
JDBCExpressionFactory. sum(Value val)
Value
JDBCExpressionFactory. toLowerCase(Value val)
Value
JDBCExpressionFactory. toUpperCase(Value val)
Value
JDBCExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Value
JDBCExpressionFactory. type(Value val)
Methods in org.apache.openjpa.jdbc.kernel.exps with parameters of type Value Modifier and Type Method Description Value
JDBCExpressionFactory. abs(Value val)
Value
JDBCExpressionFactory. add(Value v1, Value v2)
Value
JDBCExpressionFactory. all(Value val)
Value
JDBCExpressionFactory. any(Value val)
Expression
JDBCExpressionFactory. asExpression(Value v)
Value
JDBCExpressionFactory. avg(Value val)
Expression
JDBCExpressionFactory. bindKeyVariable(Value var, Value val)
Expression
JDBCExpressionFactory. bindValueVariable(Value var, Value val)
Expression
JDBCExpressionFactory. bindVariable(Value var, Value val)
Value
JDBCExpressionFactory. cast(Value val, java.lang.Class cls)
Value
JDBCExpressionFactory. coalesceExpression(Value[] vals)
Value
JDBCExpressionFactory. concat(Value v1, Value v2)
Expression
JDBCExpressionFactory. contains(Value map, Value arg)
Expression
JDBCExpressionFactory. containsKey(Value map, Value arg)
Expression
JDBCExpressionFactory. containsValue(Value map, Value arg)
Value
JDBCExpressionFactory. count(Value val)
Value
JDBCExpressionFactory. distinct(Value val)
Value
JDBCExpressionFactory. divide(Value v1, Value v2)
Expression
JDBCExpressionFactory. endsWith(Value v1, Value v2)
Expression
JDBCExpressionFactory. equal(Value v1, Value v2)
Value
JDBCExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
Value
JDBCExpressionFactory. getKey(Value val)
Value
JDBCExpressionFactory. getMapValue(Value map, Value arg)
Value
JDBCExpressionFactory. getObjectId(Value val)
Expression
JDBCExpressionFactory. greaterThan(Value v1, Value v2)
Expression
JDBCExpressionFactory. greaterThanEqual(Value v1, Value v2)
Value
JDBCExpressionFactory. index(Value val)
Value
JDBCExpressionFactory. indexOf(Value v1, Value v2)
Expression
JDBCExpressionFactory. isEmpty(Value val)
Expression
JDBCExpressionFactory. isInstance(Value val, java.lang.Class c)
Expression
JDBCExpressionFactory. isNotEmpty(Value val)
boolean
JDBCExpressionFactory. isVerticalType(Value val)
Expression
JDBCExpressionFactory. lessThan(Value v1, Value v2)
Expression
JDBCExpressionFactory. lessThanEqual(Value v1, Value v2)
Value
JDBCExpressionFactory. mapEntry(Value key, Value val)
Value
JDBCExpressionFactory. mapKey(Value key, Value val)
Expression
JDBCExpressionFactory. matches(Value v1, Value v2, java.lang.String single, java.lang.String multi, java.lang.String esc)
Value
JDBCExpressionFactory. max(Value val)
Value
JDBCExpressionFactory. min(Value val)
Value
JDBCExpressionFactory. mod(Value v1, Value v2)
Value
JDBCExpressionFactory. multiply(Value v1, Value v2)
Value
JDBCExpressionFactory. newAggregate(AggregateListener listener, Value arg)
Arguments
JDBCExpressionFactory. newArgumentList(Value... vs)
Arguments
JDBCExpressionFactory. newArgumentList(Value v1, Value v2)
Value
JDBCExpressionFactory. newExtension(FilterListener listener, Value target, Value arg)
Value
JDBCExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Path
JDBCExpressionFactory. newPath(Value val)
Expression
JDBCExpressionFactory. notEqual(Value v1, Value v2)
Expression
JDBCExpressionFactory. notMatches(Value v1, Value v2, java.lang.String single, java.lang.String multi, java.lang.String esc)
Value
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)
Value
JDBCExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val1)
Value
JDBCExpressionFactory. size(Value val)
Value
JDBCExpressionFactory. sqrt(Value val)
Expression
JDBCExpressionFactory. startsWith(Value v1, Value v2)
Value
JDBCExpressionFactory. stringLength(Value str)
Value
JDBCExpressionFactory. substring(Value v1, Value v2)
Value
JDBCExpressionFactory. subtract(Value v1, Value v2)
Value
JDBCExpressionFactory. sum(Value val)
Value
JDBCExpressionFactory. toLowerCase(Value val)
Value
JDBCExpressionFactory. toUpperCase(Value val)
Value
JDBCExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Value
JDBCExpressionFactory. type(Value val)
Expression
JDBCExpressionFactory. whenCondition(Expression exp, Value val)
Expression
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 Modifier and Type Method Description boolean
LogicalUnion.UnionSelect. orderBy(SQLBuffer sql, boolean asc, boolean select, Value selAs)
boolean
LogicalUnion.UnionSelect. orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean select, Value selAs)
boolean
Select. orderBy(SQLBuffer sql, boolean asc, boolean sel, Value selAs)
Add an ORDER BY clause.boolean
Select. orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean sel, Value selAs)
Add an ORDER BY clause.boolean
SelectImpl. orderBy(SQLBuffer sql, boolean asc, boolean sel, Value selAs)
boolean
SelectImpl. orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean sel, Value selAs)
-
Uses of Value in org.apache.openjpa.kernel
Methods in org.apache.openjpa.kernel that return types with arguments of type Value Modifier and Type Method Description java.util.Map<FieldMetaData,Value>
AbstractStoreQuery.AbstractExecutor. getUpdates(StoreQuery q)
java.util.Map<FieldMetaData,Value>
QueryContext. getUpdates()
If this query is a bulk update, return a map of theFieldMetaData
s toConstant
s.java.util.Map<FieldMetaData,Value>
StoreQuery.Executor. getUpdates(StoreQuery q)
Return a map ofFieldMetaData
to updateConstant
s, in cases where this query is for a bulk update.Methods in org.apache.openjpa.kernel with parameters of type Value Modifier and Type Method Description protected 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
Subinterfaces of Value in org.apache.openjpa.kernel.exps Modifier and Type Interface Description interface
Arguments
Multiple arguments to a function call.interface
Literal
Interface for any literal value.interface
Parameter
A query parameter.interface
Path
A path represents a traversal into fields of a candidate object.interface
Subquery
Query value representing a subquery.Classes in org.apache.openjpa.kernel.exps that implement Value Modifier and Type Class Description class
CandidatePath
A path represents a traversal into fields of a candidate object.class
Coalesce
An in-memory representation of a coalesce expressionclass
NullIf
An in-memory representation of a nullif expressionclass
SimpleCase
An in-memory representation of a simple case expressionclass
Val
An in-memory representation of aValue
.Fields in org.apache.openjpa.kernel.exps declared as Value Modifier and Type Field Description static Value[]
QueryExpressions. EMPTY_VALUES
Value[]
QueryExpressions. grouping
Value[]
QueryExpressions. ordering
Value[]
QueryExpressions. projections
Value[]
QueryExpressions. range
Fields in org.apache.openjpa.kernel.exps with type parameters of type Value Modifier and Type Field Description java.util.Map<Path,Value>
QueryExpressions. updates
Map ofFieldMetaData
,Value
for update statements.Methods in org.apache.openjpa.kernel.exps that return Value Modifier and Type Method Description Value
ExpressionFactory. abs(Value num)
Return a value representing the absolute value of the given one.Value
InMemoryExpressionFactory. abs(Value val)
Value
ExpressionFactory. add(Value num1, Value num2)
Return a value representing the two values added together.Value
InMemoryExpressionFactory. add(Value val1, Value val2)
Value
ExpressionFactory. all(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. all(Value val)
Value
ExpressionFactory. any(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. any(Value val)
Value
ExpressionFactory. avg(Value num)
Return the average of the given value for all matches.Value
InMemoryExpressionFactory. avg(Value val)
Value
ExpressionFactory. cast(Value obj, java.lang.Class cls)
Cast the value to the given class.Value
InMemoryExpressionFactory. cast(Value val, java.lang.Class cls)
Value
ExpressionFactory. coalesceExpression(Value[] val)
Return a coalesce expressionValue
InMemoryExpressionFactory. coalesceExpression(Value[] val)
Value
ExpressionFactory. concat(Value str, Value args)
Return a value representing the concatenation of the given target with the given args.Value
InMemoryExpressionFactory. concat(Value val1, Value val2)
Value
ExpressionFactory. count(Value obj)
Return the count of the given value for all matches.Value
InMemoryExpressionFactory. count(Value val)
protected Value
AbstractExpressionBuilder. createVariable(java.lang.String id, boolean bind)
Value
ExpressionFactory. distinct(Value obj)
Return distinct values of the given value.Value
InMemoryExpressionFactory. distinct(Value val)
Value
ExpressionFactory. divide(Value num1, Value num2)
Return a value representing the first value divided by the first one.Value
InMemoryExpressionFactory. divide(Value val1, Value val2)
Value[]
ExpressionParser. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given value clauses.Value
Context. findVariable(java.lang.String alias)
Given an alias find the variable in JPQL contexts.Value
ExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
Return a general case expressionValue
InMemoryExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
<T extends java.util.Date>
ValueExpressionFactory. getCurrentDate(java.lang.Class<T> dateType)
Return a value representing the current date.<T extends java.util.Date>
ValueInMemoryExpressionFactory. getCurrentDate(java.lang.Class<T> dateType)
<T extends java.util.Date>
ValueExpressionFactory. getCurrentTime(java.lang.Class<T> timeType)
Return a value representing the current time.<T extends java.util.Date>
ValueInMemoryExpressionFactory. getCurrentTime(java.lang.Class<T> dateType)
<T extends java.util.Date>
ValueExpressionFactory. getCurrentTimestamp(java.lang.Class<T> timestampType)
Return a value representing the current timestamp.<T extends java.util.Date>
ValueInMemoryExpressionFactory. getCurrentTimestamp(java.lang.Class<T> dateType)
Value
ExpressionFactory. getKey(Value val)
Path navigation thru map keyValue
InMemoryExpressionFactory. getKey(Value val)
Value
ExpressionFactory. getMapValue(Value map, Value arg)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. getMapValue(Value map, Value arg)
Value
ExpressionFactory. getNull()
Return a value representing null.Value
InMemoryExpressionFactory. getNull()
Value
ExpressionFactory. getObjectId(Value val)
Return the object id of the given value.Value
InMemoryExpressionFactory. getObjectId(Value val)
Value
Val. getSelectAs()
Value
Value. getSelectAs()
Return 'this' concrete class if alias is set, otherwise nullValue
ExpressionFactory. getThis()
Return a value representingthis
.Value
InMemoryExpressionFactory. getThis()
Value[]
Arguments. getValues()
Return the values that make up the arguments.protected abstract Value
AbstractExpressionBuilder. getVariable(java.lang.String id)
Returns the variable associated with the schema alias (id).protected Value
AbstractExpressionBuilder. getVariable(java.lang.String id, boolean bind)
Returns a value for the given id.Value
Context. getVariable(java.lang.String alias)
Given an alias and return its associated variable.Value
ExpressionFactory. index(Value target)
Return an index/position of the given value within a collection/map.Value
InMemoryExpressionFactory. index(Value val)
Value
ExpressionFactory. indexOf(Value str, Value args)
Return a value representing the indexOf (LOCATE in JPQL) function on the given target with the given args.Value
InMemoryExpressionFactory. indexOf(Value val1, Value val2)
Value
ExpressionFactory. mapEntry(Value key, Value val)
Return the map entry of the given value.Value
InMemoryExpressionFactory. mapEntry(Value key, Value val)
Value
ExpressionFactory. mapKey(Value key, Value val)
Return the map key of the given valueValue
InMemoryExpressionFactory. mapKey(Value key, Value val)
Value
ExpressionFactory. max(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. max(Value val)
Value
ExpressionFactory. min(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. min(Value val)
Value
ExpressionFactory. mod(Value num1, Value num2)
Return a value representing the first value mod'd by the second one.Value
InMemoryExpressionFactory. mod(Value val1, Value val2)
Value
ExpressionFactory. multiply(Value num1, Value num2)
Return a value representing the two values multiplied together.Value
InMemoryExpressionFactory. multiply(Value val1, Value val2)
Value
ExpressionFactory. newAggregate(AggregateListener listener, Value args)
Return the value of the given function.Value
InMemoryExpressionFactory. newAggregate(AggregateListener listener, Value arg)
Value
ExpressionFactory. newBoundVariable(java.lang.String name, java.lang.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.Value
InMemoryExpressionFactory. newBoundVariable(java.lang.String name, java.lang.Class type)
Value
ExpressionFactory. newExtension(FilterListener listener, Value target, Value args)
Return the value of the given extension.Value
InMemoryExpressionFactory. newExtension(FilterListener listener, Value target, Value arg)
Value
ExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Return a value representing the given datastore function with the given arguments.Value
InMemoryExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Value
ExpressionFactory. newUnboundVariable(java.lang.String name, java.lang.Class type)
Return an unbound variable.Value
InMemoryExpressionFactory. newUnboundVariable(java.lang.String name, java.lang.Class type)
Value
ExpressionFactory. nullIfExpression(Value val1, Value val2)
Return a nullif expressionValue
InMemoryExpressionFactory. nullIfExpression(Value val1, Value val2)
Value
ExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
Return a simple case expressionValue
InMemoryExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
Value
ExpressionFactory. size(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. size(Value val)
Value
ExpressionFactory. sqrt(Value num)
Return the square root of the given value.Value
InMemoryExpressionFactory. sqrt(Value val)
Value
ExpressionFactory. stringLength(Value str)
Returns the number of characters in the String value.Value
InMemoryExpressionFactory. stringLength(Value str)
Value
ExpressionFactory. substring(Value str, Value args)
Return a value representing the substring function on the given target with the given args.Value
InMemoryExpressionFactory. substring(Value val1, Value val2)
Value
ExpressionFactory. subtract(Value num1, Value num2)
Return a value representing the second value subtracted from the first.Value
InMemoryExpressionFactory. subtract(Value val1, Value val2)
Value
ExpressionFactory. sum(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. sum(Value val)
Value
ExpressionFactory. toLowerCase(Value str)
Return the upper case of the given value.Value
InMemoryExpressionFactory. toLowerCase(Value val)
Value
ExpressionFactory. toUpperCase(Value str)
Return the upper case of the given value.Value
InMemoryExpressionFactory. toUpperCase(Value val)
protected Value
AbstractExpressionBuilder. traversePath(Path path, java.lang.String field)
Traverse the given field in the given path.protected Value
AbstractExpressionBuilder. traversePath(Path path, java.lang.String field, boolean pcOnly, boolean allowNull)
Traverse the given field in the given path.protected Value
AbstractExpressionBuilder. traverseXPath(Path path, java.lang.String field)
Value
ExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Trims the specified specified trimChar from the specified value.Value
InMemoryExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Value
ExpressionFactory. type(Value target)
Return the type/class of the given value.Value
InMemoryExpressionFactory. type(Value val)
Methods in org.apache.openjpa.kernel.exps that return types with arguments of type Value Modifier and Type Method Description java.util.Map<java.lang.String,Value>
Context. getVariables()
Methods in org.apache.openjpa.kernel.exps with parameters of type Value Modifier and Type Method Description Value
ExpressionFactory. abs(Value num)
Return a value representing the absolute value of the given one.Value
InMemoryExpressionFactory. abs(Value val)
Value
ExpressionFactory. add(Value num1, Value num2)
Return a value representing the two values added together.Value
InMemoryExpressionFactory. add(Value val1, Value val2)
void
Context. addVariable(java.lang.String id, Value var)
protected abstract void
AbstractExpressionBuilder. addVariableToContext(java.lang.String id, Value var)
Register the variable associated with the schema alias (id) to the current JPQL query context.Value
ExpressionFactory. all(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. all(Value val)
Value
ExpressionFactory. any(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. any(Value val)
Expression
ExpressionFactory. asExpression(Value bool)
Return the given value as an expression.Expression
InMemoryExpressionFactory. asExpression(Value v)
Value
ExpressionFactory. avg(Value num)
Return the average of the given value for all matches.Value
InMemoryExpressionFactory. avg(Value val)
protected void
AbstractExpressionBuilder. bind(Value var)
Record that the given variable is bound.Expression
ExpressionFactory. bindKeyVariable(Value var, Value map)
Bind the given variable to the key set of the given map value.Expression
InMemoryExpressionFactory. bindKeyVariable(Value var, Value val)
Expression
ExpressionFactory. bindValueVariable(Value var, Value map)
Bind the given variable to the value set of the given map value.Expression
InMemoryExpressionFactory. bindValueVariable(Value var, Value val)
Expression
ExpressionFactory. bindVariable(Value var, Value coll)
Bind the given variable to the given collection value.Expression
InMemoryExpressionFactory. bindVariable(Value var, Value val)
Value
ExpressionFactory. cast(Value obj, java.lang.Class cls)
Cast the value to the given class.Value
InMemoryExpressionFactory. cast(Value val, java.lang.Class cls)
Value
ExpressionFactory. coalesceExpression(Value[] val)
Return a coalesce expressionValue
InMemoryExpressionFactory. coalesceExpression(Value[] val)
Value
ExpressionFactory. concat(Value str, Value args)
Return a value representing the concatenation of the given target with the given args.Value
InMemoryExpressionFactory. concat(Value val1, Value val2)
Expression
ExpressionFactory. contains(Value coll, Value arg)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. contains(Value v1, Value v2)
Expression
ExpressionFactory. containsKey(Value map, Value arg)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. containsKey(Value v1, Value v2)
Expression
ExpressionFactory. containsValue(Value map, Value arg)
Return an expression representing the given condition.Expression
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.Value
ExpressionFactory. count(Value obj)
Return the count of the given value for all matches.Value
InMemoryExpressionFactory. count(Value val)
Value
ExpressionFactory. distinct(Value obj)
Return distinct values of the given value.Value
InMemoryExpressionFactory. distinct(Value val)
Value
ExpressionFactory. divide(Value num1, Value num2)
Return a value representing the first value divided by the first one.Value
InMemoryExpressionFactory. divide(Value val1, Value val2)
Expression
ExpressionFactory. endsWith(Value str1, Value str2)
Return whether the first string ends with the second.Expression
InMemoryExpressionFactory. endsWith(Value v1, Value v2)
void
AbstractExpressionVisitor. enter(Value val)
void
ExpressionVisitor. enter(Value val)
Enter a value.Expression
ExpressionFactory. equal(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. equal(Value v1, Value v2)
void
AbstractExpressionVisitor. exit(Value val)
void
ExpressionVisitor. exit(Value val)
Leave a value.Value
ExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
Return a general case expressionValue
InMemoryExpressionFactory. generalCaseExpression(Expression[] exp, Value val)
Value
ExpressionFactory. getKey(Value val)
Path navigation thru map keyValue
InMemoryExpressionFactory. getKey(Value val)
Value
ExpressionFactory. getMapValue(Value map, Value arg)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. getMapValue(Value map, Value arg)
Value
ExpressionFactory. getObjectId(Value val)
Return the object id of the given value.Value
InMemoryExpressionFactory. getObjectId(Value val)
Expression
ExpressionFactory. greaterThan(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. greaterThan(Value v1, Value v2)
Expression
ExpressionFactory. greaterThanEqual(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. greaterThanEqual(Value v1, Value v2)
Value
ExpressionFactory. index(Value target)
Return an index/position of the given value within a collection/map.Value
InMemoryExpressionFactory. index(Value val)
Value
ExpressionFactory. indexOf(Value str, Value args)
Return a value representing the indexOf (LOCATE in JPQL) function on the given target with the given args.Value
InMemoryExpressionFactory. indexOf(Value val1, Value val2)
protected boolean
AbstractExpressionBuilder. isBound(Value var)
Return true if the given variable has been bound.Expression
ExpressionFactory. isEmpty(Value target)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. isEmpty(Value v1)
Expression
ExpressionFactory. isInstance(Value obj, java.lang.Class c)
Return whether the first value is an instance of the given class.Expression
InMemoryExpressionFactory. isInstance(Value v1, java.lang.Class c)
Expression
ExpressionFactory. isNotEmpty(Value target)
Return an expression representing the given condition.Expression
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)
Expression
ExpressionFactory. lessThan(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. lessThan(Value v1, Value v2)
Expression
ExpressionFactory. lessThanEqual(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. lessThanEqual(Value v1, Value v2)
Value
ExpressionFactory. mapEntry(Value key, Value val)
Return the map entry of the given value.Value
InMemoryExpressionFactory. mapEntry(Value key, Value val)
Value
ExpressionFactory. mapKey(Value key, Value val)
Return the map key of the given valueValue
InMemoryExpressionFactory. mapKey(Value key, Value val)
Expression
ExpressionFactory. matches(Value str, Value regexp, java.lang.String single, java.lang.String multi, java.lang.String escape)
Return whether the string matches the matching pattern.Expression
InMemoryExpressionFactory. matches(Value v1, Value v2, java.lang.String single, java.lang.String multi, java.lang.String esc)
Value
ExpressionFactory. max(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. max(Value val)
Value
ExpressionFactory. min(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. min(Value val)
Value
ExpressionFactory. mod(Value num1, Value num2)
Return a value representing the first value mod'd by the second one.Value
InMemoryExpressionFactory. mod(Value val1, Value val2)
Value
ExpressionFactory. multiply(Value num1, Value num2)
Return a value representing the two values multiplied together.Value
InMemoryExpressionFactory. multiply(Value val1, Value val2)
Value
ExpressionFactory. newAggregate(AggregateListener listener, Value args)
Return the value of the given function.Value
InMemoryExpressionFactory. newAggregate(AggregateListener listener, Value arg)
Arguments
ExpressionFactory. newArgumentList(Value... values)
Return a function argument list consisting of the given values, any of which may itself be an argument list.Arguments
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.Arguments
InMemoryExpressionFactory. newArgumentList(Value... values)
Arguments
InMemoryExpressionFactory. newArgumentList(Value val1, Value val2)
Value
ExpressionFactory. newExtension(FilterListener listener, Value target, Value args)
Return the value of the given extension.Value
InMemoryExpressionFactory. newExtension(FilterListener listener, Value target, Value arg)
Value
ExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Return a value representing the given datastore function with the given arguments.Value
InMemoryExpressionFactory. newFunction(java.lang.String functionName, java.lang.Class<?> resultType, Value... args)
Path
ExpressionFactory. newPath(Value val)
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
Path
InMemoryExpressionFactory. newPath(Value val)
Expression
ExpressionFactory. notEqual(Value v1, Value v2)
Return an expression representing the given condition.Expression
InMemoryExpressionFactory. notEqual(Value v1, Value v2)
Expression
ExpressionFactory. notMatches(Value str, Value regexp, java.lang.String single, java.lang.String multi, java.lang.String escape)
Return whether the string does not match the given pattern.Expression
InMemoryExpressionFactory. notMatches(Value v1, Value v2, java.lang.String single, java.lang.String multi, java.lang.String esc)
Value
ExpressionFactory. nullIfExpression(Value val1, Value val2)
Return a nullif expressionValue
InMemoryExpressionFactory. nullIfExpression(Value val1, Value val2)
void
QueryExpressions. putUpdate(Path path, Value val)
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, java.lang.Class<?> expected)
Set the implicit type of the given value to the given class.protected void
AbstractExpressionBuilder. setImplicitTypes(Value val1, Value val2, java.lang.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, java.lang.Class<?> expected, Resolver resolver)
Value
ExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
Return a simple case expressionValue
InMemoryExpressionFactory. simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
Value
ExpressionFactory. size(Value target)
Return an expression representing the given condition.Value
InMemoryExpressionFactory. size(Value val)
Value
ExpressionFactory. sqrt(Value num)
Return the square root of the given value.Value
InMemoryExpressionFactory. sqrt(Value val)
Expression
ExpressionFactory. startsWith(Value str1, Value str2)
Return whether the first string starts with the second.Expression
InMemoryExpressionFactory. startsWith(Value v1, Value v2)
Value
ExpressionFactory. stringLength(Value str)
Returns the number of characters in the String value.Value
InMemoryExpressionFactory. stringLength(Value str)
Value
ExpressionFactory. substring(Value str, Value args)
Return a value representing the substring function on the given target with the given args.Value
InMemoryExpressionFactory. substring(Value val1, Value val2)
Value
ExpressionFactory. subtract(Value num1, Value num2)
Return a value representing the second value subtracted from the first.Value
InMemoryExpressionFactory. subtract(Value val1, Value val2)
Value
ExpressionFactory. sum(Value num)
Return the max of the given value for all matches.Value
InMemoryExpressionFactory. sum(Value val)
Value
ExpressionFactory. toLowerCase(Value str)
Return the upper case of the given value.Value
InMemoryExpressionFactory. toLowerCase(Value val)
Value
ExpressionFactory. toUpperCase(Value str)
Return the upper case of the given value.Value
InMemoryExpressionFactory. toUpperCase(Value val)
Value
ExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Trims the specified specified trimChar from the specified value.Value
InMemoryExpressionFactory. trim(Value str, Value trimChar, java.lang.Boolean where)
Value
ExpressionFactory. type(Value target)
Return the type/class of the given value.Value
InMemoryExpressionFactory. type(Value val)
Expression
ExpressionFactory. whenCondition(Expression exp, Value val)
Return a when condidional clauseExpression
InMemoryExpressionFactory. whenCondition(Expression exp, Value val)
Expression
ExpressionFactory. whenScalar(Value val1, Value val2)
Return a when scalar_expression clauseExpression
InMemoryExpressionFactory. whenScalar(Value val1, Value val2)
Method parameters in org.apache.openjpa.kernel.exps with type arguments of type Value Modifier and Type Method Description void
Context. setVariables(java.util.Map<java.lang.String,Value> variables)
-
Uses of Value in org.apache.openjpa.kernel.jpql
Methods in org.apache.openjpa.kernel.jpql that return Value Modifier and Type Method Description static Value
JPQLExpressionBuilder. convertSubstringArguments(ExpressionFactory factory, Value val1, Value val2, Value val3)
Converts JPQL substring() function to OpenJPA ExpressionFactory substring() arguments.Value[]
JPQLParser. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
protected Value
JPQLExpressionBuilder. getDefinedVariable(java.lang.String id)
protected Value
JPQLExpressionBuilder. getVariable(java.lang.String var)
protected Value
JPQLExpressionBuilder. getVariable(java.lang.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 Value Modifier and Type Method Description protected void
JPQLExpressionBuilder. addVariableToContext(java.lang.String id, Value var)
static void
JPQLExpressionBuilder. checkEmbeddable(Value val, java.lang.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, java.lang.Class<?> expected)
static void
JPQLExpressionBuilder. setImplicitTypes(Value val1, Value val2, java.lang.Class<?> expected, Resolver resolver, OrderedMap<java.lang.Object,java.lang.Class<?>> parameterTypes, java.lang.String currentQuery)
-
Uses of Value in org.apache.openjpa.persistence.criteria
Methods in org.apache.openjpa.persistence.criteria that return Value Modifier and Type Method Description Value[]
CriteriaBuilderImpl. eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
-