Class SQLDropStatement
java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLDropStatement
SQLDropStatement represents a MySQL Drop statement
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The building part of building aSQLDropStatement
static interface
The If Exists or Name part of building aSQLDropStatement
static interface
The name part of building aSQLDropStatement
static class
A builder to create aSQLDropStatement
.static interface
The type part of building aSQLDropStatement
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
SQLDropStatement
(SQLType type, boolean ifExists, String name) Constructs a newSQLDropStatement
with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLDropStatement.Type
builder()
boolean
getName()
getType()
toString()
-
Field Details
-
type
Thetype
to be dropped -
ifExists
private final boolean ifExistsWhether to include IF EXISTS in the statement or not -
name
The name of the table/database to be dropped
-
-
Constructor Details
-
SQLDropStatement
Constructs a newSQLDropStatement
with the given parameters- Parameters:
type
- Thetype
to be droppedifExists
- Whether to include IF EXISTS in the statement or notname
- The name of the table/database to be dropped
-
-
Method Details
-
builder
- Returns:
- A new
builder
to create aSQLDropStatement
-
getType
- Returns:
- The
type
to be dropped
-
getIfExists
public boolean getIfExists()- Returns:
- Whether to include IF EXISTS in the statement or not
-
getName
- Returns:
- The name of the table/database to be dropped
-
toString
-