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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe building part of building aSQLDropStatementstatic interfaceThe If Exists or Name part of building aSQLDropStatementstatic interfaceThe name part of building aSQLDropStatementstatic classA builder to create aSQLDropStatement.static interfaceThe type part of building aSQLDropStatement -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSQLDropStatement(SQLType type, boolean ifExists, String name) Constructs a newSQLDropStatementwith the given parameters -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLDropStatement.Typebuilder()booleangetName()getType()toString()
-
Field Details
-
type
Thetypeto 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 newSQLDropStatementwith the given parameters- Parameters:
type- Thetypeto 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
builderto create aSQLDropStatement
-
getType
- Returns:
- The
typeto 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
-