KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > JahiaDBDOMObject


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// JahiaDBDOMObject
15
//
16
// NK 25.07.2001
17
//
18

19 package org.jahia.data;
20
21 import java.sql.ResultSet JavaDoc;
22 import java.sql.SQLException JavaDoc;
23
24 import org.jahia.exceptions.JahiaException;
25 import org.jahia.utils.DBRowDataFilter;
26 import org.jahia.utils.xml.DB2DOM;
27
28
29 /**
30  * A DB DOM Object
31  *
32  * @author Khue Nguyen
33  * @version 1.0
34  */

35 public class JahiaDBDOMObject extends JahiaDOMObject {
36
37     private static final String JavaDoc CLASS_NAME = "JahiaDOMObject";
38
39     private DB2DOM dbDOM = null;
40
41     //--------------------------------------------------------------------------
42
/**
43      * JahiaDBDOMObject
44      *
45      *
46      * @auhtor NK
47      */

48     public JahiaDBDOMObject()
49     throws JahiaException {
50
51         dbDOM = new DB2DOM();
52         xmlDoc = dbDOM.getDocument();
53     }
54
55     //--------------------------------------------------------------------------
56
/**
57      * Append a table in the document
58      *
59      * @param String tableName used to generate the <table name="tabName"> tag.
60      * @param ResultSet rs
61      * @see org.jahia.utils.xml.DB2DOM.java
62      *
63      * @auhtor NK
64      */

65     public void addTable( String JavaDoc tableName, ResultSet JavaDoc rs, DBRowDataFilter filter )
66     throws JahiaException,SQLException JavaDoc {
67
68         dbDOM.addTable(tableName,rs, filter);
69     }
70
71     //--------------------------------------------------------------------------
72
/**
73      * Append a table in the document
74      *
75      * @param String tableName used to generate the <table name="tabName"> tag.
76      * @param ResultSet rs
77      * @see org.jahia.utils.xml.DB2DOM.java
78      *
79      * @auhtor NK
80      */

81     public void addTable( String JavaDoc tableName, ResultSet JavaDoc rs)
82     throws JahiaException,SQLException JavaDoc {
83
84         dbDOM.addTable(tableName,rs, null);
85     }
86
87 }
88
Popular Tags