org.apache.openjpa.kernel.exps
Interface Value

All Known Subinterfaces:
Arguments, Constant, Literal, Parameter, Path, Subquery
All Known Implementing Classes:
Val

public interface Value

Interface for any non-operator in a query filter, including constants, variables, and object fields.

Author:
Abe White

Method Summary
 ClassMetaData getMetaData()
          Return any associated persistent type.
 java.lang.Class getType()
          Return the expected type for this value, or Object if the type is unknown.
 boolean isVariable()
          Return true if this value is a variable.
 void setImplicitType(java.lang.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 Detail

getType

java.lang.Class getType()
Return the expected type for this value, or Object if 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 return Object from getType().


isVariable

boolean isVariable()
Return true if this value is a variable.


getMetaData

ClassMetaData getMetaData()
Return any associated persistent type.


setMetaData

void setMetaData(ClassMetaData meta)
Associate a persistent type with this value.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.