Class JsonEnabledColumnConfig
- java.lang.Object
-
- liquibase.serializer.AbstractLiquibaseSerializable
-
- liquibase.change.ColumnConfig
-
- liquibase.change.AddColumnConfig
-
- org.keycloak.models.map.storage.jpa.liquibase.extension.JsonEnabledColumnConfig
-
- All Implemented Interfaces:
liquibase.serializer.LiquibaseSerializable
public class JsonEnabledColumnConfig extends liquibase.change.AddColumnConfigAColumnConfigextension that contains attributes to specify a JSON column and the property to be selected from the JSON file. This config is used by extensions that need to operated on data stored in JSON columns.- Author:
- Stefan Guilhen
-
-
Constructor Summary
Constructors Constructor Description JsonEnabledColumnConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJsonColumn()Obtains the name of the column that contains JSON files.StringgetJsonProperty()Obtains the name of the property inside the JSON file.voidload(liquibase.parser.core.ParsedNode parsedNode, liquibase.resource.ResourceAccessor resourceAccessor)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, setPosition
-
Methods 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, setValueSequenceNext
-
-
-
-
Method Detail
-
getJsonColumn
public String getJsonColumn()
Obtains the name of the column that contains JSON files.- Returns:
- the JSON column name.
-
setJsonColumn
public void setJsonColumn(String jsonColumn)
Sets the name of the column that contains JSON files.- Parameters:
jsonColumn- the name of the JSON column.
-
getJsonProperty
public String getJsonProperty()
Obtains the name of the property inside the JSON file.- Returns:
- the name of the JSON property.
-
setJsonProperty
public void setJsonProperty(String jsonProperty)
Sets the name of the property inside the JSON file.- Parameters:
jsonProperty- the name of the JSON property.
-
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
-
-