01: /*
02: * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/webman/mainint/db/queries/Attic/TKDBSiteTreeUpdateNode.java,v 1.6 2001/08/15 13:18:49 markus Exp $
03: *
04: */
05: package com.teamkonzept.webman.mainint.db.queries;
06:
07: import java.sql.*;
08: import com.teamkonzept.webman.mainint.db.queries.sitetree.*;
09:
10: import com.teamkonzept.db.*;
11:
12: /*
13: * TKDBSiteTreeUpdateNode
14: * Update eines Nodes
15: * Input: SITE_NODE_ID (der zu akt. Knoten)
16: * "SITE_NODE_TYPE, SITE_NODE_NAME, SITE_NODE_SHORTNAME "
17: * Output: Keiner
18:
19: /**
20: required parameters:
21: SITE_NODE_ID
22: SITE_NODE_TYPE
23: SITE_NODE_NAME
24: SITE_NODE_SHORTNAME
25:
26:
27: optional parameters:
28: PG_CONTENT_NODE
29: SELECTION_TYPE
30: SELECTION_DATA
31: */
32: public class TKDBSiteTreeUpdateNode extends CompositeQuery {
33:
34: // conditional execution
35: TKQuery contSelNextID;
36: TKQuery contSelInsert;
37:
38: protected void initConcreteCompositeQuery() throws SQLException {
39: TKQuery getOldPgSel;
40: TKQuery updSt;
41: TKQuery remOldContSel;
42:
43: contSelNextID = registerQuery(ContSelNextID.class);
44: contSelInsert = registerQuery(ContSelInsert.class);
45:
46: getOldPgSel = registerQuery(StGetOldPgSel.class);
47:
48: updSt = registerQuery(StUpdate.class);
49:
50: remOldContSel = registerQuery(ContSelDelete.class);
51:
52: setRequiredParam(contSelNextID, SELECTION_TYPE);
53: setRequiredParam(contSelInsert, SELECTION_TYPE);
54: setRequiredParam(remOldContSel, OLD_PG_SELECTION_ID);
55:
56: setDefaultParameterPropagation();
57:
58: }
59: }
|