Skip to content

Commit

Permalink
merge: 0.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Willam2004 committed Jun 23, 2024
1 parent 1b9896f commit ba027b8
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.aliyun.fastmodel.transform.api.extension.client.property.table;

import com.alibaba.fastjson.JSON;

import com.aliyun.fastmodel.transform.api.client.dto.property.BaseClientProperty;
import com.aliyun.fastmodel.transform.api.extension.client.property.table.partition.ListClientPartition;
import org.apache.commons.lang3.StringUtils;

import static com.aliyun.fastmodel.transform.api.extension.client.property.ExtensionPropertyKey.TABLE_LIST_PARTITION;

/**
* @author 子梁
* @date 2023/12/25
*/
public class ListPartitionProperty extends BaseClientProperty<ListClientPartition> {

public ListPartitionProperty() {
this.setKey(TABLE_LIST_PARTITION.getValue());
}

@Override
public String valueString() {
return JSON.toJSONString(value);
}

@Override
public void setValueString(String value) {
if (StringUtils.isBlank(value)) {
return;
}
this.setValue(JSON.parseObject(value, ListClientPartition.class));
}
}

0 comments on commit ba027b8

Please sign in to comment.