Package org.apache.openjpa.kernel.exps
Interface Value
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Abs
,Args
,CandidatePath
,Coalesce
,CoalesceExpression
,CollectionParam
,Concat
,DatastoreFunction
,GeneralCaseExpression
,IndexOf
,Lit
,MapEntry
,MapKey
,Math
,Null
,NullableAggregateUnaryOp
,NullIf
,NullIfExpression
,Param
,PCPath
,SimpleCase
,SimpleCaseExpression
,Sqrt
,StringLength
,SubQ
,Substring
,ToLowerCase
,ToUpperCase
,Trim
,TypeLit
,Val
Interface for any non-operator in a query filter, including
constants, variables, and object fields.
- Author:
- Abe White
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptVisit
(ExpressionVisitor visitor) Accept a visit from a tree visitor.getAlias()
Return select item aliasReturn any associated persistent type.getName()
getPath()
Return 'this' concrete class if alias is set, otherwise nullgetType()
Return the expected type for this value, orObject
if the type is unknown.boolean
Return true if this value is an aggregate.boolean
Return true if this value is a variable.boolean
isXPath()
Return true if this value is an XML Path.void
Set select item aliasvoid
setImplicitType
(Class type) Set the implicit type of the value, based on how it is used in the filter.void
setMetaData
(ClassMetaData meta) Associate a persistent type with this value.
-
Method Details
-
getType
Class getType()Return the expected type for this value, orObject
if the type is unknown. -
setImplicitType
Set the implicit type of the value, based on how it is used in the filter. This method is only called on values who returnObject
fromgetType()
. -
isVariable
boolean isVariable()Return true if this value is a variable. -
isAggregate
boolean isAggregate()Return true if this value is an aggregate. -
isXPath
boolean isXPath()Return true if this value is an XML Path. -
getMetaData
ClassMetaData getMetaData()Return any associated persistent type. -
setMetaData
Associate a persistent type with this value. -
acceptVisit
Accept a visit from a tree visitor. -
getAlias
String getAlias()Return select item alias -
setAlias
Set select item alias -
getSelectAs
Value getSelectAs()Return 'this' concrete class if alias is set, otherwise null -
getPath
Path getPath() -
getName
String getName()
-