org.apache.openjpa.jdbc.kernel.exps
Class SQLExpression

java.lang.Object
  extended by org.apache.openjpa.jdbc.kernel.exps.SQLEmbed
      extended by org.apache.openjpa.jdbc.kernel.exps.SQLExpression
All Implemented Interfaces:
Serializable, JDBCFilterListener, FilterListener

Deprecated. Use SQLEmbed directly

public class SQLExpression
extends SQLEmbed

Simple listener which embeds the argument as an expression into the where clause generated by the query. Listens on "ext:sqlExp". Example:
"price < 10 || ext:sqlExp (\"(SELECT AVG (PRICE) FROM PRODUCT_TABLE) > 100\")"

See Also:
Serialized Form

Field Summary
static String TAG
          Deprecated.  
 
Constructor Summary
SQLExpression()
          Deprecated.  
 
Method Summary
 String getTag()
          Deprecated. Return the tag that this extension listens for.
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.exps.SQLEmbed
appendTo, evaluate, expectsArguments, expectsTarget, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final String TAG
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

SQLExpression

public SQLExpression()
Deprecated. 
Method Detail

getTag

public String getTag()
Deprecated. 
Description copied from interface: FilterListener
Return the tag that this extension listens for.

Specified by:
getTag in interface FilterListener
Overrides:
getTag in class SQLEmbed


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