liquibase.ext.databricks.change.alterViewProperties.AlterViewPropertiesChangeDatabricks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-databricks Show documentation
Show all versions of liquibase-databricks Show documentation
Liquibase Extension for Databricks.
The newest version!
package liquibase.ext.databricks.change.alterViewProperties;
import liquibase.change.DatabaseChange;
import liquibase.change.DatabaseChangeProperty;
import liquibase.database.Database;
import liquibase.ext.databricks.change.AbstractAlterPropertiesChangeDatabricks;
import liquibase.servicelocator.PrioritizedService;
import liquibase.statement.SqlStatement;
import lombok.Setter;
@Setter
@DatabaseChange(name = "alterViewProperties", description = "Alter View Properties", priority = PrioritizedService.PRIORITY_DATABASE)
public class AlterViewPropertiesChangeDatabricks extends AbstractAlterPropertiesChangeDatabricks {
private static final String CHANGE_TYPE_SUBJECT = "View";
private String viewName;
@Override
protected String getNoPropertiesErrorMessage() {
return applySubjectToErrorPattern(CHANGE_TYPE_SUBJECT);
}
@Override
public String getConfirmationMessage() {
return getConfirmationMessage(getViewName());
}
@Override
public SqlStatement[] generateStatements(Database database) {
return generateStatements(new AlterViewPropertiesStatementDatabricks(getCatalogName(), getSchemaName(), getViewName()));
}
@DatabaseChangeProperty
public String getViewName() {
return viewName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy