Uses of Interface
org.apache.openjpa.kernel.exps.Value

Packages that use Value
org.apache.openjpa.jdbc.kernel.exps OpenJPA-JDBC Expression Tree 
org.apache.openjpa.jdbc.sql OpenJPA-JDBC SQL Abstraction 
org.apache.openjpa.kernel OpenJPA Runtime Kernel 
org.apache.openjpa.kernel.exps OpenJPA Expression Tree 
org.apache.openjpa.kernel.jpql JPA Query Language Support 
org.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
(package private)  interface JDBCPath
          A path represents a traversal into fields of a candidate object.
 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
(package private)  class AbstractVal
          Abstract value for easy extension.
 class CoalesceExpression
          Coalesce expression.
(package private)  class Const
          A literal or parameter in the filter.
(package private)  class ConstGetObjectId
          Obtaining the object id of a constant.
(package private)  class ConstPath
          A field traversal starting with a constant filter parameter.
 class DatastoreFunction
          A unary operator that executes a datastore specific function with zero or more arguments.
 class GeneralCaseExpression
          General case expression.
 class MapEntry
          Returns the Map.Entry of a map value.
 class MapKey
          Returns the key of a map value.
 class Math
          Value produced by a mathematical operation on two values.
 class NullIfExpression
          NullIf expression.
 class PCPath
          A path represents a traversal into fields of a candidate object.
 class SimpleCaseExpression
          Simple case expression.
(package private)  class StringFunction
          A JDBC string function.
(package private)  class UnaryOp
          Value produced by a unary operation on a value.
(package private)  class Variable
          A variable in a filter.
 

Methods in org.apache.openjpa.jdbc.kernel.exps that return Value
 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, 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 Date>
Value
JDBCExpressionFactory.getCurrentDate(Class<T> dateType)
           
<T extends Date>
Value
JDBCExpressionFactory.getCurrentTime(Class<T> dateType)
           
<T extends Date>
Value
JDBCExpressionFactory.getCurrentTimestamp(Class<T> dateType)
           
 Value JDBCExpressionFactory.getKey(Value val)
           
 Value JDBCExpressionFactory.getMapValue(Value map, Value arg)
           
 Value JDBCExpressionFactory.getNull()
           
 Value JDBCExpressionFactory.getObjectId(Value val)
           
 Value SimpleCaseExpression.getOtherPath()
           
 Value NullIfExpression.getOtherPath()
           
 Value GeneralCaseExpression.getOtherPath()
           
 Value CoalesceExpression.getOtherPath()
           
 Value Val.getSelectAs()
           
 Value AbstractVal.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(String name, Class type)
           
 Value JDBCExpressionFactory.newExtension(FilterListener listener, Value target, Value arg)
           
 Value JDBCExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args)
           
 Value JDBCExpressionFactory.newUnboundVariable(String name, 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, Boolean where)
           
 Value JDBCExpressionFactory.type(Value val)
           
 

Methods in org.apache.openjpa.jdbc.kernel.exps with parameters of type Value
 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, 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, Class c)
           
 Expression JDBCExpressionFactory.isNotEmpty(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, String single, String multi, 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(String functionName, Class<?> resultType, Value... args)
           
 Path JDBCExpressionFactory.newPath(Value val)
           
 Expression JDBCExpressionFactory.notEqual(Value v1, Value v2)
           
 Expression JDBCExpressionFactory.notMatches(Value v1, Value v2, String single, String multi, String esc)
           
 Value JDBCExpressionFactory.nullIfExpression(Value val1, Value val2)
           
 void SimpleCaseExpression.setOtherPath(Value other)
           
 void NullIfExpression.setOtherPath(Value other)
           
 void GeneralCaseExpression.setOtherPath(Value other)
           
 void CoalesceExpression.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, 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
 boolean SelectImpl.orderBy(SQLBuffer sql, boolean asc, boolean sel, Value selAs)
           
 boolean Select.orderBy(SQLBuffer sql, boolean asc, boolean sel, Value selAs)
          Add an ORDER BY clause.
 boolean LogicalUnion.UnionSelect.orderBy(SQLBuffer sql, boolean asc, boolean select, Value selAs)
           
(package private)  boolean SelectImpl.orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean sel, boolean aliasOrder, Value selAs)
          Allow unions to set aliases on order columns.
 boolean SelectImpl.orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean sel, Value selAs)
           
 boolean Select.orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean sel, Value selAs)
          Add an ORDER BY clause.
 boolean LogicalUnion.UnionSelect.orderBy(SQLBuffer sql, boolean asc, Joins joins, boolean select, Value selAs)
           
 

