Class CreateSchema
java.lang.Object
net.sf.jsqlparser.statement.create.schema.CreateSchema
- All Implemented Interfaces:
Serializable
,Model
,Statement
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StatementVisitor statementVisitor) addSchemaPath
(String... schemaPath) addSchemaPath
(Collection<String> schemaPath) boolean
addStatement
(Statement statement) Add a statement to the schema definitionThe owner of the schema.The name of the schemaThe path of the schemaThe statements executed as part of the schema creationvoid
setAuthorization
(String authorization) The owner of the schems.void
setSchemaName
(String schemaName) Set the name of the schemavoid
setSchemaPath
(List<String> schemaPath) Set the path of the schematoString()
withAuthorization
(String authorization) withSchemaName
(String schemaName) withSchemaPath
(List<String> schemaPath)
-
Field Details
-
authorization
-
schemaName
-
schemaPath
-
statements
-
-
Constructor Details
-
CreateSchema
public CreateSchema()
-
-
Method Details
-
accept
-
addStatement
Add a statement to the schema definition- Parameters:
statement
- The statement to be added- Returns:
- true if the operation was successful
-
getAuthorization
The owner of the schema.- Returns:
- Owner name
-
getSchemaName
The name of the schema- Returns:
- Schema name
-
getSchemaPath
The path of the schema- Returns:
- Schema path
-
getStatements
The statements executed as part of the schema creation- Returns:
- the statements
-
setAuthorization
The owner of the schems.- Parameters:
authorization
- Owner name
-
setSchemaName
Set the name of the schema- Parameters:
schemaName
- Schema name
-
setSchemaPath
Set the path of the schema- Parameters:
schemaPath
- Schema path
-
toString
-
withAuthorization
-
withSchemaName
-
withSchemaPath
-
addSchemaPath
-
addSchemaPath
-