01: package com.teamkonzept.webman.mainint.db.queries.sitetree;
02:
03: import java.sql.*;
04:
05: import com.teamkonzept.db.*;
06:
07: /**
08: * CsDelOnStSub.java
09: *
10: * Description: <describe the CsDelOnStSub class here>
11: * @author marwan
12: * @version
13: */
14:
15: public class CsDelOnStSub extends TKPrepQuery {
16:
17: public final static boolean isPrepared = true;
18:
19: public final static String[] paramOrder = { SITE_NODE_ID,
20: SITE_NODE_ID };
21:
22: public final static Object[][] paramTypes = null;
23:
24: public final static boolean[] setRelevants = null;
25:
26: public final static String sqlString =
27:
28: /* CsDelOnStSub */
29: " DELETE FROM CONTENT_SELECTION "
30: + " WHERE SELECTION_ID IN "
31: + " ( "
32: + " SELECT PG_SELECTION_ID "
33: + " FROM SITE_TREE "
34: + " WHERE "
35: + " LEFT_NR >= (SELECT LEFT_NR FROM SITE_TREE WHERE SITE_NODE_ID = ?) " /* ? SITE_NODE_ID */
36: + " AND "
37: + " RIGHT_NR <= (SELECT RIGHT_NR FROM SITE_TREE WHERE SITE_NODE_ID = ?) " /* ? SITE_NODE_ID */
38: + " ) ";
39:
40: public void initQuery(Connection con) {
41: super .initQuery(con, isPrepared, paramOrder, paramTypes,
42: setRelevants, sqlString);
43: }
44:
45: }
46:
47: /* @(#)CsDelOnStSub.java */
|