com.jpattern.orm.query.update
Class UpdateSetImpl

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlSubElement
      extended by com.jpattern.orm.query.clause.OrmSet<UpdateSet>
          extended by com.jpattern.orm.query.update.UpdateSetImpl
All Implemented Interfaces:
Set<UpdateSet>, SqlClause<UpdateSet>, NameSolverConsumer, QueryRoot, RenderableSqlQuery, RenderableSqlSubElement, UpdateQueryCommon, UpdateSet

public class UpdateSetImpl
extends OrmSet<UpdateSet>
implements UpdateSet

Author:
ufo

Constructor Summary
UpdateSetImpl(UpdateQuery query)
           
 
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
protected  UpdateSet set()
           
 UpdateQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 UpdateWhere where()
          Create or modify the "WHERE" clause of the statement.
 
Methods inherited from class com.jpattern.orm.query.clause.OrmSet
appendElementValues, doElementRender, eq, getElementStatusVersion, 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.Set
eq
 

Constructor Detail

UpdateSetImpl

public UpdateSetImpl(UpdateQuery query)
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

perform

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

Specified by:
perform in interface UpdateQueryCommon
Returns:

query

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

Specified by:
query in interface UpdateSet
Returns:

set

protected UpdateSet set()
Specified by:
set in class OrmSet<UpdateSet>

where

public UpdateWhere where()
Description copied from interface: UpdateSet
Create or modify the "WHERE" clause of the statement.

Specified by:
where in interface UpdateSet
Returns:

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.