Debian Codegraph @

wdoc/syntax/constraints.html

raw
1 <head>
2 <title>AceDB constraints.wrm syntax</title>
3
4 <LINK rel=stylesheet type="text/css"
5 href="../wdoc.css"
6 title="Style sheet for wdoc documents">
7
8 </head>
9
10 <body>
11 <h2>AceDB constraints.wrm syntax</h2>
12
13 <p>A constraint given on a class will be checked
14 before saving an object while parsing an ace file
15 if an object does not satisfy the constraint,
16 you will get a parse error</p>
17
18 <h3>Example</h3>
19
20 <pre>Class Paper
21 Constraints "Year:1"</pre>
22
23 <p>This will imply that you cannot edit a paper that does not have a
24 Year value, i.e. field 1 right of Year must be non void</p>
25
26 <p>any acedb query <code>LOCAL</code> to a single object is valid
27 don t use: <code>FIND</code> or <code>FOLLOW</code> constructions</p>
28
29 </body>
30 </html>