Uses of Value in org.apache.openjpa.kernel
 

Methods in org.apache.openjpa.kernel that return types with arguments of type Value
 Map<FieldMetaData,Value> QueryContext.getUpdates()
          If this query is a bulk update, return a map of the FieldMetaDatas to Constants.
 Map<FieldMetaData,Value> StoreQuery.Executor.getUpdates(StoreQuery q)
          Return a map of FieldMetaData to update Constants, in cases where this query is for a bulk update.
 Map<FieldMetaData,Value> AbstractStoreQuery.AbstractExecutor.getUpdates(StoreQuery q)
           
 

Methods in org.apache.openjpa.kernel with parameters of type Value
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
 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
(package private)  class Abs
          Take the absolute value of a number.
(package private)  class Add
          Value produced by two values being added together.
(package private)  class Aggregate
          A value produced from evaluating a result aggregate.
(package private)  class AggregateVal
          An aggregate of some value.
(package private)  class All
          In-memory All implementation.
(package private)  class Any
          In-memory Any implementation.
(package private)  class Args
          A list of arguments to a multi-argument function.
(package private)  class Avg
          Average values.
(package private)  class BoundVariable
          Represents a bound variable.
 class CandidatePath
          A path represents a traversal into fields of a candidate object.
(package private)  class Cast
          Represents a cast.
 class Coalesce
          An in-memory representation of a coalesce expression
(package private)  class CollectionParam
          Represents a collection valued input parameter.
(package private)  class Concat
          Concatenate two strings together.
(package private)  class Count
          Count non-null values.
(package private)  class CurrentDate
          Represents the current date.
(package private)  class Distinct
          A distinct set of the specified values.
(package private)  class Divide
          Value produced by one value being divided by another.
(package private)  class Extension
          A value produced from evaluating a custom extension.
(package private)  class GeneralCase
          An in-memory representation of a general case expression
(package private)  class GetMapValue
          Returns the value of the specified key in a Map.
(package private)  class GetObjectId
          Get the oid of an object.
(package private)  class Index
          Returns the index of a value within a collection/map.
(package private)  class IndexOf
          Find the index of one string within another.
(package private)  class Lit
          Represents a literal.
(package private)  class MathVal
          Value produced by a mathematical operation on two values.
(package private)  class Max
          Find the max.
(package private)  class Min
          Find the min.
(package private)  class Mod
          Value produced by one value being mod'd by another.
(package private)  class Multiply
          Value produced by two values being multiplied together.
(package private)  class Null
          Represents the null constant.
 class NullIf
          An in-memory representation of a nullif expression
(package private)  class Param
          Represents a parameter.
 class SimpleCase
          An in-memory representation of a simple case expression
(package private)  class Size
          Returns the count of a collection.
(package private)  class Sqrt
          Take the square root of a number.
(package private)  class StringLength
          Returns the number of characters in the String.
(package private)  class SubQ
          An in-memory representation of a Subquery.
(package private)  class Substring
          Take the substring of a string.
(package private)  class Subtract
          Value produced by one value being subtracted from another.
(package private)  class Sum
          Sum values.
(package private)  class This
          Represents the 'this' ptr in a filter.
(package private)  class ToLowerCase
          Lower-case a string.
(package private)  class ToUpperCase
          Upper-case a string.
