com.jpattern.orm.query.delete
Class DeleteWhereImpl

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.OrmWhere<DeleteWhere>
          extended by com.jpattern.orm.query.delete.DeleteWhereImpl
All Implemented Interfaces:
SqlClause<DeleteWhere>, Where<DeleteWhere>, DeleteQueryCommon, DeleteWhere, NameSolverConsumer, QueryRoot, RenderableSqlQuery, RenderableSqlSubElement

public class DeleteWhereImpl
extends OrmWhere<DeleteWhere>
implements DeleteWhere

Author:
ufo

Constructor Summary
DeleteWhereImpl(DeleteQuery deleteQuery)
           
 
Method Summary
 void appendValues(List<Object> values)
          Append to the list all the values of the expression's elements
 int getQueryTimeout()
          Return the query timeout for the query.
 int perform()
          Perform the update and return the number of affected rows.
 DeleteQuery query()
          Return the root query object
 String renderSql()
          Return the sql query generated by this IQuery Object
 void renderSql(StringBuilder stringBuilder)
          Append to the string buffer the sql query generated by this IQuery Object
 DeleteQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
protected  DeleteWhere where()
           
 
Methods inherited from class com.jpattern.orm.query.clause.OrmWhere
allEq, and, and, appendElementValues, doElementRender, eq, eqProperties, ge, geProperties, getElementStatusVersion, gt, gtProperties, ieq, ieqProperties, ilike, in, in, in, isNotNull, isNull, le, leProperties, like, lt, ltProperties, ne, neProperties, nin, nin, nin, nlike, not, or, or, setNameSolver
 
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.clause.Where
allEq, and, and, eq, eqProperties, ge, geProperties, gt, gtProperties, ieq, ieqProperties, ilike, in, in, in, isNotNull, isNull, le, leProperties, like, lt, ltProperties, ne, neProperties, nin, nin, nin, nlike, not, or, or
 

Constructor Detail

DeleteWhereImpl

public DeleteWhereImpl(DeleteQuery deleteQuery)
Method Detail

renderSql

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

Specified by:
renderSql in interface RenderableSqlQuery
Returns:

renderSql

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

Specified by:
renderSql in interface RenderableSqlQuery

appendValues

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

Specified by:
appendValues in interface RenderableSqlQuery

query

public DeleteQuery query()
Description copied from interface: DeleteWhere
Return the root query object

Specified by:
query in interface DeleteWhere
Returns:

where

protected DeleteWhere where()
Specified by:
where in class OrmWhere<DeleteWhere>

perform

public int perform()
Description copied from interface: DeleteQueryCommon
Perform the update and return the number of affected rows.

Specified by:
perform in interface DeleteQueryCommon
Returns:

setQueryTimeout

public DeleteQuery setQueryTimeout(int queryTimeout)
Description copied from interface: DeleteQueryCommon
Set the query timeout for the query.

Specified by:
setQueryTimeout in interface DeleteQueryCommon

getQueryTimeout

public int getQueryTimeout()
Description copied from interface: DeleteQueryCommon
Return the query timeout for the query.

Specified by:
getQueryTimeout in interface DeleteQueryCommon


Copyright © 2013. All Rights Reserved.