KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > sitetree > ContSelInsert


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/sitetree/Attic/ContSelInsert.java,v 1.2 2000/12/13 11:29:31 marwan Exp $
3  *
4  */

5 package com.teamkonzept.webman.mainint.db.queries.sitetree;
6
7 import java.sql.*;
8
9 import com.teamkonzept.db.*;
10
11
12 public class ContSelInsert extends TKPrepQuery {
13     public final static boolean isPrepared =
14         true;
15     
16     public final static String JavaDoc[] paramOrder =
17         {
18             SELECTION_ID,
19             SELECTION_TYPE,
20             SELECTION_DATA
21         };
22     
23     public final static Object JavaDoc[][] paramTypes =
24     {
25         { SELECTION_DATA, new Integer JavaDoc(Types.VARCHAR) },
26         { SELECTION_TYPE, new Integer JavaDoc(Types.VARCHAR) }
27     };
28     public final static boolean[] setRelevants =
29         null;
30         
31     public final static String JavaDoc sqlString =
32         
33             " insert into CONTENT_SELECTION " +
34             " (SELECTION_ID, SELECTION_TYPE, SELECTION_DATA ) "+
35             " values (?,?,?) ";
36     
37     public void initQuery(Connection con) {
38         super.initQuery(
39             con,
40             isPrepared,
41             paramOrder,
42             paramTypes,
43             setRelevants,
44             sqlString );
45     }
46 }
47
48
49
Popular Tags