com.jpattern.orm.query.clause.where
Class APropertiesExpressionElement

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.where.APropertiesExpressionElement
All Implemented Interfaces:
ExpressionElement, NameSolverConsumer, RenderableSqlSubElement
Direct Known Subclasses:
EqPropertiesExpressionElement, GePropertiesExpressionElement, GtPropertiesExpressionElement, IEqPropertiesExpressionElement, LePropertiesExpressionElement, LtPropertiesExpressionElement, NePropertiesExpressionElement

public abstract class APropertiesExpressionElement
extends SmartRenderableSqlSubElement
implements ExpressionElement

Author:
Francesco Cina 19/giu/2011

Constructor Summary
APropertiesExpressionElement(String firstProperty, String secondProperty)
           
 
Method Summary
 void appendElementValues(List<Object> values)
          Append to the list all the values of the expression's elements
 void doElementRender(StringBuilder query)
           
 int getElementStatusVersion()
           
abstract  String getExpressionElementKey()
           
protected  PropertyDecorator getPropertyDecorator()
           
protected  PropertyDecorator getValueDecorator()
           
protected  NameSolver nameSolver()
           
 void setNameSolver(NameSolver nameSolver)
           
protected  void setPropertyDecorator(PropertyDecorator propertyDecorator)
           
protected  void setValueDecorator(PropertyDecorator valueDecorator)
           
 
Methods inherited from class com.jpattern.orm.query.SmartRenderableSqlSubElement
isElementStatusChanged, renderSqlElement, renderSqlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jpattern.orm.query.RenderableSqlSubElement
renderSqlElement, renderSqlElement
 

Constructor Detail

APropertiesExpressionElement

public APropertiesExpressionElement(String firstProperty,
                                    String secondProperty)
Method Detail

setNameSolver

public void setNameSolver(NameSolver nameSolver)
Specified by:
setNameSolver in interface NameSolverConsumer

nameSolver

protected NameSolver nameSolver()

getPropertyDecorator

protected PropertyDecorator getPropertyDecorator()

setPropertyDecorator

protected void setPropertyDecorator(PropertyDecorator propertyDecorator)

getValueDecorator

protected PropertyDecorator getValueDecorator()

setValueDecorator

protected void setValueDecorator(PropertyDecorator valueDecorator)

doElementRender

public final void doElementRender(StringBuilder query)
                           throws OrmQueryFormatException
Specified by:
doElementRender in class SmartRenderableSqlSubElement
Throws:
OrmQueryFormatException

getElementStatusVersion

public final int getElementStatusVersion()
Specified by:
getElementStatusVersion in class SmartRenderableSqlSubElement

getExpressionElementKey

public abstract String getExpressionElementKey()

appendElementValues

public final void appendElementValues(List<Object> values)
Description copied from interface: RenderableSqlSubElement
Append to the list all the values of the expression's elements

Specified by:
appendElementValues in interface RenderableSqlSubElement


Copyright © 2013. All Rights Reserved.