public class DropSchema extends AbstractFragment implements SqlStatement, DropSchemaFragment
DropSchema statement.root| Constructor and Description |
|---|
DropSchema(String schemaName)
Create a new instance of an
DropSchema statement. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DropSchemaVisitor visitor)
Accept a visitor (e.g.
|
void |
cascade()
Add
CASCADE clause to a DROP SCHEMA statement. |
Cascade |
getCascade()
Get the cascade.
|
Restrict |
getRestrict()
Get the restriction.
|
String |
getSchemaName()
Get the schema name.
|
boolean |
hasIfExistsModifier()
Check whether the
IF EXISTS clause is present. |
DropSchema |
ifExists()
Add
IF EXISTS clause into a DROP SCHEMA statement. |
void |
restrict()
Add
RESTRICT clause to a DROP SCHEMA statement. |
getRootpublic DropSchema(String schemaName)
DropSchema statement.schemaName - name of the table to droppublic DropSchema ifExists()
IF EXISTS clause into a DROP SCHEMA statement.this for fluent programmingpublic void cascade()
CASCADE clause to a DROP SCHEMA statement.public void restrict()
RESTRICT clause to a DROP SCHEMA statement.public String getSchemaName()
public boolean hasIfExistsModifier()
IF EXISTS clause is present.true if IF EXISTS clause is presentpublic void accept(DropSchemaVisitor visitor)
DropSchemaFragmentaccept in interface DropSchemaFragmentvisitor - visitor to acceptCopyright © 2018–2021. All rights reserved.