All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.tenmg.clink.config.model.data.sync.ComplexColumn Maven / Gradle / Ivy

The newest version!
package cn.tenmg.clink.config.model.data.sync;

import cn.tenmg.clink.config.model.Clink;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;

/**
 * 同步数据复杂列
 * 
 * @author June [email protected]
 * 
 * @since 1.4.0
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "data-sync>complex-column")
public class ComplexColumn implements Column {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5170310363604724945L;
	/**
	 * 来源列名
	 */
	@XmlAttribute
	private String fromName;
	/**
	 * 来源列数据类型。如果缺省,则如果开启智能模式会自动获取目标数据类型作为来源数据类型,如果关闭智能模式则必填
	 */
	@XmlElement(name = "from-type", namespace = Clink.NAMESPACE)
	private String fromType;
	/**
	 * 目标列名。默认为来源列名
	 */
	@XmlAttribute
	private String toName;
	/**
	 * 目标列数据类型。如果缺省,则如果开启智能模式会自动获取,如果关闭智能模式则默认为来源列数据类型
	 */
	@XmlElement(name = "to-type", namespace = Clink.NAMESPACE)
	private String toType;
	/**
	 * 策略。可选值:both/from/to,both表示来源列和目标列均创建,from表示仅创建原来列,to表示仅创建目标列,默认为both。
	 */
	@XmlAttribute
	private String strategy;
	/**
	 * 自定义脚本。通常是需要进行函数转换时使用
	 */
	@XmlElement(name = "script", namespace = Clink.NAMESPACE)
	private String script;

	public String getFromName() {
		return fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	public String getFromType() {
		return fromType;
	}

	public void setFromType(String fromType) {
		this.fromType = fromType;
	}

	public String getToName() {
		return toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}

	public String getToType() {
		return toType;
	}

	public void setToType(String toType) {
		this.toType = toType;
	}

	public String getStrategy() {
		return strategy;
	}

	public void setStrategy(String strategy) {
		this.strategy = strategy;
	}

	public String getScript() {
		return script;
	}

	public void setScript(String script) {
		this.script = script;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy