com.googlecode.jpattern.orm.query.expression
Class AExpressionElement

java.lang.Object
  extended by com.googlecode.jpattern.orm.query.expression.AExpressionElement
All Implemented Interfaces:
IExpressionElement, INameSolverConsumer, IRenderableSqlObject
Direct Known Subclasses:
EqExpressionElement, GeExpressionElement, GtExpressionElement, IEqExpressionElement, ILikeExpressionElement, InExpressionElement, IsNotNullExpressionElement, IsNullExpressionElement, LeExpressionElement, LikeExpressionElement, LtExpressionElement, NeExpressionElement, NInExpressionElement, NLikeExpressionElement

public abstract class AExpressionElement
extends Object
implements IExpressionElement

Author:
Francesco Cina 19/giu/2011

Constructor Summary
AExpressionElement()
           
 
Method Summary
 void appendValues(List<Object> values)
          Append to the list all the values of the expression's elements
abstract  String getExpressionElementKey()
           
 String getProperty()
           
protected  IPropertyDecorator getPropertyDecorator()
           
 Object getValue()
           
protected  IPropertyDecorator getValueDecorator()
           
 Collection<?> getValues()
           
 boolean hasValue()
           
 boolean hasValues()
           
protected  INameSolver nameSolver()
           
 String renderSql()
          Return the sql query generated by this IQuery Object
 void renderSql(StringBuilder query)
          Append to the string buffer the sql query generated by this IQuery Object
 void setNameSolver(INameSolver nameSolver)
           
 void setProperty(String property)
           
protected  void setPropertyDecorator(IPropertyDecorator propertyDecorator)
           
 void setValue(Object value)
           
protected  void setValueDecorator(IPropertyDecorator valueDecorator)
           
 void setValues(Collection<?> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AExpressionElement

public AExpressionElement()
Method Detail

setNameSolver

public void setNameSolver(INameSolver nameSolver)
Specified by:
setNameSolver in interface INameSolverConsumer

hasValue

public final boolean hasValue()

hasValues

public final boolean hasValues()

getValue

public Object getValue()

setValue

public void setValue(Object value)

getValues

public Collection<?> getValues()

setValues

public void setValues(Collection<?> values)

getProperty

public final String getProperty()

setProperty

public void setProperty(String property)

nameSolver

protected INameSolver nameSolver()

getPropertyDecorator

protected IPropertyDecorator getPropertyDecorator()

setPropertyDecorator

protected void setPropertyDecorator(IPropertyDecorator propertyDecorator)

getValueDecorator

protected IPropertyDecorator getValueDecorator()

setValueDecorator

protected void setValueDecorator(IPropertyDecorator valueDecorator)

renderSql

public void renderSql(StringBuilder query)
               throws OrmQueryFormatException
Description copied from interface: IRenderableSqlObject
Append to the string buffer the sql query generated by this IQuery Object

Specified by:
renderSql in interface IRenderableSqlObject
Throws:
OrmQueryFormatException

renderSql

public String renderSql()
                 throws OrmQueryFormatException
Description copied from interface: IRenderableSqlObject
Return the sql query generated by this IQuery Object

Specified by:
renderSql in interface IRenderableSqlObject
Returns:
Throws:
OrmQueryFormatException

getExpressionElementKey

public abstract String getExpressionElementKey()

appendValues

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

Specified by:
appendValues in interface IExpressionElement


Copyright © 2011. All Rights Reserved.