01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/publishing/markups/db/queries/TKMarkupParamDefinitionUpdate.java,v 1.6 2001/11/06 16:18:36 markus Exp $
03: *
04: */
05: package com.teamkonzept.publishing.markups.db.queries;
06:
07: import java.sql.*;
08:
09: import com.teamkonzept.db.*;
10:
11: /**
12: * @author
13: * @version
14: */
15: public class TKMarkupParamDefinitionUpdate extends TKPrepQuery {
16:
17: public final static boolean ISPREPARED = true;
18:
19: public final static String[] PARAMORDER = { "NAME",
20: "SELECTION_DATA", "SELECTION_CLASS_ID",
21: "IS_CASE_SENSITIVE", "DEFAULT_VALUE", "PARAMETER_ID" };
22:
23: public final static Object[][] PARAMTYPES = {
24: { "NAME", new Integer(Types.VARCHAR) },
25: { "DEFAULT_VALUE", new Integer(Types.VARCHAR) } };
26:
27: public final static boolean[] SETRELEVANTS = { false };
28:
29: public final static String SQLSTRING =
30:
31: "UPDATE TEXT_ATTRIBUTE_PARAM " + "SET " + " NAME = ?, "
32: + " SELECTION_DATA = ?, " + " SELECTION_CLASS_ID = ?, "
33: + " IS_CASE_SENSITIVE = ?, " + " DEFAULT_VALUE = ? "
34: + "WHERE " + " PARAMETER_ID = ? ";
35:
36: public void initQuery(Connection con) {
37: super.initQuery(con, ISPREPARED, PARAMORDER, PARAMTYPES,
38: SETRELEVANTS, SQLSTRING);
39: }
40: }
|