Class SQLDeleteStatement.SQLDeleteStatementBuilder
java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLDeleteStatement.SQLDeleteStatementBuilder
- All Implemented Interfaces:
 SQLDeleteStatement.Table,SQLDeleteStatement.WhereStatementAndBuild
- Enclosing class:
 - SQLDeleteStatement
 
public static class SQLDeleteStatement.SQLDeleteStatementBuilder
extends Object
implements SQLDeleteStatement.Table, SQLDeleteStatement.WhereStatementAndBuild
A builder used to build a 
     
SQLDeleteStatement. It takes the following parameters:
 | Parameter Name | Description | Default or Required | 
|---|---|---|
| table | The table to delete from | 
         Required | 
| whereStatement | The where statement to use for what to delete | 
         Defaults to null | 
- Version:
 - Alpha v.0.3
 - Author:
 - Logan Ferree (Tadukoo)
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TableRefThetableto delete fromprivate ConditionalThewhere statementto use for what to delete - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newSQLDeleteStatementwith the given parametersprivate voidThrows an IllegalArgumentException if any errors occur in the parameters setwhereStatement(Conditional whereStatement)  
- 
Field Details
- 
table
Thetableto delete from - 
whereStatement
Thewhere statementto use for what to delete 
 - 
 - 
Constructor Details
- 
SQLDeleteStatementBuilder
private SQLDeleteStatementBuilder()Not allowed to instantiate outsideSQLDeleteStatement 
 - 
 - 
Method Details
- 
table
- Specified by:
 tablein interfaceSQLDeleteStatement.Table- Parameters:
 table- Thetableto delete from- Returns:
 - this, to continue building
 
 - 
whereStatement
- Specified by:
 whereStatementin interfaceSQLDeleteStatement.WhereStatementAndBuild- Parameters:
 whereStatement- Thewhere statementto use for what to delete- Returns:
 - this, to continue building
 
 - 
checkForErrors
private void checkForErrors()Throws an IllegalArgumentException if any errors occur in the parameters set - 
build
Builds a newSQLDeleteStatementwith the given parameters- Specified by:
 buildin interfaceSQLDeleteStatement.WhereStatementAndBuild- Returns:
 - The newly built 
SQLDeleteStatement 
 
 -