(package private)  class Trim
          Trims leading, trailing, or both charactes from a String.
(package private)  class Type
          Returns the entity type.
(package private)  class TypeLit
          Represents a type literal.
(package private)  class UnaryMathVal
          Value produced by a mathematical operation on one value.
(package private)  class UnboundVariable
          Represents an unbound variable.
 class Val
          An in-memory representation of a Value.
(package private)  class ValuePath
          Represents a path that begins with a variable or parameter.
 

Fields in org.apache.openjpa.kernel.exps declared as Value
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
 Map<Path,Value> QueryExpressions.updates
          Map of FieldMetaData,Value for update statements.
 

Methods in org.apache.openjpa.kernel.exps that return Value
 Value InMemoryExpressionFactory.abs(Value val)
           
 Value ExpressionFactory.abs(Value num)
          Return a value representing the absolute value of the given one.
 Value InMemoryExpressionFactory.add(Value val1, Value val2)
           
 Value ExpressionFactory.add(Value num1, Value num2)
          Return a value representing the two values added together.
 Value InMemoryExpressionFactory.all(Value val)
           
 Value ExpressionFactory.all(Value target)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.any(Value val)
           
 Value ExpressionFactory.any(Value target)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.avg(Value val)
           
 Value ExpressionFactory.avg(Value num)
          Return the average of the given value for all matches.
 Value InMemoryExpressionFactory.cast(Value val, Class cls)
           
 Value ExpressionFactory.cast(Value obj, Class cls)
          Cast the value to the given class.
 Value InMemoryExpressionFactory.coalesceExpression(Value[] val)
           
 Value ExpressionFactory.coalesceExpression(Value[] val)
          Return a coalesce expression
 Value InMemoryExpressionFactory.concat(Value val1, Value val2)
           
 Value ExpressionFactory.concat(Value str, Value args)
          Return a value representing the concatenation of the given target with the given args.
 Value InMemoryExpressionFactory.count(Value val)
           
 Value ExpressionFactory.count(Value obj)
          Return the count of the given value for all matches.
protected  Value AbstractExpressionBuilder.createVariable(String id, boolean bind)
           
 Value InMemoryExpressionFactory.distinct(Value val)
           
 Value ExpressionFactory.distinct(Value obj)
          Return distinct values of the given value.
 Value InMemoryExpressionFactory.divide(Value val1, Value val2)
           
 Value ExpressionFactory.divide(Value num1, Value num2)
          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.
 Value Context.findVariable(String alias)
          Given an alias find the variable in JPQL contexts.
 Value InMemoryExpressionFactory.generalCaseExpression(Expression[] exp, Value val)
           
 Value ExpressionFactory.generalCaseExpression(Expression[] exp, Value val)
          Return a general case expression
<T extends Date>
Value
InMemoryExpressionFactory.getCurrentDate(Class<T> dateType)
           
<T extends Date>
Value
ExpressionFactory.getCurrentDate(Class<T> dateType)
          Return a value representing the current date.
<T extends Date>
Value
InMemoryExpressionFactory.getCurrentTime(Class<T> dateType)
           
<T extends Date>
Value
ExpressionFactory.getCurrentTime(Class<T> timeType)
          Return a value representing the current time.
<T extends Date>
Value
InMemoryExpressionFactory.getCurrentTimestamp(Class<T> dateType)
           
