01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/publishing/markups/db/queries/TKMarkupParamCallPut.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 TKMarkupParamCallPut extends TKPrepQuery {
16:
17: public final static boolean ISPREPARED = true;
18:
19: public final static String[] PARAMORDER = { "ATTRIBUTE_ID",
20: "PARAMETER_ID", "NAME", "IS_OPTIONAL", "USE_DEFAULT",
21: "EDIT", "DEFAULT_VALUE" };
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: "INSERT INTO TEXT_ATTRIBUTE_SYNTAX " + "( " + " ATTRIBUTE_ID, "
32: + " PARAMETER_ID, " + " NAME, " + " IS_OPTIONAL, "
33: + " USE_DEFAULT, " + " EDIT, " + " DEFAULT_VALUE " + ") "
34: + "VALUES (?,?,?,?,?,?,?)";
35:
36: public void initQuery(Connection con) {
37: super.initQuery(con, ISPREPARED, PARAMORDER, PARAMTYPES,
38: SETRELEVANTS, SQLSTRING);
39: }
40: }
|