public class DropSchema extends AbstractFragment implements SqlStatement, DropSchemaFragment
DropSchema statementroot| 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
|
boolean |
getIfExists()
Get true when IF EXISTS clause presents
|
Restrict |
getRestrict()
Get the restrict
|
String |
getSchemaName()
Get the schema name
|
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 statementschemaName - name of the table to droppublic DropSchema ifExists()
this for fluent programmingpublic void cascade()
public void restrict()
public String getSchemaName()
public void accept(DropSchemaVisitor visitor)
DropSchemaFragmentaccept in interface DropSchemaFragmentvisitor - visitor to acceptpublic boolean getIfExists()
Copyright © 2018–2019. All rights reserved.