数据库通用适配器:实现行粒度的数据库的转换
源代码在线查看: message.java.svn-base
package hdaty.prtds.rdgadaptor.protocol;
import java.io.Serializable;
public class Message implements Serializable{
/**
*
*/
private static final long serialVersionUID = 3L;
private int use;//判断Table多余行
private String TaskName;
private String SKind;//源数据库的类型,比如oracle,excell
private String SURL;
private String Suser;
private String Spassword;
private String DKind;//目的数据库的类型,比如oracle,excell
private String DURL;
private String SDriver;//源数据库的驱动
private String DDriver;//目的数据库的驱动
private String SSchema;
private String DSchema;
private String Duser;
private String Dpassword;
private String []S=null;
private String []D=null;
private String []SAttrb=null;
private String []DAttrb=null;
private String SDB;
private String DDB;
private String STab;
private String DTab;
private String DATE[];
private String period;//执行的周期
private String ImportWay;//执行的方式
private String condition;//执行条件
private boolean excute;//是否执行该方案
public Message() {
super();
}
public String[] getD() {
return D;
}
public void setD(String[] d) {
D = d;
}
public String[] getDAttrb() {
return DAttrb;
}
public void setDAttrb(String[] attrb) {
DAttrb = attrb;
}
public String getDDB() {
return DDB;
}
public void setDDB(String ddbname) {
DDB = ddbname;
}
public String getDpassword() {
return Dpassword;
}
public void setDpassword(String dpassword) {
Dpassword = dpassword;
}
public String getDTab() {
return DTab;
}
public void setDTab(String tab) {
DTab = tab;
}
public String getDURL() {
return DURL;
}
public void setDURL(String durl) {
DURL = durl;
}
public String getDuser() {
return Duser;
}
public void setDuser(String duser) {
Duser = duser;
}
public String[] getS() {
return S;
}
public void setS(String[] s) {
S = s;
}
public String[] getSAttrb() {
return SAttrb;
}
public void setSAttrb(String[] attrb) {
SAttrb = attrb;
}
public String getSDB() {
return SDB;
}
public void setSDB(String sdbname) {
SDB = sdbname;
}
public String getSpassword() {
return Spassword;
}
public void setSpassword(String spassword) {
Spassword = spassword;
}
public String getSTab() {
return STab;
}
public void setSTab(String tab) {
STab = tab;
}
public String getSURL() {
return SURL;
}
public void setSURL(String surl) {
SURL = surl;
}
public String getSuser() {
return Suser;
}
public void setSuser(String suser) {
Suser = suser;
}
public String getTaskName() {
return TaskName;
}
public void setTaskName(String taskName) {
TaskName = taskName;
}
public String getDSchema() {
return DSchema;
}
public void setDSchema(String schema) {
DSchema = schema;
}
public String getSSchema() {
return SSchema;
}
public void setSSchema(String schema) {
SSchema = schema;
}
public String getPeriod() {
return period;
}
public void setPeriod(String period) {
this.period = period;
}
public String getDKind() {
return DKind;
}
public void setDKind(String kind) {
DKind = kind;
}
public String getSKind() {
return SKind;
}
public void setSKind(String kind) {
SKind = kind;
}
public String getCondition() {
return condition;
}
public void setCondition(String condition) {
this.condition = condition;
}
public String getImportWay() {
return ImportWay;
}
public void setImportWay(String importWay) {
ImportWay = importWay;
}
public String[] getDATE() {
return DATE;
}
public void setDATE(String[] date) {
DATE = date;
}
public String getDDriver() {
return DDriver;
}
public void setDDriver(String driver) {
DDriver = driver;
}
public String getSDriver() {
return SDriver;
}
public void setSDriver(String driver) {
SDriver = driver;
}
public int getUse() {
return use;
}
public void setUse(int use) {
this.use = use;
}
public boolean isExcute() {
return excute;
}
public void setExcute(boolean excute) {
this.excute = excute;
}
}