1 package com.teamkonzept.webman.mainint.db.queries.presentation; 2 3 import java.sql.Connection ; 4 import com.teamkonzept.db.*; 5 6 public class InsertPresentation extends TKPrepQuery 7 { 8 9 public final static boolean prepared = true; 10 11 public final static String [] order = 12 { "PRESENTATION_ID", "PRESENTATION_NAME", "PRESENTATION_SHORTNAME", 13 "TEMPLATE_ID" }; 14 15 public final static Object [][] types = 16 {{"PRESENTATION_NAME", new Integer (java.sql.Types.VARCHAR)}, 17 {"PRESENTATION_SHORTNAME", new Integer (java.sql.Types.VARCHAR)}}; 18 19 public final static boolean[] relevants = { true }; 20 21 public final static String sqlString = "INSERT INTO PRESENTATION (PRESENTATION_ID, PRESENTATION_NAME, PRESENTATION_SHORTNAME, TEMPLATE_ID) VALUES (?, ?, ?, ?)"; 22 23 public void initQuery(Connection con) { 24 super.initQuery( 25 con, 26 prepared, 27 order, 28 types, 29 relevants, 30 sqlString ); 31 } 32 33 } | Popular Tags |