<T extends Date>
Value
ExpressionFactory.getCurrentTimestamp(Class<T> timestampType)
          Return a value representing the current timestamp.
 Value InMemoryExpressionFactory.getKey(Value val)
           
 Value ExpressionFactory.getKey(Value val)
          Path navigation thru map key
 Value InMemoryExpressionFactory.getMapValue(Value map, Value arg)
           
 Value ExpressionFactory.getMapValue(Value map, Value arg)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.getNull()
           
 Value ExpressionFactory.getNull()
          Return a value representing null.
 Value InMemoryExpressionFactory.getObjectId(Value val)
           
 Value ExpressionFactory.getObjectId(Value val)
          Return the object id of the given value.
 Value Value.getSelectAs()
          Return 'this' concrete class if alias is set, otherwise null
 Value Val.getSelectAs()
           
 Value InMemoryExpressionFactory.getThis()
           
 Value ExpressionFactory.getThis()
          Return a value representing this.
 Value[] Arguments.getValues()
          Return the values that make up the arguments.
 Value[] Args.getValues()
           
 Value Context.getVariable(String alias)
          Given an alias and return its associated variable.
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.
 Value InMemoryExpressionFactory.index(Value val)
           
 Value ExpressionFactory.index(Value target)
          Return an index/position of the given value within a collection/map.
 Value InMemoryExpressionFactory.indexOf(Value val1, Value val2)
           
 Value ExpressionFactory.indexOf(Value str, Value args)
          Return a value representing the String.indexOf(int) function on the given target with the given args.
 Value InMemoryExpressionFactory.mapEntry(Value key, Value val)
           
 Value ExpressionFactory.mapEntry(Value key, Value val)
          Return the map entry of the given value.
 Value InMemoryExpressionFactory.mapKey(Value key, Value val)
           
 Value ExpressionFactory.mapKey(Value key, Value val)
          Return the map key of the given value
 Value InMemoryExpressionFactory.max(Value val)
           
 Value ExpressionFactory.max(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.min(Value val)
           
 Value ExpressionFactory.min(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.mod(Value val1, Value val2)
           
 Value ExpressionFactory.mod(Value num1, Value num2)
          Return a value representing the first value mod'd by the second one.
 Value InMemoryExpressionFactory.multiply(Value val1, Value val2)
           
 Value ExpressionFactory.multiply(Value num1, Value num2)
          Return a value representing the two values multiplied together.
 Value InMemoryExpressionFactory.newAggregate(AggregateListener listener, Value arg)
           
 Value ExpressionFactory.newAggregate(AggregateListener listener, Value args)
          Return the value of the given function.
 Value InMemoryExpressionFactory.newBoundVariable(String name, Class type)
           
 Value ExpressionFactory.newBoundVariable(String name, Class type)
          This method will be called only once per variable bound in a contains clause, and the returned value will be reused for any further instances of the variable in subexpression of the filter string.
 Value InMemoryExpressionFactory.newExtension(FilterListener listener, Value target, Value arg)
           
 Value ExpressionFactory.newExtension(FilterListener listener, Value target, Value args)
          Return the value of the given extension.
 Value InMemoryExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args)
           
 Value ExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args)
          Return a value representing the given datastore function with the given arguments.
 Value InMemoryExpressionFactory.newUnboundVariable(String name, Class type)
           
 Value ExpressionFactory.newUnboundVariable(String name, Class type)
          Return an unbound variable.
 Value InMemoryExpressionFactory.nullIfExpression(Value val1, Value val2)
           
 Value ExpressionFactory.nullIfExpression(Value val1, Value val2)
          Return a nullif expression
 Value InMemoryExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
           
 Value ExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
          Return a simple case expression
 Value InMemoryExpressionFactory.size(Value val)
           
 Value ExpressionFactory.size(Value target)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.sqrt(Value val)
           
 Value ExpressionFactory.sqrt(Value num)
          Return the square root of the given value.
 Value InMemoryExpressionFactory.stringLength(Value str)
           
 Value ExpressionFactory.stringLength(Value str)
          Returns the number of characters in the String value.
 Value InMemoryExpressionFactory.substring(Value val1, Value val2)
           
 Value ExpressionFactory.substring(Value str, Value args)
          Return a value representing the String.substring(int) function on the given target with the given args.
 Value InMemoryExpressionFactory.subtract(Value val1, Value val2)
           
 Value ExpressionFactory.subtract(Value num1, Value num2)
          Return a value representing the second value subtracted from the first.
 Value InMemoryExpressionFactory.sum(Value val)
           
 Value ExpressionFactory.sum(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.toLowerCase(Value val)
           
 Value ExpressionFactory.toLowerCase(Value str)
          Return the upper case of the given value.
 Value InMemoryExpressionFactory.toUpperCase(Value val)
           
 Value ExpressionFactory.toUpperCase(Value str)
          Return the upper case of the given value.
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)
           
 Value InMemoryExpressionFactory.trim(Value str, Value trimChar, Boolean where)
           
 Value ExpressionFactory.trim(Value str, Value trimChar, Boolean where)
          Trims the specified specified trimChar from the specified value.
 Value InMemoryExpressionFactory.type(Value val)
           
 Value ExpressionFactory.type(Value target)
          Return the type/class of the given value.
 

