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
Modifier and TypeFieldDescriptionprivate TableRef
Thetable
to delete fromprivate Conditional
Thewhere statement
to use for what to delete -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newSQLDeleteStatement
with the given parametersprivate void
Throws an IllegalArgumentException if any errors occur in the parameters setwhereStatement
(Conditional whereStatement)
-
Field Details
-
table
Thetable
to delete from -
whereStatement
Thewhere statement
to use for what to delete
-
-
Constructor Details
-
SQLDeleteStatementBuilder
private SQLDeleteStatementBuilder()Not allowed to instantiate outsideSQLDeleteStatement
-
-
Method Details
-
table
- Specified by:
table
in interfaceSQLDeleteStatement.Table
- Parameters:
table
- Thetable
to delete from- Returns:
- this, to continue building
-
whereStatement
- Specified by:
whereStatement
in interfaceSQLDeleteStatement.WhereStatementAndBuild
- Parameters:
whereStatement
- Thewhere statement
to 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 newSQLDeleteStatement
with the given parameters- Specified by:
build
in interfaceSQLDeleteStatement.WhereStatementAndBuild
- Returns:
- The newly built
SQLDeleteStatement
-