cn.tenmg.clink.config.model.Jdbc Maven / Gradle / Ivy
package cn.tenmg.clink.config.model;
import java.io.Serializable;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlValue;
/**
* JDBC操作配置模型
*
* @author June [email protected]
*
* @since 1.1.4
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class Jdbc implements Operate, Serializable {
/**
*
*/
private static final long serialVersionUID = -6395425960958639543L;
@XmlAttribute
private String saveAs;
@XmlAttribute
private String when;
@XmlAttribute
private String dataSource;
@XmlAttribute
private String method;
@XmlAttribute
private String resultClass;
@XmlValue
private String script;
@Override
public String getType() {
return getClass().getSimpleName();
}
@Override
public String getSaveAs() {
return saveAs;
}
public void setSaveAs(String saveAs) {
this.saveAs = saveAs;
}
@Override
public String getWhen() {
return when;
}
public void setWhen(String when) {
this.when = when;
}
public String getDataSource() {
return dataSource;
}
public void setDataSource(String dataSource) {
this.dataSource = dataSource;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getResultClass() {
return resultClass;
}
public void setResultClass(String resultClass) {
this.resultClass = resultClass;
}
public String getScript() {
return script;
}
public void setScript(String script) {
this.script = script;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy