KickJava   Java API By Example, From Geeks To Geeks.

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


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

5 package com.teamkonzept.webman.mainint.db.queries;
6
7 import java.sql.*;
8
9 import com.teamkonzept.db.*;
10
11 /*
12  * TKDBTmplUpdate
13  * input "TEMPLATE_NAME", "TEMPLATE_ID"
14  * output none
15  * Updated den TEMPLATE_NAME fuer eine bestimmte TEMPLATE_ID
16  */

17 public class TKDBTmplUpdate extends TKPrepQuery{
18
19     public final static boolean isPrepared =
20         true;
21     
22     public final static String JavaDoc[] paramOrder =
23         { "TEMPLATE_NAME", "TEMPLATE_ID" };
24     
25     public final static Object JavaDoc[][] paramTypes =
26         {{"TEMPLATE_NAME", new Integer JavaDoc(Types.VARCHAR)}};
27         
28     public final static boolean[] setRelevants =
29         { false };
30         
31     public final static String JavaDoc sqlString =
32         "UPDATE " +
33         " TEMPLATE " +
34         "SET " +
35         " TEMPLATE_NAME = ? " +
36         "WHERE " +
37         " TEMPLATE_ID = ? ";
38         
39     public void initQuery(Connection con) {
40         super.initQuery(
41             con,
42             isPrepared,
43             paramOrder,
44             paramTypes,
45             setRelevants,
46             sqlString );
47     }
48 }
49
50
Popular Tags