Class GeneratedColumnStatement

  • All Implemented Interfaces:
    liquibase.statement.SqlStatement

    public class GeneratedColumnStatement
    extends liquibase.statement.core.AddColumnStatement
    A SqlStatement that extends the standard AddColumnStatement to include properties to identify the JSON column and JSON property that are to be used to generated the values for the column being added.
    Author:
    Stefan Guilhen
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getJsonColumn()
      Obtains the name of the column that holds JSON files.
      String getJsonProperty()
      Obtains the name of the property in the JSON file whose value is to be used as the generated value for the new column.
      • Methods inherited from class liquibase.statement.core.AddColumnStatement

        getAddAfterColumn, getAddAtPosition, getAddBeforeColumn, getAutoIncrementConstraint, getCatalogName, getColumnName, getColumns, getColumnType, getComputed, getConstraints, getDefaultValue, getDefaultValueConstraintName, getRemarks, getSchemaName, getTableName, getUniqueStatementName, isAutoIncrement, isMultiple, isNullable, isPrimaryKey, isUnique, setAddAfterColumn, setAddAtPosition, setAddBeforeColumn, setComputed, setDefaultValueConstraintName, shouldValidateNullable, shouldValidatePrimaryKey, shouldValidateUnique
      • Methods inherited from class liquibase.statement.AbstractSqlStatement

        continueOnError, setContinueOnError, skipOnUnsupported
    • Constructor Detail

      • GeneratedColumnStatement

        public GeneratedColumnStatement​(liquibase.statement.core.AddColumnStatement statement,
                                        String jsonColumn,
                                        String jsonProperty)
    • Method Detail

      • getJsonColumn

        public String getJsonColumn()
        Obtains the name of the column that holds JSON files.
        Returns:
        the name of the JSON column.
      • getJsonProperty

        public String getJsonProperty()
        Obtains the name of the property in the JSON file whose value is to be used as the generated value for the new column.
        Returns:
        the name of the JSON property.