01: package com.teamkonzept.webman.mainint.db.queries.markups;
02:
03: import java.sql.*;
04: import com.teamkonzept.db.*;
05:
06: public class InsertTextAttribute extends TKPrepQuery {
07:
08: public final static boolean isPrepared = true;
09:
10: public final static String[] paramOrder = { "ATTRIBUTE_ID", "NAME",
11: "INFO", "IS_ATOM", "VALIDATION_ID", "ID_PARAMETER_ID" };
12:
13: public final static Object[][] paramTypes = {
14: { "NAME", new Integer(Types.VARCHAR) },
15: { "INFO", new Integer(Types.LONGVARCHAR) } };
16:
17: public final static boolean[] setRelevants = { true };
18:
19: public final static String sqlString =
20:
21: "INSERT INTO TEXT_ATTRIBUTE " + "( " + " ATTRIBUTE_ID, "
22: + " NAME, " + " INFO, " + " IS_ATOM, " + " VALIDATION_ID, "
23: + " ID_PARAMETER_ID " + ") " + "VALUES (?,?,?,?,?,?)";
24:
25: public void initQuery(Connection con) {
26: super.initQuery(con, isPrepared, paramOrder, paramTypes,
27: setRelevants, sqlString);
28: }
29: }
|