1 package org.melati.poem.test;
2
3 import org.melati.poem.AccessPoemException;
4 import org.melati.poem.test.generated.ProtectedBase;
5
6 /**
7 * Melati POEM generated, programmer modifiable stub for a
8 * <code>Persistent</code> <code>Protected</code> object.
9 *
10 * <p>
11 * Description: A protected table.
12 * </p>
13 *
14 * <table>
15 * <caption> Field summary for SQL table <code>Protected</code>
16 * </caption>
17 * <tr>
18 * <th>Name</th>
19 * <th>Type</th>
20 * <th>Description</th>
21 * </tr>
22 * <tr>
23 * <td> id </td>
24 * <td> Integer </td>
25 * <td> </td>
26 * </tr>
27 * <tr>
28 * <td> name </td>
29 * <td> String </td>
30 * <td> Name </td>
31 * </tr>
32 * <tr>
33 * <td> canread </td>
34 * <td> Capability </td>
35 * <td> Capability required to read this row </td>
36 * </tr>
37 * <tr>
38 * <td> canwrite </td>
39 * <td> Capability </td>
40 * <td> Capability required to write this row </td>
41 * </tr>
42 * </table>
43 *
44 * See org.melati.poem.prepro.TableDef#generateMainJava
45 */
46 public class Protected extends ProtectedBase {
47
48 /**
49 * Constructor for a <code>Persistent</code> <code>Protected</code>
50 * object.
51 * <p>
52 * Description: A protected table.
53 * </p>
54 *
55 * See org.melati.poem.prepro.TableDef#generateMainJava
56 */
57 public Protected() {
58 }
59
60 // programmer's domain-specific code here
61 /** FIXME this needs locking */
62 public Integer getCanReadTroid() throws AccessPoemException {
63 // readLock();
64 return getCanRead_unsafe();
65 }
66
67 }