104 lines
2.2 KiB
Java
104 lines
2.2 KiB
Java
package com.codechecker.cache.diff;
|
|
|
|
/**
|
|
* 一条结构变更记录。
|
|
*/
|
|
public class SchemaChange {
|
|
|
|
private Severity severity;
|
|
private ChangeType changeType;
|
|
private String keyPattern;
|
|
private String keyExpression;
|
|
private String writeLocation;
|
|
private String valueType;
|
|
private String fieldPath;
|
|
private String oldValue;
|
|
private String newValue;
|
|
private String message;
|
|
|
|
public SchemaChange(ChangeType changeType) {
|
|
this.changeType = changeType;
|
|
this.severity = changeType.getDefaultSeverity();
|
|
}
|
|
|
|
public Severity getSeverity() {
|
|
return severity;
|
|
}
|
|
|
|
public void setSeverity(Severity severity) {
|
|
this.severity = severity;
|
|
}
|
|
|
|
public ChangeType getChangeType() {
|
|
return changeType;
|
|
}
|
|
|
|
public void setChangeType(ChangeType changeType) {
|
|
this.changeType = changeType;
|
|
}
|
|
|
|
public String getKeyPattern() {
|
|
return keyPattern;
|
|
}
|
|
|
|
public void setKeyPattern(String keyPattern) {
|
|
this.keyPattern = keyPattern;
|
|
}
|
|
|
|
public String getKeyExpression() {
|
|
return keyExpression;
|
|
}
|
|
|
|
public void setKeyExpression(String keyExpression) {
|
|
this.keyExpression = keyExpression;
|
|
}
|
|
|
|
public String getWriteLocation() {
|
|
return writeLocation;
|
|
}
|
|
|
|
public void setWriteLocation(String writeLocation) {
|
|
this.writeLocation = writeLocation;
|
|
}
|
|
|
|
public String getValueType() {
|
|
return valueType;
|
|
}
|
|
|
|
public void setValueType(String valueType) {
|
|
this.valueType = valueType;
|
|
}
|
|
|
|
public String getFieldPath() {
|
|
return fieldPath;
|
|
}
|
|
|
|
public void setFieldPath(String fieldPath) {
|
|
this.fieldPath = fieldPath;
|
|
}
|
|
|
|
public String getOldValue() {
|
|
return oldValue;
|
|
}
|
|
|
|
public void setOldValue(String oldValue) {
|
|
this.oldValue = oldValue;
|
|
}
|
|
|
|
public String getNewValue() {
|
|
return newValue;
|
|
}
|
|
|
|
public void setNewValue(String newValue) {
|
|
this.newValue = newValue;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public void setMessage(String message) {
|
|
this.message = message;
|
|
}
|
|
}
|