public class CreateProcedureGenerator extends AbstractSqlGenerator<CreateProcedureStatement>
EMPTY_SQL, PRIORITY_DATABASE, PRIORITY_DEFAULT
COMPARATOR
Constructor and Description |
---|
CreateProcedureGenerator() |
Modifier and Type | Method and Description |
---|---|
static String |
addSchemaToText(String procedureText,
String schemaName,
String keywordBeforeName,
Database database)
Convenience method for other classes similar to this that want to be able to modify the procedure text to add the schema
|
Sql[] |
generateSql(CreateProcedureStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain)
Generate the actual Sql for the given statement and database.
|
static String |
removeTrailingDelimiter(String procedureText,
String endDelimiter) |
boolean |
supports(CreateProcedureStatement statement,
Database database)
Does this generator support the given statement/database combination? Do not validate the statement with this
method, only return if it can support it.
|
static void |
surroundWithSchemaSets(List<Sql> sql,
String schemaName,
Database database)
Convenience method for when the schemaName is set but we don't want to parse the body
|
ValidationErrors |
validate(CreateProcedureStatement statement,
Database database,
SqlGeneratorChain sqlGeneratorChain)
Validate the data contained in the SqlStatement.
|
generateRollbackStatementsIsVolatile, generateStatementsIsVolatile, getPriority, looksLikeFunctionCall, warn
public boolean supports(CreateProcedureStatement statement, Database database)
SqlGenerator
supports
in interface SqlGenerator<CreateProcedureStatement>
supports
in class AbstractSqlGenerator<CreateProcedureStatement>
public ValidationErrors validate(CreateProcedureStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
SqlGenerator
public Sql[] generateSql(CreateProcedureStatement statement, Database database, SqlGeneratorChain sqlGeneratorChain)
SqlGenerator
public static String removeTrailingDelimiter(String procedureText, String endDelimiter)
public static void surroundWithSchemaSets(List<Sql> sql, String schemaName, Database database)
Copyright © 2023 Liquibase.org. All rights reserved.