KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > webman > mainint > db > queries > postgresql > TKDBSiteDocClone


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/postgresql/Attic/TKDBSiteDocClone.java,v 1.2 2001/11/30 18:05:20 markus Exp $
3  *
4  */

5 package com.teamkonzept.webman.mainint.db.queries.postgresql;
6
7 import java.sql.*;
8
9 import com.teamkonzept.db.*;
10 //import com.teamkonzept.webman.mainint.db.queries.sitetree.postgresql.CreateProcAdjustRefs;
11
import com.teamkonzept.webman.mainint.db.queries.sitetree.SdNextIdx;
12 import com.teamkonzept.webman.mainint.db.queries.sitetree.SdInsertNew;
13 import com.teamkonzept.webman.mainint.db.queries.sitetree.DrCloneOnSd;
14 import com.teamkonzept.webman.mainint.db.queries.sitetree.postgresql.DrUpdateRelRefs;
15 import com.teamkonzept.webman.mainint.db.queries.sitetree.postgresql.DcCsCloneOnSd;
16 import com.teamkonzept.webman.mainint.db.queries.sitetree.SdGet;
17
18 /**
19  * TKDBSiteDocClone
20  * input -> PK: NODE_ID, NODE_DOC_IDX vom zu clonenden Document
21  * input -> vom neuen SITE_NODE_ID, PRESENTATION_ID, DOCUMENT_NAME,
22  * DOCUMENT_SHORTNAME, INHERITABLE
23  * ouput neuer Datensatz
24  *
25  *
26  * required parameters:
27  * NODE_ID
28  * NODE_DOC_IDX
29  * SITE_NODE_ID
30  * PRESENTATION_ID
31  * DOCUMENT_NAME
32  * DOCUMENT_SHORTNAME
33  * DOCUMENT_TYPE
34  * INHERITABLE
35  *
36  * optional parameters
37  * EXTERNAL_URL
38  * INHERIT_END_LEVEL,
39  * INHERIT_BEGIN_LEVEL
40  *
41  * @author
42  * @version
43  */

44
45 public class TKDBSiteDocClone extends CompositeQuery
46 {
47     protected void initConcreteCompositeQuery() throws SQLException
48     {
49
50     /* create procedure for adjusting relative references of a certain DOCUMENT_REFERENCE record */
51 // registerQuery(CreateProcAdjustRefs.class);
52

53     /* new idx */
54     registerQuery(SdNextIdx.class);
55
56     /* new SITE_DOCUMENT record */
57     registerQuery(SdInsertNew.class);
58
59     /* clone DOCUMENT_REFERENCE */
60     registerQuery(DrCloneOnSd.class);
61
62     /* updates references that belong to a certain site_document */
63     registerQuery(DrUpdateRelRefs.class);
64
65
66     /* clone DOCUMENT_CONTENT and CONTENT_SELECTION */
67     registerQuery(DcCsCloneOnSd.class);
68
69     /* select the new SITE_DOCUMENT */
70     registerQuery(SdGet.class);
71
72     setDefaultParameterPropagation();
73
74     }
75 }
76
Popular Tags