KickJava   Java API By Example, From Geeks To Geeks.

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


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 InsertPresentation extends TKPrepQuery
7 {
8
9     public final static boolean prepared = true;
10
11     public final static String JavaDoc[] order =
12         { "PRESENTATION_ID", "PRESENTATION_NAME", "PRESENTATION_SHORTNAME",
13           "TEMPLATE_ID" };
14
15     public final static Object JavaDoc[][] types =
16         {{"PRESENTATION_NAME", new Integer JavaDoc(java.sql.Types.VARCHAR)},
17          {"PRESENTATION_SHORTNAME", new Integer JavaDoc(java.sql.Types.VARCHAR)}};
18
19     public final static boolean[] relevants = { true };
20
21     public final static String JavaDoc sqlString = "INSERT INTO PRESENTATION (PRESENTATION_ID, PRESENTATION_NAME, PRESENTATION_SHORTNAME, TEMPLATE_ID) VALUES (?, ?, ?, ?)";
22
23     public void initQuery(Connection JavaDoc con) {
24         super.initQuery(
25             con,
26             prepared,
27             order,
28             types,
29             relevants,
30             sqlString );
31     }
32
33 }
Popular Tags