01: package com.teamkonzept.webman.mainint.db.queries.sitetree;
02:
03: import java.sql.*;
04:
05: import com.teamkonzept.db.*;
06:
07: /**
08: * StDelSub.java
09: *
10: * Description: <describe the StDelSub class here>
11: * @author marwan
12: * @version
13: */
14:
15: public class StDelSub 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: /* StDelSub */
29:
30: " DELETE FROM SITE_TREE "
31: + " WHERE "
32: + " LEFT_NR >= (SELECT LEFT_NR FROM SITE_TREE WHERE SITE_NODE_ID = ? ) " /* ? SITE_NODE_ID */
33: + " AND "
34: + " RIGHT_NR <= (SELECT RIGHT_NR FROM SITE_TREE WHERE SITE_NODE_ID = ? ) " /* ? SITE_NODE_ID */
35: ;
36:
37: public void initQuery(Connection con) {
38: super .initQuery(con, isPrepared, paramOrder, paramTypes,
39: setRelevants, sqlString);
40: }
41:
42: }
43:
44: /* @(#)StDelSub.java */
|