1 19 package org.jahia.data; 20 21 import java.sql.ResultSet ; 22 import java.sql.SQLException ; 23 24 import org.jahia.exceptions.JahiaException; 25 import org.jahia.utils.DBRowDataFilter; 26 import org.jahia.utils.xml.DB2DOM; 27 28 29 35 public class JahiaDBDOMObject extends JahiaDOMObject { 36 37 private static final String CLASS_NAME = "JahiaDOMObject"; 38 39 private DB2DOM dbDOM = null; 40 41 48 public JahiaDBDOMObject() 49 throws JahiaException { 50 51 dbDOM = new DB2DOM(); 52 xmlDoc = dbDOM.getDocument(); 53 } 54 55 65 public void addTable( String tableName, ResultSet rs, DBRowDataFilter filter ) 66 throws JahiaException,SQLException { 67 68 dbDOM.addTable(tableName,rs, filter); 69 } 70 71 81 public void addTable( String tableName, ResultSet rs) 82 throws JahiaException,SQLException { 83 84 dbDOM.addTable(tableName,rs, null); 85 } 86 87 } 88 | Popular Tags |