Package org.apache.openjpa.kernel.exps
Interface Value
-
- All Superinterfaces:
java.io.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
public interface Value extends java.io.SerializableInterface for any non-operator in a query filter, including constants, variables, and object fields.- Author:
- Abe White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacceptVisit(ExpressionVisitor visitor)Accept a visit from a tree visitor.java.lang.StringgetAlias()Return select item aliasClassMetaDatagetMetaData()Return any associated persistent type.java.lang.StringgetName()PathgetPath()ValuegetSelectAs()Return 'this' concrete class if alias is set, otherwise nulljava.lang.ClassgetType()Return the expected type for this value, orObjectif the type is unknown.booleanisAggregate()Return true if this value is an aggregate.booleanisVariable()Return true if this value is a variable.booleanisXPath()Return true if this value is an XML Path.voidsetAlias(java.lang.String alias)Set select item aliasvoidsetImplicitType(java.lang.Class type)Set the implicit type of the value, based on how it is used in the filter.voidsetMetaData(ClassMetaData meta)Associate a persistent type with this value.
-
-
-
Method Detail
-
getType
java.lang.Class getType()
Return the expected type for this value, orObjectif the type is unknown.
-
setImplicitType
void setImplicitType(java.lang.Class type)
Set the implicit type of the value, based on how it is used in the filter. This method is only called on values who returnObjectfromgetType().
-
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
void setMetaData(ClassMetaData meta)
Associate a persistent type with this value.
-
acceptVisit
void acceptVisit(ExpressionVisitor visitor)
Accept a visit from a tree visitor.
-
getAlias
java.lang.String getAlias()
Return select item alias
-
setAlias
void setAlias(java.lang.String alias)
Set select item alias
-
getSelectAs
Value getSelectAs()
Return 'this' concrete class if alias is set, otherwise null
-
getPath
Path getPath()
-
getName
java.lang.String getName()
-
-