Package liquibase.change
Annotation Type DatabaseChangeProperty
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(DatabaseChangeProperties.class)
public @interface DatabaseChangeProperty
Annotation used by
AbstractChange
to declare ChangeParameterMetaData
information.
The annotation should be placed on the read method.
This annotation should not be checked for outside AbstractChange, if any code is trying to determine the
metadata provided by this annotation, it should get it from
ChangeFactory.getChangeMetaData(Change)
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Value to put intoChangeParameterMetaData.getDescription()
Value to put intoChangeParameterMetaData.getExampleValue(Database)
boolean
If false, this field or method will not be included inChangeParameterMetaData
Value to put intoChangeParameterMetaData.getMustEqualExisting()
String[]
Value to put intoChangeParameterMetaData.getRequiredForDatabase()
Format to use when serializing this Change via aChangeLogSerializer
.Value to put intoliquibase.change.ChangeParameterMetaData#getSince()
String[]
Value to put intoChangeParameterMetaData.getSupportedDatabases()
The checksum version that this annotation applies to.
-
Element Details
-
description
String descriptionValue to put intoChangeParameterMetaData.getDescription()
- Default:
- ""
-
exampleValue
String exampleValueValue to put intoChangeParameterMetaData.getExampleValue(Database)
- Default:
- ""
-
since
String sinceValue to put intoliquibase.change.ChangeParameterMetaData#getSince()
- Default:
- ""
-
isChangeProperty
boolean isChangePropertyIf false, this field or method will not be included inChangeParameterMetaData
- Default:
- true
-
requiredForDatabase
String[] requiredForDatabaseValue to put intoChangeParameterMetaData.getRequiredForDatabase()
- Default:
- {"COMPUTE"}
-
supportsDatabase
String[] supportsDatabaseValue to put intoChangeParameterMetaData.getSupportedDatabases()
- Default:
- {"COMPUTE"}
-
mustEqualExisting
String mustEqualExistingValue to put intoChangeParameterMetaData.getMustEqualExisting()
- Default:
- ""
-
serializationType
LiquibaseSerializable.SerializationType serializationTypeFormat to use when serializing this Change via aChangeLogSerializer
.- Default:
- NAMED_FIELD
-
version
ChecksumVersion[] versionThe checksum version that this annotation applies to. This can be omitted, and it is assumed that the annotation applies to all checksum versions. If a version is applied to some, but not all of theDatabaseChangeProperty
annotations on a particular property, the most specific matching annotation is selected. For example, if a particular property has:- Default:
- {}
-
alternatePropertyNames
String[] alternatePropertyNames- Default:
- {}
-