net.ontopia.persistence.query.sql
Class EqualsSQLOptimizer

java.lang.Object
  extended by net.ontopia.persistence.query.sql.BooleanSQLOptimizer
      extended by net.ontopia.persistence.query.sql.EqualsSQLOptimizer

public class EqualsSQLOptimizer
extends BooleanSQLOptimizer

INTERNAL: SQL optimizer that removes A = A and A != A expressions.


Constructor Summary
EqualsSQLOptimizer()
           
 
Method Summary
 SQLQuery optimize(SQLQuery query)
           
protected  int optimizeEquals(SQLEquals expr)
           
protected  int optimizeNotEquals(SQLNotEquals expr)
           
 
Methods inherited from class net.ontopia.persistence.query.sql.BooleanSQLOptimizer
optimizeAnd, optimizeExists, optimizeExpression, optimizeFalse, optimizeFilter, optimizeIn, optimizeIsNull, optimizeJoin, optimizeLike, optimizeNot, optimizeOr, optimizeOrderBy, optimizeQuery, optimizeSelect, optimizeSetOperation, optimizeValueExpression, optimizeVerbatimExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsSQLOptimizer

public EqualsSQLOptimizer()
Method Detail

optimize

public SQLQuery optimize(SQLQuery query)
Specified by:
optimize in class BooleanSQLOptimizer

optimizeEquals

protected int optimizeEquals(SQLEquals expr)
Overrides:
optimizeEquals in class BooleanSQLOptimizer

optimizeNotEquals

protected int optimizeNotEquals(SQLNotEquals expr)
Overrides:
optimizeNotEquals in class BooleanSQLOptimizer


Copyright © 2000-2012 Ontopia.