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

All Superinterfaces:
AbstractBuilder<DeleteBySearch>

public interface DeleteBySearchBuilder
extends AbstractBuilder<DeleteBySearch>

This builder builds statements deleting rows matching search condition (DELETE FROM table [WHERE searchCondition ]).

Author:
Stanislav Muhametsin
See Also:
TargetTable, BooleanBuilder

Method Summary
 TargetTable getTargetTable()
          Retrieves the target table for this DELETE statement.
 BooleanBuilder getWhere()
          Returns the builder for search condition for this DELETE statement (boolean expression after WHERE).
 DeleteBySearchBuilder setTargetTable(TargetTable table)
          Sets the target table for this DELETE statement.
 
Methods inherited from interface org.sql.generation.api.grammar.builders.AbstractBuilder
createExpression
 

Method Detail

setTargetTable

DeleteBySearchBuilder setTargetTable(TargetTable table)
Sets the target table for this DELETE statement.

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

getTargetTable

TargetTable getTargetTable()
Retrieves the target table for this DELETE statement.

Returns:
The target table for this DELETE statement.

getWhere

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

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


Copyright © 2010. All Rights Reserved.