com.jpattern.orm.query.delete
Class DeleteQueryOrm

java.lang.Object
  extended by com.jpattern.orm.query.SmartRenderableSqlQuery
      extended by com.jpattern.orm.query.delete.DeleteQueryOrm
All Implemented Interfaces:
DeleteQuery, DeleteQueryCommon, NameSolverConsumer, QueryRoot, RenderableSqlQuery

public class DeleteQueryOrm
extends SmartRenderableSqlQuery
implements DeleteQuery, NameSolverConsumer

Author:
Francesco Cina 10/lug/2011

Constructor Summary
DeleteQueryOrm(Class<?> clazz, IOrmClassToolMap ormClassToolMap, SessionSqlPerformer session, TypeFactory typeFactory)
           
 
Method Summary
 void appendValues(List<Object> values)
          Append to the list all the values of the expression's elements
 void doRender(StringBuilder stringBuilder)
           
 int getQueryTimeout()
          Return the query timeout for the query.
 int getStatusVersion()
           
 int perform()
          Perform the update and return the number of affected rows.
 void setNameSolver(NameSolver nameSolver)
           
 DeleteQuery setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 DeleteWhere where()
          Create or modify the "WHERE" clause of the statement.
 
Methods inherited from class com.jpattern.orm.query.SmartRenderableSqlQuery
isStatusChanged, renderSql, renderSql
 
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.RenderableSqlQuery
renderSql, renderSql
 

Constructor Detail

DeleteQueryOrm

public DeleteQueryOrm(Class<?> clazz,
                      IOrmClassToolMap ormClassToolMap,
                      SessionSqlPerformer session,
                      TypeFactory typeFactory)
Method Detail

where

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

Specified by:
where in interface DeleteQuery
Returns:

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:

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

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

setNameSolver

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

getStatusVersion

public int getStatusVersion()
Specified by:
getStatusVersion in class SmartRenderableSqlQuery

doRender

public final void doRender(StringBuilder stringBuilder)
Specified by:
doRender in class SmartRenderableSqlQuery


Copyright © 2013. All Rights Reserved.