com.googlecode.jpattern.orm.query
Class OrmDelete

java.lang.Object
  extended by com.googlecode.jpattern.orm.query.OrmDelete
All Implemented Interfaces:
IDelete, INameSolverConsumer, IRenderableSqlObject

public class OrmDelete
extends Object
implements IDelete, INameSolverConsumer

Author:
Francesco Cina 10/lug/2011

Constructor Summary
OrmDelete(Class<?> clazz, IOrmClassToolMap ormClassToolMap, ISessionSqlPerformer session)
           
 
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.
 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
 void setNameSolver(INameSolver nameSolver)
           
 IDelete setQueryTimeout(int queryTimeout)
          Set the query timeout for the query.
 IExpression where()
          Create or modify the "WHERE" clause of the statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrmDelete

public OrmDelete(Class<?> clazz,
                 IOrmClassToolMap ormClassToolMap,
                 ISessionSqlPerformer session)
Method Detail

where

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

Specified by:
where in interface IDelete
Returns:

perform

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

Specified by:
perform in interface IDelete
Returns:

appendValues

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

Specified by:
appendValues in interface IDelete

setQueryTimeout

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

Specified by:
setQueryTimeout in interface IDelete

getQueryTimeout

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

Specified by:
getQueryTimeout in interface IDelete

setNameSolver

public void setNameSolver(INameSolver nameSolver)
Specified by:
setNameSolver in interface INameSolverConsumer

renderSql

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

Specified by:
renderSql in interface IRenderableSqlObject
Returns:

renderSql

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

Specified by:
renderSql in interface IRenderableSqlObject


Copyright © 2011. All Rights Reserved.