KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > duplication > postgresql > TKDBContentNodeNameExtend


1 package com.teamkonzept.webman.mainint.db.queries.duplication.postgresql;
2
3 import com.teamkonzept.db.*;
4
5 import java.io.*;
6 import java.util.*;
7 import java.sql.*;
8
9 /**
10  * fügt an die Namen eines Content Knoten
11  * die Erweiterung NAME_EXT an, vorne wenn POS == 0, sonst hinten.
12  * NODE_NAME und NODE_SHORTNAME werden veraendert
13  *
14  * @author $Author: ralf $
15  * @version $Revision: 1.1 $
16  */

17 public class TKDBContentNodeNameExtend extends TKPrepQuery{
18
19     public final static boolean ISPREPARED =
20         true;
21     
22     public final static String JavaDoc[] PARAMORDER =
23         { "NAME_EXT", "POS" , "CONTENT_NODE_ID" };
24     
25     public final static Object JavaDoc[][] PARAMTYPES =
26         {{ "NAME_EXT ", new Integer JavaDoc(Types.VARCHAR) }};
27                 
28     public final static boolean[] SETRELEVANTS =
29         null;
30         
31     public final static String JavaDoc SQLSTRING =
32         "select dup__content_node_name_extend(?, ?, ?) ";
33     
34     public void initQuery(Connection con) {
35         super.initQuery(
36             con,
37             ISPREPARED,
38             PARAMORDER,
39             PARAMTYPES,
40             SETRELEVANTS,
41             SQLSTRING );
42     }
43 }
44
45
Popular Tags