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 13 public class TKContentDBInterface extends TKDBVectorInterface { 14 public static String [] tables = 15 { "CONTENT_NODE", "CONTENT_VALUE", "CONTENT_ATTRIBUTE" }; 16 17 public static Class deleteQuery = null; 18 19 public static Class [] putQueries = 20 { TKDBContentNodePut.class, TKDBContentValuePut.class, TKDBContentAttributePut.class }; 21 public static Class [] getQueries = 22 { TKDBContentNodeGet.class, 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( 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 |