com.jpattern.orm.query.clause
Class OrmCustomSelect<T extends Select<?>>

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.OrmCustomSelect<T>
All Implemented Interfaces:
Select<T>, SqlClause<T>, NameSolverConsumer, RenderableSqlSubElement
Direct Known Subclasses:
CustomFindSelectImpl

public abstract class OrmCustomSelect<T extends Select<?>>
extends SmartRenderableSqlSubElement
implements Select<T>, NameSolverConsumer

Author:
Francesco Cina 07/lug/2011

Constructor Summary
OrmCustomSelect(String selectClause)
           
 
Method Summary
 void appendElementValues(List<Object> values)
          Append to the list all the values of the expression's elements
 void doElementRender(StringBuilder stringBuilder)
           
 int getElementStatusVersion()
           
 boolean isDistinct()
           
protected abstract  T select()
           
 T setDistinct(boolean distinct)
           
 void setNameSolver(NameSolver nameSolver)
           
 
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
 

Constructor Detail

OrmCustomSelect

public OrmCustomSelect(String selectClause)
Method Detail

doElementRender

public final void doElementRender(StringBuilder stringBuilder)
Specified by:
doElementRender in class SmartRenderableSqlSubElement

getElementStatusVersion

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

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

setNameSolver

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

setDistinct

public T setDistinct(boolean distinct)

isDistinct

public boolean isDistinct()
                   throws OrmException
Throws:
OrmException

select

protected abstract T select()


Copyright © 2013. All Rights Reserved.