Deliverables database table - TaskDepender

Deliverables database table

From TaskDepender
Jump to: navigation, search
(Definition)
Line 47: Line 47:
 
=== Actions ===
 
=== Actions ===
 
* [[Create deliverables database table]]: When a new project is created, the deliverables table is created. Because of the reference to the task (see [[#Constraints|"Constraints"]], the deliverables table must be created ''after'' the [[Tasks database table|tasks table]].
 
* [[Create deliverables database table]]: When a new project is created, the deliverables table is created. Because of the reference to the task (see [[#Constraints|"Constraints"]], the deliverables table must be created ''after'' the [[Tasks database table|tasks table]].
 
+
* [[Insert into the deliverables database table]]
=== Insert ===
+
 
A deliverable can only be inserted in the current diagram, so in the current container. Therefore, when inserting a deliverable, the <tt>ContainerId</tt> os filled in by using the id of the current container as stored in the [[State variables database table|state-variables table]].
 
A deliverable can only be inserted in the current diagram, so in the current container. Therefore, when inserting a deliverable, the <tt>ContainerId</tt> os filled in by using the id of the current container as stored in the [[State variables database table|state-variables table]].
  
=== Update ===
+
* [[Update element in the deliverables database table]]
  
 
A deliverable can only be updated ore deleted when it is selected. The selected deliverables are listed in the [[Selected_deliverables_database table|selected deliverables table]]. This means that the user does not have to supply the id when updating or deleting a selected deliverable.
 
A deliverable can only be updated ore deleted when it is selected. The selected deliverables are listed in the [[Selected_deliverables_database table|selected deliverables table]]. This means that the user does not have to supply the id when updating or deleting a selected deliverable.
  
=== Delete ===
+
* [[Delete an element from the deliverables database table]]: Only selected deliverable can be deleted. This means that the user does not have to supply an id, but simply all selected deliverables are deleted.
 
+
Only selected deliverable can be deleted. This means that the user does not have to supply an id, but simply all selected deliverables are deleted.
+
  
=== Cut ===
+
* [[Cut an element from the deliverables database table]]
  
 
As described in [[Cut selected elements|"Cut selected elements"]], selected elements can be 'cut to the clipboard' by setting the <tt>ContainerId</tt> column to the maximum integer value. Since the <tt>Id</tt> of a deliverable is stored in a [[Types|<tt>uint32</tt>]], this value is explicitly set to 4294967295 (=2<sup>32</sup>).
 
As described in [[Cut selected elements|"Cut selected elements"]], selected elements can be 'cut to the clipboard' by setting the <tt>ContainerId</tt> column to the maximum integer value. Since the <tt>Id</tt> of a deliverable is stored in a [[Types|<tt>uint32</tt>]], this value is explicitly set to 4294967295 (=2<sup>32</sup>).
  
=== Paste ===
+
* [[Paste an element from the deliverables database table]]
  
 
As described in [[Paste elements|"Paste elements"]], elements can be pasted into the current diagram by setting the <tt>ContainerId</tt> column to the current container. As follows from the previous section, this is done by finding all the deliverables that have this <tt>ContainerId</tt> set to the maximum integer value of 4294967295.
 
As described in [[Paste elements|"Paste elements"]], elements can be pasted into the current diagram by setting the <tt>ContainerId</tt> column to the current container. As follows from the previous section, this is done by finding all the deliverables that have this <tt>ContainerId</tt> set to the maximum integer value of 4294967295.

Revision as of 19:52, 29 November 2011

Personal tools