KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > presentation > InsertPresentationComponent


1 package com.teamkonzept.webman.mainint.db.queries.presentation;
2
3 import java.sql.Connection JavaDoc;
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 JavaDoc[] 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 JavaDoc[][] types = {
21         { "INTEGRATION_NAME", new Integer JavaDoc(java.sql.Types.VARCHAR)},
22         { "INTEGRATION_SHORTNAME", new Integer JavaDoc(java.sql.Types.VARCHAR)}
23     };
24
25     public final static boolean[] relevants = { true };
26
27     public final static String JavaDoc 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 JavaDoc con) {
33         super.initQuery(
34             con,
35             prepared,
36             order,
37             types,
38             relevants,
39             sqlString );
40     }
41
42 }
Popular Tags