| java.lang.Object org.fao.geonet.kernel.XmlSerializer
XmlSerializer | public class XmlSerializer (Code) | | This class is responsible of reading and writing xml on the database. It
works on tables like (id, data, lastChangeDate)
|
Method Summary | |
public static void | delete(Dbms dbms, String table, String id) | public static String | insert(Dbms dbms, String schema, Element xml, int serial, String source, String uuid, int owner, String groupOwner) | public static String | insert(Dbms dbms, String schema, Element xml, int serial, String source, String uuid, String isTemplate, String title, int owner, String groupOwner) | public static String | insert(Dbms dbms, String schema, Element xml, int serial, String source, String uuid, String createDate, String changeDate, String isTemplate, String title, int owner, String groupOwner) | public static Element | select(Dbms dbms, String table, String id) Retrieve the xml element which id matches the given one. | public static void | update(Dbms dbms, String id, Element xml) Updates an xml element into the database. | public static void | update(Dbms dbms, String id, Element xml, String changeDate) |
insert | public static String insert(Dbms dbms, String schema, Element xml, int serial, String source, String uuid, String createDate, String changeDate, String isTemplate, String title, int owner, String groupOwner) throws SQLException(Code) | | |
select | public static Element select(Dbms dbms, String table, String id) throws Exception(Code) | | Retrieve the xml element which id matches the given one. The element is
read from 'table' and the string read is converted into xml
|
update | public static void update(Dbms dbms, String id, Element xml) throws SQLException(Code) | | Updates an xml element into the database. The new data replaces the old one
|
|
|