Methods in org.apache.openjpa.kernel.exps that return types with arguments of type Value
 Map<String,Value> Context.getVariables()
           
 

Methods in org.apache.openjpa.kernel.exps with parameters of type Value
 Value InMemoryExpressionFactory.abs(Value val)
           
 Value ExpressionFactory.abs(Value num)
          Return a value representing the absolute value of the given one.
 Value InMemoryExpressionFactory.add(Value val1, Value val2)
           
 Value ExpressionFactory.add(Value num1, Value num2)
          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.
 Value InMemoryExpressionFactory.all(Value val)
           
 Value ExpressionFactory.all(Value target)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.any(Value val)
           
 Value ExpressionFactory.any(Value target)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.asExpression(Value v)
           
 Expression ExpressionFactory.asExpression(Value bool)
          Return the given value as an expression.
 Value InMemoryExpressionFactory.avg(Value val)
           
 Value ExpressionFactory.avg(Value num)
          Return the average of the given value for all matches.
protected  void AbstractExpressionBuilder.bind(Value var)
          Record that the given variable is bound.
 Expression InMemoryExpressionFactory.bindKeyVariable(Value var, Value val)
           
 Expression ExpressionFactory.bindKeyVariable(Value var, Value map)
          Bind the given variable to the key set of the given map value.
 Expression InMemoryExpressionFactory.bindValueVariable(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.bindVariable(Value var, Value val)
           
 Expression ExpressionFactory.bindVariable(Value var, Value coll)
          Bind the given variable to the given collection value.
 Value InMemoryExpressionFactory.cast(Value val, Class cls)
           
 Value ExpressionFactory.cast(Value obj, Class cls)
          Cast the value to the given class.
 Value InMemoryExpressionFactory.coalesceExpression(Value[] val)
           
 Value ExpressionFactory.coalesceExpression(Value[] val)
          Return a coalesce expression
 Value InMemoryExpressionFactory.concat(Value val1, Value val2)
           
 Value ExpressionFactory.concat(Value str, Value args)
          Return a value representing the concatenation of the given target with the given args.
 Expression InMemoryExpressionFactory.contains(Value v1, Value v2)
           
 Expression ExpressionFactory.contains(Value coll, Value arg)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.containsKey(Value v1, Value v2)
           
 Expression ExpressionFactory.containsKey(Value map, Value arg)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.containsValue(Value v1, Value v2)
           
 Expression ExpressionFactory.containsValue(Value map, Value arg)
          Return an expression representing the given condition.
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 InMemoryExpressionFactory.count(Value val)
           
 Value ExpressionFactory.count(Value obj)
          Return the count of the given value for all matches.
 Value InMemoryExpressionFactory.distinct(Value val)
           
 Value ExpressionFactory.distinct(Value obj)
          Return distinct values of the given value.
 Value InMemoryExpressionFactory.divide(Value val1, Value val2)
           
 Value ExpressionFactory.divide(Value num1, Value num2)
          Return a value representing the first value divided by the first one.
 Expression InMemoryExpressionFactory.endsWith(Value v1, Value v2)
           
 Expression ExpressionFactory.endsWith(Value str1, Value str2)
          Return whether the first string ends with the second.
 void ExpressionVisitor.enter(Value val)
          Enter a value.
 void AbstractExpressionVisitor.enter(Value val)
           
 Expression InMemoryExpressionFactory.equal(Value v1, Value v2)
           
 Expression ExpressionFactory.equal(Value v1, Value v2)
          Return an expression representing the given condition.
 void ExpressionVisitor.exit(Value val)
          Leave a value.
 void AbstractExpressionVisitor.exit(Value val)
           
 Value InMemoryExpressionFactory.generalCaseExpression(Expression[] exp, Value val)
           
 Value ExpressionFactory.generalCaseExpression(Expression[] exp, Value val)
          Return a general case expression
 Value InMemoryExpressionFactory.getKey(Value val)
           
 Value ExpressionFactory.getKey(Value val)
          Path navigation thru map key
 Value InMemoryExpressionFactory.getMapValue(Value map, Value arg)
           
 Value ExpressionFactory.getMapValue(Value map, Value arg)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.getObjectId(Value val)
           
 Value ExpressionFactory.getObjectId(Value val)
          Return the object id of the given value.
 Expression InMemoryExpressionFactory.greaterThan(Value v1, Value v2)
           
 Expression ExpressionFactory.greaterThan(Value v1, Value v2)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.greaterThanEqual(Value v1, Value v2)
           
 Expression ExpressionFactory.greaterThanEqual(Value v1, Value v2)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.index(Value val)
           
 Value ExpressionFactory.index(Value target)
          Return an index/position of the given value within a collection/map.
 Value InMemoryExpressionFactory.indexOf(Value val1, Value val2)
           
 Value ExpressionFactory.indexOf(Value str, Value args)
          Return a value representing the String.indexOf(int) function on the given target with the given args.
protected  boolean AbstractExpressionBuilder.isBound(Value var)
          Return true if the given variable has been bound.
 Expression InMemoryExpressionFactory.isEmpty(Value v1)
           
 Expression ExpressionFactory.isEmpty(Value target)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.isInstance(Value v1, Class c)
           
 Expression ExpressionFactory.isInstance(Value obj, Class c)
          Return whether the first value is an instance of the given class.
 Expression InMemoryExpressionFactory.isNotEmpty(Value v1)
           
 Expression ExpressionFactory.isNotEmpty(Value target)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.lessThan(Value v1, Value v2)
           
 Expression ExpressionFactory.lessThan(Value v1, Value v2)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.lessThanEqual(Value v1, Value v2)
           
 Expression ExpressionFactory.lessThanEqual(Value v1, Value v2)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.mapEntry(Value key, Value val)
           
 Value ExpressionFactory.mapEntry(Value key, Value val)
          Return the map entry of the given value.
 Value InMemoryExpressionFactory.mapKey(Value key, Value val)
           
 Value ExpressionFactory.mapKey(Value key, Value val)
          Return the map key of the given value
 Expression InMemoryExpressionFactory.matches(Value v1, Value v2, String single, String multi, String esc)
           
 Expression ExpressionFactory.matches(Value str, Value regexp, String single, String multi, String escape)
          Return whether the string matches the matching pattern.
 Value InMemoryExpressionFactory.max(Value val)
           
 Value ExpressionFactory.max(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.min(Value val)
           
 Value ExpressionFactory.min(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.mod(Value val1, Value val2)
           
 Value ExpressionFactory.mod(Value num1, Value num2)
          Return a value representing the first value mod'd by the second one.
 Value InMemoryExpressionFactory.multiply(Value val1, Value val2)
           
 Value ExpressionFactory.multiply(Value num1, Value num2)
          Return a value representing the two values multiplied together.
 Value InMemoryExpressionFactory.newAggregate(AggregateListener listener, Value arg)
           
 Value ExpressionFactory.newAggregate(AggregateListener listener, Value args)
          Return the value of the given function.
 Arguments InMemoryExpressionFactory.newArgumentList(Value... values)
           
 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 InMemoryExpressionFactory.newArgumentList(Value val1, Value val2)
           
 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.
 Value InMemoryExpressionFactory.newExtension(FilterListener listener, Value target, Value arg)
           
 Value ExpressionFactory.newExtension(FilterListener listener, Value target, Value args)
          Return the value of the given extension.
 Value InMemoryExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args)
           
 Value ExpressionFactory.newFunction(String functionName, Class<?> resultType, Value... args)
          Return a value representing the given datastore function with the given arguments.
 Path InMemoryExpressionFactory.newPath(Value val)
           
 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
 Expression InMemoryExpressionFactory.notEqual(Value v1, Value v2)
           
 Expression ExpressionFactory.notEqual(Value v1, Value v2)
          Return an expression representing the given condition.
 Expression InMemoryExpressionFactory.notMatches(Value v1, Value v2, String single, String multi, String esc)
           
 Expression ExpressionFactory.notMatches(Value str, Value regexp, String single, String multi, String escape)
          Return whether the string does not match the given pattern.
 Value InMemoryExpressionFactory.nullIfExpression(Value val1, Value val2)
           
 Value ExpressionFactory.nullIfExpression(Value val1, Value val2)
          Return a nullif expression
 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, 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)
           
 Value InMemoryExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
           
 Value ExpressionFactory.simpleCaseExpression(Value caseOperand, Expression[] exp, Value val)
          Return a simple case expression
 Value InMemoryExpressionFactory.size(Value val)
           
 Value ExpressionFactory.size(Value target)
          Return an expression representing the given condition.
 Value InMemoryExpressionFactory.sqrt(Value val)
           
 Value ExpressionFactory.sqrt(Value num)
          Return the square root of the given value.
 Expression InMemoryExpressionFactory.startsWith(Value v1, Value v2)
           
 Expression ExpressionFactory.startsWith(Value str1, Value str2)
          Return whether the first string starts with the second.
 Value InMemoryExpressionFactory.stringLength(Value str)
           
 Value ExpressionFactory.stringLength(Value str)
          Returns the number of characters in the String value.
 Value InMemoryExpressionFactory.substring(Value val1, Value val2)
           
 Value ExpressionFactory.substring(Value str, Value args)
          Return a value representing the String.substring(int) function on the given target with the given args.
 Value InMemoryExpressionFactory.subtract(Value val1, Value val2)
           
 Value ExpressionFactory.subtract(Value num1, Value num2)
          Return a value representing the second value subtracted from the first.
 Value InMemoryExpressionFactory.sum(Value val)
           
 Value ExpressionFactory.sum(Value num)
          Return the max of the given value for all matches.
 Value InMemoryExpressionFactory.toLowerCase(Value val)
           
 Value ExpressionFactory.toLowerCase(Value str)
          Return the upper case of the given value.
 Value InMemoryExpressionFactory.toUpperCase(Value val)
           
 Value ExpressionFactory.toUpperCase(Value str)
          Return the upper case of the given value.
 Value InMemoryExpressionFactory.trim(Value str, Value trimChar, Boolean where)
           
 Value ExpressionFactory.trim(Value str, Value trimChar, Boolean where)
          Trims the specified specified trimChar from the specified value.
 Value InMemoryExpressionFactory.type(Value val)
           
 Value ExpressionFactory.type(Value target)
          Return the type/class of the given value.
 Expression InMemoryExpressionFactory.whenCondition(Expression exp, Value val)
           
 Expression ExpressionFactory.whenCondition(Expression exp, Value val)
          Return a when condidional clause
 Expression InMemoryExpressionFactory.whenScalar(Value val1, Value val2)
           
 Expression ExpressionFactory.whenScalar(Value val1, Value val2)
          Return a when scalar_expression clause
 

Method parameters in org.apache.openjpa.kernel.exps with type arguments of type Value
 void Context.setVariables(Map<String,Value> variables)
           
 

Constructors in org.apache.openjpa.kernel.exps with parameters of type Value
Args(Value... values)
           
Args(Value val1, Value val2)
          Constructor.
 

Uses of Value in org.apache.openjpa.kernel.jpql
 

Methods in org.apache.openjpa.kernel.jpql that return Value
static 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.
 

Methods in org.apache.openjpa.kernel.jpql with parameters of type Value
protected  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
 

Methods in org.apache.openjpa.persistence.criteria that return Value
 Value[] CriteriaBuilderImpl.eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
           
 Value CriteriaQueryImpl.getRegisteredRootVariable(Root<?> root)
          Gets the registered variable for the given root.
 Value AliasContext.getRegisteredRootVariable(Root<?> node)
          Gets the registered root variable for the given node.
 Value CriteriaQueryImpl.getRegisteredValue(Selection<?> selection)
           
 Value AliasContext.getRegisteredValue(Selection<?> node)
          Gets the registered path value for the given node.
 Value CriteriaQueryImpl.getRegisteredVariable(Selection<?> selection)
           
 Value AliasContext.getRegisteredVariable(Selection<?> node)
          Gets the registered variable for the given node.
 Value SubqueryImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
          Convert this path to a kernel path value.
 Value RootImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
          Convert this path to a kernel path value.
(package private)  Value PredicateImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value PathImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
          Convert this path to a kernel path.
 Value ParameterExpressionImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Joins.SingularJoin.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
           
 Value Joins.AbstractCollection.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
          Convert this path to a kernel path (value).
 Value Joins.MapKey.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
          Convert this path to a join expression.
 Value Joins.MapEntry.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
          Convert this path to a join expression.
 Value Joins.KeyJoin.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> c)
           
 Value Expressions.Abs.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Count.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Avg.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Sqrt.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Max.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Min.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Size.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.DatabaseFunction.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Type.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Cast.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Concat.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Substring.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Locate.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Trim.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Sum.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Product.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Diff.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Quotient.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Mod.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.CurrentDate.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.CurrentTime.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.CurrentTimestamp.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Constant.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
