KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > field > db > TKContentDBInterface


1 package com.teamkonzept.field.db;
2
3 import com.teamkonzept.db.*;
4 import com.teamkonzept.field.db.queries.*;
5 import de.webman.content.db.queries.*;
6 import java.sql.*;
7
8 /**
9  * ZUm Abspeichern der Contents
10  * * @author $Author: alex $
11  * @version $Revision: 1.7 $
12  */

13 public class TKContentDBInterface extends TKDBVectorInterface {
14     public static String JavaDoc[] tables =
15         { "CONTENT_NODE", "CONTENT_VALUE", "CONTENT_ATTRIBUTE" };
16
17     public static Class JavaDoc deleteQuery = null;
18
19     public static Class JavaDoc[] putQueries =
20         { TKDBContentNodePut.class, TKDBContentValuePut.class, TKDBContentAttributePut.class };
21     public static Class JavaDoc[] getQueries =
22         { TKDBContentNodeGet.class, TKDBContentValueGet.class, TKDBContentAttributeGet.class };
23
24     public static Class JavaDoc newPrimQuery = TKDBContentNew.class;
25     public static Class JavaDoc getPrimQuery = TKDBContentGet.class;
26     public static Class JavaDoc updatePrimQuery = null;
27     public static Class JavaDoc delPrimQuery = null;
28
29     public static TKContentDBInterface self = new TKContentDBInterface();
30
31     public TKContentDBInterface() {
32         super(
33             newPrimQuery, updatePrimQuery, getPrimQuery, delPrimQuery,
34             tables, putQueries, getQueries, deleteQuery);
35     }
36
37     public static void Put(TKContentDBData dbData)
38         throws SQLException
39     {
40         self.putEntry(dbData);
41     }
42
43     public static void Get(TKContentDBData dbData)
44         throws SQLException
45     {
46         self.getEntry(dbData);
47     }
48
49     public static void Del(TKContentDBData dbData)
50         throws SQLException
51     {
52         self.delEntry(dbData);
53     }
54
55     public static void New(TKContentDBData dbData)
56         throws SQLException
57     {
58         self.newEntry(dbData);
59     }
60
61 }
62
Popular Tags