com.jpattern.orm.query.update
Class UpdateWhereImpl

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.OrmWhere<UpdateWhere>
          extended by com.jpattern.orm.query.update.UpdateWhereImpl
All Implemented Interfaces:
SqlClause<UpdateWhere>, Where<UpdateWhere>, NameSolverConsumer, QueryRoot, RenderableSqlQuery, RenderableSqlSubElement, UpdateQueryCommon, UpdateWhere

public class UpdateWhereImpl
extends OrmWhere<UpdateWhere>
implements UpdateWhere

Author:
ufo

Constructor Summary
UpdateWhereImpl(UpdateQuery updateQuery)
           
 
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.
 UpdateQuery 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
 UpdateSet set()
          Create or modify the "SET" clause of the update statement.
 UpdateQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
protected  UpdateWhere 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

UpdateWhereImpl

public UpdateWhereImpl(UpdateQuery updateQuery)
Method Detail

query

public UpdateQuery query()
Description copied from interface: UpdateWhere
Return the root query object

Specified by:
query in interface UpdateWhere
Returns:

set

public UpdateSet set()
Description copied from interface: UpdateWhere
Create or modify the "SET" clause of the update statement.

Specified by:
set in interface UpdateWhere
Returns:

where

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

perform

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

Specified by:
perform in interface UpdateQueryCommon
Returns:

appendValues

public final 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

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

setQueryTimeout

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

Specified by:
setQueryTimeout in interface UpdateQueryCommon

getQueryTimeout

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

Specified by:
getQueryTimeout in interface UpdateQueryCommon


Copyright © 2013. All Rights Reserved.