org.apache.openjpa.kernel.exps
Class SubQ

java.lang.Object
  extended by org.apache.openjpa.kernel.exps.Val
      extended by org.apache.openjpa.kernel.exps.SubQ
All Implemented Interfaces:
Serializable, Subquery, Value

 class SubQ
extends Val
implements Subquery

An in-memory representation of a Subquery. Currently subqueries aren't supported for in-memory use.

Author:
Abe White

Constructor Summary
SubQ(String alias)
           
 
Method Summary
protected  Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
          Return this value for the given candidate.
 String getCandidateAlias()
          Return the candidate alias for this subquery.
 Object getSelect()
           
 String getSubqAlias()
           
 Class getType()
          Return the expected type for this value, or Object if the type is unknown.
 void setImplicitType(Class type)
          Set the implicit type of the value, based on how it is used in the filter.
 void setQueryExpressions(QueryExpressions q)
          Set the parsed subquery.
 void setSubqAlias(String subqAlias)
           
 
Methods inherited from class org.apache.openjpa.kernel.exps.Val
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.openjpa.kernel.exps.Value
acceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
 

Constructor Detail

SubQ

public SubQ(String alias)
Method Detail

getSelect

public Object getSelect()
Specified by:
getSelect in interface Subquery

getCandidateAlias

public String getCandidateAlias()
Description copied from interface: Subquery
Return the candidate alias for this subquery.

Specified by:
getCandidateAlias in interface Subquery

setSubqAlias

public void setSubqAlias(String subqAlias)
Specified by:
setSubqAlias in interface Subquery

getSubqAlias

public String getSubqAlias()
Specified by:
getSubqAlias in interface Subquery

setQueryExpressions

public void setQueryExpressions(QueryExpressions q)
Description copied from interface: Subquery
Set the parsed subquery.

Specified by:
setQueryExpressions in interface Subquery

getType

public Class getType()
Description copied from interface: Value
Return the expected type for this value, or Object if the type is unknown.

Specified by:
getType in interface Value

setImplicitType

public void setImplicitType(Class type)
Description copied from interface: Value
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 Value.getType().

Specified by:
setImplicitType in interface Value

eval

protected Object eval(Object candidate,
                      Object orig,
                      StoreContext ctx,
                      Object[] params)
Description copied from class: Val
Return this value for the given candidate.

Specified by:
eval in class Val


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