KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/TKDBTmplGet.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  * TKDBTmplGet
13  * input TEMPLATE_ID
14  * output (TEMPLATE_ID, TEMPLATE_NAME)
15  */

16 public class TKDBTmplGet extends TKPrepQuery{
17
18     public final static boolean isPrepared =
19         true;
20     
21     public final static String JavaDoc[] paramOrder =
22         { "TEMPLATE_ID" };
23     
24     public final static Object JavaDoc[][] paramTypes =
25         null;
26         
27     public final static boolean[] setRelevants =
28         { true };
29         
30     public final static String JavaDoc sqlString =
31         "SELECT " +
32         " TEMPLATE_ID, TEMPLATE_NAME " +
33         "FROM " +
34         " TEMPLATE " +
35         "WHERE " +
36         " TEMPLATE_ID = ?";
37
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