You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
817 B
26 lines
817 B
package com.fanruan.api.database; |
|
import com.fr.data.core.DataCoreXmlUtils; |
|
import com.fr.data.impl.Connection; |
|
import com.fr.stable.xml.XMLPrintWriter; |
|
import com.fr.stable.xml.XMLableReader; |
|
import com.fr.file.DatasourceManager; |
|
|
|
public class DatabaseKit { |
|
/** |
|
* 读取connection对象 |
|
* @param reader XMLableReader对象 |
|
* @return Connection对象 |
|
* |
|
*/ |
|
public static Connection readXMLConnectionMap(XMLableReader reader) { |
|
return DataCoreXmlUtils.readXMLConnectionMap(reader); |
|
} |
|
/** |
|
* 写connection对象 |
|
* @param writer XMLPrintWriter对象 |
|
* @param connection Connection对象 |
|
*/ |
|
public static void writeXMLConnection(XMLPrintWriter writer, Connection connection) { |
|
DataCoreXmlUtils.writeXMLConnection(writer, connection); |
|
} |
|
}
|
|
|