01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/field/db/queries/TKDBStructureFormIsRemoveable.java,v 1.4 2001/01/02 11:13:15 ralf Exp $
03: *
04: */
05: /**
06: * Jedes Selectstatement erhaelt eine eigene Klasse
07: */package com.teamkonzept.field.db.queries;
08:
09: import java.sql.*;
10:
11: import com.teamkonzept.db.*;
12:
13: public class TKDBStructureFormIsRemoveable extends TKPrepQuery {
14:
15: public final static boolean isPrepared = true;
16:
17: public final static String[] paramOrder = { "FORM_ID", "FORM_ID" };
18:
19: public final static Object[][] paramTypes = null;
20:
21: public final static boolean[] setRelevants = { true };
22:
23: public final static String sqlString = "SELECT 1 FROM STRUCTURED_CONTENT WHERE FORM_ID = ?"
24: + " UNION "
25: + "SELECT 1 FROM PRESENTATION_CONTENT WHERE FORM_ID = ?";
26:
27: public void initQuery(Connection con) {
28: super.initQuery(con, isPrepared, paramOrder, paramTypes,
29: setRelevants, sqlString);
30: }
31: }
|