01: package com.teamkonzept.webman.mainint.db.queries.duplication.oracle;
02:
03: import com.teamkonzept.db.*;
04: import com.teamkonzept.webman.mainint.DatabaseDefaults;
05:
06: import java.io.*;
07: import java.util.*;
08: import java.sql.*;
09:
10: /**
11: @author Marwan
12: */
13: public class ExecuteDuplication extends TKCallableQuery implements
14: DatabaseDefaults {
15:
16: public final static boolean isPrepared = true;
17:
18: public final static String[] paramOrder = {
19: TKDBDuplicateQuery.TEMPLATE_ROOT_ID,
20: TKDBDuplicateQuery.TARGET_ROOT_ID,
21: TKDBDuplicateQuery.NEW_CONTENT_ROOT_NAME,
22: TKDBDuplicateQuery.NEW_CONTENT_ROOT_SHORTNAME,
23: TKDBDuplicateQuery.ST_SUBTREE_ROOT_ID,
24: TKDBDuplicateQuery.ST_TARGET_ROOT_ID,
25: TKDBDuplicateQuery.NEW_SITE_ROOT_NAME,
26: TKDBDuplicateQuery.NEW_SITE_ROOT_SHORTNAME };
27:
28: public final static Object[][] paramTypes = null;
29:
30: public final static boolean[] setRelevants = null;
31:
32: public final static String sqlString =
33:
34: " begin duplication.duplicate_manager(?,?,?,?,?,?,?,?); end;";
35:
36: public void initQuery(Connection con) {
37: super.initQuery(con, isPrepared, paramOrder, paramTypes,
38: setRelevants, sqlString);
39: }
40: }
|