|
|
|
@ -5,7 +5,7 @@ import com.fr.base.TableData;
|
|
|
|
|
import com.fanruan.api.conf.HolderKit; |
|
|
|
|
import com.fr.config.holder.factory.XmlHolders; |
|
|
|
|
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.fanruan.api.database.nameDatabase.NameDatabaseConnection; |
|
|
|
|
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)) { |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
} else if ("Query".equals(tmpName)) { |
|
|
|
@ -140,7 +140,7 @@ public class RedisTableData extends AbstractParameterTableData {
|
|
|
|
|
super.writeXML(writer); |
|
|
|
|
XmlKit.writeXMLable(writer, dbIndex.get(), OrderValue.XML_TAG); |
|
|
|
|
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("Script").textNode(getScript()).end(); |
|
|
|
|