Class GeneratedColumnStatement
- java.lang.Object
- 
- liquibase.statement.AbstractSqlStatement
- 
- liquibase.statement.core.AddColumnStatement
- 
- org.keycloak.models.map.storage.jpa.liquibase.extension.GeneratedColumnStatement
 
 
 
- 
- All Implemented Interfaces:
- liquibase.statement.SqlStatement
 
 public class GeneratedColumnStatement extends liquibase.statement.core.AddColumnStatementASqlStatementthat extends the standardAddColumnStatementto include properties to either identify the JSON column and JSON property or a column name (hashOf) to be used for hashing that are to be used to generated the values for the column being added.- Author:
- Stefan Guilhen
 
- 
- 
Constructor SummaryConstructors Constructor Description GeneratedColumnStatement(List<GeneratedColumnStatement> statements)GeneratedColumnStatement(liquibase.statement.core.AddColumnStatement statement, String jsonColumn, String jsonProperty, String hashOf)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHashOf()Obtains the column name (hashOf) to be used as the value for hashing for the new column.StringgetJsonColumn()Obtains the name of the column that holds JSON files.StringgetJsonProperty()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.AddColumnStatementgetAddAfterColumn, 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
 
- 
 
- 
- 
- 
Constructor Detail- 
GeneratedColumnStatementpublic GeneratedColumnStatement(liquibase.statement.core.AddColumnStatement statement, String jsonColumn, String jsonProperty, String hashOf)
 - 
GeneratedColumnStatementpublic GeneratedColumnStatement(List<GeneratedColumnStatement> statements) 
 
- 
 - 
Method Detail- 
getJsonColumnpublic String getJsonColumn() Obtains the name of the column that holds JSON files.- Returns:
- the name of the JSON column.
 
 - 
getJsonPropertypublic 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.
 
 - 
getHashOfpublic String getHashOf() Obtains the column name (hashOf) to be used as the value for hashing for the new column.
 
- 
 
-