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