Class AddGeneratedColumnConfig
java.lang.Object
liquibase.serializer.AbstractLiquibaseSerializable
liquibase.change.ColumnConfig
liquibase.change.AddColumnConfig
org.keycloak.models.map.storage.jpa.liquibase.extension.AddGeneratedColumnConfig
- All Implemented Interfaces:
liquibase.serializer.LiquibaseSerializable
public class AddGeneratedColumnConfig
extends liquibase.change.AddColumnConfig
A
ColumnConfig extension that contains attributes either to specify
- a JSON column and the property to be selected from the JSON file
- a hashOf property with column name to be used for the generating a column with hash value of it.- Author:
- Stefan Guilhen
-
Nested Class Summary
Nested classes/interfaces inherited from class liquibase.change.ColumnConfig
liquibase.change.ColumnConfig.ValueNumericNested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
liquibase.serializer.LiquibaseSerializable.SerializationType -
Field Summary
Fields inherited from interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the column name to be used for the generating a column with hash value of it.Obtains the name of the column that contains JSON files.Obtains the name of the property inside the JSON file.voidload(liquibase.parser.core.ParsedNode parsedNode, liquibase.resource.ResourceAccessor resourceAccessor) voidSets the column name to be used for the generating a column with hash value of it.voidsetJsonColumn(String jsonColumn) Sets the name of the column that contains JSON files.voidsetJsonProperty(String jsonProperty) Sets the name of the property inside the JSON file.Methods inherited from class liquibase.change.AddColumnConfig
getAfterColumn, getBeforeColumn, getPosition, setAfterColumn, setBeforeColumn, setPositionMethods inherited from class liquibase.change.ColumnConfig
arrayFromNames, fromName, getComputed, getConstraints, getDefaultOnNull, getDefaultValue, getDefaultValueBoolean, getDefaultValueComputed, getDefaultValueConstraintName, getDefaultValueDate, getDefaultValueNumeric, getDefaultValueObject, getDefaultValueSequenceNext, getDescending, getEncoding, getGenerationType, getIncrementBy, getName, getRemarks, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getStartWith, getType, getValue, getValueBlobFile, getValueBoolean, getValueClobFile, getValueComputed, getValueDate, getValueNumeric, getValueObject, getValueSequenceCurrent, getValueSequenceNext, hasDefaultValue, isAutoIncrement, loadConstraints, setAutoIncrement, setComputed, setConstraints, setDefaultOnNull, setDefaultValue, setDefaultValueBoolean, setDefaultValueBoolean, setDefaultValueComputed, setDefaultValueConstraintName, setDefaultValueDate, setDefaultValueDate, setDefaultValueNumeric, setDefaultValueNumeric, setDefaultValueSequenceNext, setDescending, setEncoding, setGenerationType, setIncrementBy, setName, setName, setRemarks, setStartWith, setType, setValue, setValueBlobFile, setValueBoolean, setValueBoolean, setValueClobFile, setValueComputed, setValueDate, setValueDate, setValueNumeric, setValueNumeric, setValueSequenceCurrent, setValueSequenceNextMethods inherited from class liquibase.serializer.AbstractLiquibaseSerializable
convertEscaped, getSerializableFieldDataTypeClass, getSerializableFieldDataTypeClassParameters, getSerializableFieldNamespace, getSerializableFields, serialize, serializeValue, setSerializableFieldValue, shouldAutoLoad
-
Constructor Details
-
AddGeneratedColumnConfig
public AddGeneratedColumnConfig()
-
-
Method Details
-
getJsonColumn
Obtains the name of the column that contains JSON files.- Returns:
- the JSON column name.
-
setJsonColumn
Sets the name of the column that contains JSON files.- Parameters:
jsonColumn- the name of the JSON column.
-
getJsonProperty
Obtains the name of the property inside the JSON file.- Returns:
- the name of the JSON property.
-
setJsonProperty
Sets the name of the property inside the JSON file.- Parameters:
jsonProperty- the name of the JSON property.
-
getHashOf
Obtains the column name to be used for the generating a column with hash value of it.- Returns:
- the name of the column
-
setHashOf
Sets the column name to be used for the generating a column with hash value of it.- Parameters:
hashOf- the column name for hash
-
load
public void load(liquibase.parser.core.ParsedNode parsedNode, liquibase.resource.ResourceAccessor resourceAccessor) throws liquibase.parser.core.ParsedNodeException - Specified by:
loadin interfaceliquibase.serializer.LiquibaseSerializable- Overrides:
loadin classliquibase.change.AddColumnConfig- Throws:
liquibase.parser.core.ParsedNodeException
-