01: package com.teamkonzept.field.db;
02:
03: import com.teamkonzept.db.*;
04: import com.teamkonzept.field.db.queries.*;
05: import de.webman.content.db.queries.*;
06: import java.sql.*;
07:
08: /**
09: * ZUm Abspeichern der Contents
10: * * @author $Author: alex $
11: * @version $Revision: 1.7 $
12: */
13: public class TKContentDBInterface extends TKDBVectorInterface {
14: public static String[] tables = { "CONTENT_NODE", "CONTENT_VALUE",
15: "CONTENT_ATTRIBUTE" };
16:
17: public static Class deleteQuery = null;
18:
19: public static Class[] putQueries = { TKDBContentNodePut.class,
20: TKDBContentValuePut.class, TKDBContentAttributePut.class };
21: public static Class[] getQueries = { TKDBContentNodeGet.class,
22: TKDBContentValueGet.class, TKDBContentAttributeGet.class };
23:
24: public static Class newPrimQuery = TKDBContentNew.class;
25: public static Class getPrimQuery = TKDBContentGet.class;
26: public static Class updatePrimQuery = null;
27: public static Class delPrimQuery = null;
28:
29: public static TKContentDBInterface self = new TKContentDBInterface();
30:
31: public TKContentDBInterface() {
32: super (newPrimQuery, updatePrimQuery, getPrimQuery,
33: delPrimQuery, tables, putQueries, getQueries,
34: deleteQuery);
35: }
36:
37: public static void Put(TKContentDBData dbData) throws SQLException {
38: self.putEntry(dbData);
39: }
40:
41: public static void Get(TKContentDBData dbData) throws SQLException {
42: self.getEntry(dbData);
43: }
44:
45: public static void Del(TKContentDBData dbData) throws SQLException {
46: self.delEntry(dbData);
47: }
48:
49: public static void New(TKContentDBData dbData) throws SQLException {
50: self.newEntry(dbData);
51: }
52:
53: }
|