KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > TKDBPresContUpdate


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/Attic/TKDBPresContUpdate.java,v 1.5 2000/05/22 15:01:48 careck Exp $
3  *
4  */

5 /**
6  * Jedes Selectstatement erhaelt eine eigene Klasse
7  */

8 package com.teamkonzept.webman.mainint.db.queries;
9
10 import java.sql.*;
11
12 import com.teamkonzept.db.*;
13
14 /*
15  * TKDBPresContUpdate
16  * input "FORM_ID",
17  * "PRESENTATION_ID", "PRESENTATION_COMPONENT_IDX"
18  * output none
19  */

20 public class TKDBPresContUpdate extends TKPrepQuery{
21
22     public final static boolean isPrepared =
23         true;
24     
25     public final static String JavaDoc[] paramOrder =
26         { "FORM_ID",
27          "PRESENTATION_ID", "PRESENTATION_COMPONENT_IDX" };
28     
29     public final static Object JavaDoc[][] paramTypes =
30         null;
31                 
32     public final static boolean[] setRelevants =
33         { false };
34         
35     public final static String JavaDoc sqlString =
36         "UPDATE " +
37         " PRESENTATION_CONTENT " +
38         "SET " +
39         " FORM_ID = ? " +
40         "WHERE " +
41         " PRESENTATION_ID = ? " +
42         "AND " +
43         " PRESENTATION_COMPONENT_IDX = ? ";
44
45     
46     public void initQuery(Connection con) {
47         super.initQuery(
48             con,
49             isPrepared,
50             paramOrder,
51             paramTypes,
52             setRelevants,
53             sqlString );
54     }
55 }
56
57
Popular Tags