01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/publishing/markups/db/queries/TKMarkupDefinitionUpdate.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: *
13: * @author
14: * @version
15: */
16: public class TKMarkupDefinitionUpdate extends TKPrepQuery {
17:
18: public final static boolean ISPREPARED = true;
19: public final static String[] PARAMORDER = { "NAME", "INFO",
20: "IS_ATOM", "VALIDATION_ID", "ID_PARAMETER_ID",
21: "ATTRIBUTE_ID" };
22:
23: public final static Object[][] PARAMTYPES = {
24: { "NAME", new Integer(Types.VARCHAR) },
25: { "INFO", new Integer(Types.LONGVARCHAR) } };
26:
27: public final static boolean[] SETRELEVANTS = { false };
28:
29: public final static String SQLSTRING =
30:
31: "UPDATE TEXT_ATTRIBUTE " + "SET " + " NAME = ?, " + " INFO = ?, "
32: + " IS_ATOM = ?, " + " VALIDATION_ID = ?, "
33: + " ID_PARAMETER_ID = ? " + "WHERE "
34: + " ATTRIBUTE_ID = ? ";
35:
36: public void initQuery(Connection con) {
37: super.initQuery(con, ISPREPARED, PARAMORDER, PARAMTYPES,
38: SETRELEVANTS, SQLSTRING);
39: }
40: }
|