|
|
@ -5,7 +5,7 @@ import com.fr.base.TableData; |
|
|
|
import com.fanruan.api.conf.HolderKit; |
|
|
|
import com.fanruan.api.conf.HolderKit; |
|
|
|
import com.fr.config.holder.factory.XmlHolders; |
|
|
|
import com.fr.config.holder.factory.XmlHolders; |
|
|
|
import com.fr.data.AbstractParameterTableData; |
|
|
|
import com.fr.data.AbstractParameterTableData; |
|
|
|
import com.fanruan.api.database.DatabaseKit; |
|
|
|
import com.fanruan.api.xml.XmlKit; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fanruan.api.database.nameDatabase.NameDatabaseConnection; |
|
|
|
import com.fanruan.api.database.nameDatabase.NameDatabaseConnection; |
|
|
|
import com.fanruan.api.data.ConnectionKit; |
|
|
|
import com.fanruan.api.data.ConnectionKit; |
|
|
@ -118,7 +118,7 @@ public class RedisTableData extends AbstractParameterTableData { |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (com.fr.data.impl.Connection.XML_TAG.equals(tmpName)) { |
|
|
|
} else if (com.fr.data.impl.Connection.XML_TAG.equals(tmpName)) { |
|
|
|
if (reader.getAttrAsString("class", null) != null) { |
|
|
|
if (reader.getAttrAsString("class", null) != null) { |
|
|
|
com.fr.data.impl.Connection con = DatabaseKit.readXMLConnection(reader); |
|
|
|
com.fr.data.impl.Connection con = XmlKit.readXMLConnection(reader); |
|
|
|
this.setDatabase(con); |
|
|
|
this.setDatabase(con); |
|
|
|
} |
|
|
|
} |
|
|
|
} else if ("Query".equals(tmpName)) { |
|
|
|
} else if ("Query".equals(tmpName)) { |
|
|
@ -140,7 +140,7 @@ public class RedisTableData extends AbstractParameterTableData { |
|
|
|
super.writeXML(writer); |
|
|
|
super.writeXML(writer); |
|
|
|
XmlKit.writeXMLable(writer, dbIndex.get(), OrderValue.XML_TAG); |
|
|
|
XmlKit.writeXMLable(writer, dbIndex.get(), OrderValue.XML_TAG); |
|
|
|
if (this.database.get() != null) { |
|
|
|
if (this.database.get() != null) { |
|
|
|
DatabaseKit.writeXMLConnection(writer, this.database.get()); |
|
|
|
XmlKit.writeXMLConnection(writer, this.database.get()); |
|
|
|
} |
|
|
|
} |
|
|
|
writer.startTAG("Query").textNode(getQuery()).end(); |
|
|
|
writer.startTAG("Query").textNode(getQuery()).end(); |
|
|
|
writer.startTAG("Script").textNode(getScript()).end(); |
|
|
|
writer.startTAG("Script").textNode(getScript()).end(); |
|
|
|