(package private)  Value Expressions.IsEmpty.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
(package private)  Value Expressions.IsNotEmpty.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Index.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Coalesce.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Nullif.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Case.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.SimpleCase.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Lower.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Upper.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Length.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.All.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.Any.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
 Value Expressions.CastAs.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
           
(package private) abstract  Value ExpressionImpl.toValue(ExpressionFactory factory, CriteriaQueryImpl<?> q)
          Bridge contract to convert this facade expression to a kernel value.
(package private) static Value Expressions.toValue(ExpressionImpl<?> e, ExpressionFactory factory, CriteriaQueryImpl<?> q)
          Convert the given Criteria expression to a corresponding kernel value using the given ExpressionFactory.
 

Methods in org.apache.openjpa.persistence.criteria that return types with arguments of type Value
protected  Map<ExpressionImpl<?>,Value> CriteriaExpressionBuilder.evalOrdering(QueryExpressions exps, ExpressionFactory factory, CriteriaQueryImpl<?> q)
          Evaluates the ordering expressions by converting them to kernel values.
 

Methods in org.apache.openjpa.persistence.criteria with parameters of type Value
(package private)  void CriteriaQueryImpl.registerRoot(Root<?> root, Value var)
          Registers a variable for the given root expression.
 void CriteriaQueryImpl.registerVariable(Selection<?> node, Value var, Value path)
          Register the given variable of given path value against the given node.
 void AliasContext.registerVariable(Selection<?> node, Value variable, Value path)
          Register the given variable of corresponding given value against the given node.
 void Joins.SingularJoin.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.
(package private) static void Expressions.setImplicitTypes(Value v1, Value v2, Class<?> expected, CriteriaQueryImpl<?> q)
           
 

Method parameters in org.apache.openjpa.persistence.criteria with type arguments of type Value
protected  void CriteriaExpressionBuilder.evalProjections(QueryExpressions exps, ExpressionFactory factory, CriteriaQueryImpl<?> q, Map<ExpressionImpl<?>,Value> exp2Vals)
           
 



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.