org.sql.generation.api.grammar.builders.modification
Interface UpdateBySearchBuilder

All Superinterfaces:
AbstractBuilder<UpdateBySearch>

public interface UpdateBySearchBuilder
extends AbstractBuilder<UpdateBySearch>

This builder builds statements updating rows matching search condition (UPDATE table SET set-clauses [WHERE searchCondition ]).

Author:
Stanislav Muhametsin
See Also:
SetClause, BooleanBuilder

Method Summary
 UpdateBySearchBuilder addSetClauses(SetClause... clauses)
          Adds the clause to the set-clause list of this UPDATE statement.
 List<SetClause> getSetClauses()
          Returns the list of set clauses which has been added to this builder.
 BooleanBuilder getWhereBuilder()
          Returns the builder for search condition for this UPDATE statement (boolean expression after WHERE).
 UpdateBySearchBuilder setTargetTable(TargetTable table)
          Sets the target table for this UPDATE statement.
 
Methods inherited from interface org.sql.generation.api.grammar.builders.AbstractBuilder
createExpression
 

Method Detail

setTargetTable

UpdateBySearchBuilder setTargetTable(TargetTable table)
Sets the target table for this UPDATE statement.

Parameters:
table - The target table for this UPDATE statement.
Returns:
This builder.

getWhereBuilder

BooleanBuilder getWhereBuilder()
Returns the builder for search condition for this UPDATE statement (boolean expression after WHERE). The search condition is optional.

Returns:
The builder for search condition for this UPDATE statement.

addSetClauses

UpdateBySearchBuilder addSetClauses(SetClause... clauses)
Adds the clause to the set-clause list of this UPDATE statement.

Parameters:
clauses - The set-clauses for this UPDATE statement.
Returns:
This builder.

getSetClauses

List<SetClause> getSetClauses()
Returns the list of set clauses which has been added to this builder.

Returns:
The list of set clauses which has been added to this builder.


Copyright © 2010-2011. All Rights Reserved.