View Javadoc
1   // Delete this line to prevent overwriting of this file
2   
3   package org.melati.poem.test;
4   
5   
6   import org.melati.poem.test.generated.ProtectedTableBase;
7   import org.melati.poem.DefinitionSource;
8   import org.melati.poem.Database;
9   import org.melati.poem.PoemException;
10  
11  /**
12   * Melati POEM generated, programmer modifiable stub 
13   * for a <code>ProtectedTable</code> object.
14   * <p>
15   * Description: 
16   *   A protected table. 
17   * </p>
18   *
19   * 
20   * <table> 
21   * <caption>
22   * Field summary for SQL table <code>Protected</code>
23   * </caption>
24   * <tr><th>Name</th><th>Type</th><th>Description</th></tr>
25   * <tr><td> id </td><td> Integer </td><td> &nbsp; </td></tr> 
26   * <tr><td> spy </td><td> User </td><td> Spy </td></tr> 
27   * <tr><td> mission </td><td> String </td><td> Secret mission </td></tr> 
28   * <tr><td> canRead </td><td> Capability </td><td> Capability required to 
29   * read this row  </td></tr> 
30   * <tr><td> canWrite </td><td> Capability </td><td> Capability required to 
31   * write this row  </td></tr> 
32   * <tr><td> canDelete </td><td> Capability </td><td> Capability required to 
33   * delete this row  </td></tr> 
34   * <tr><td> canSelect </td><td> Capability </td><td> Capability required to 
35   * select this row  </td></tr> 
36   * <tr><td> deleted </td><td> Boolean </td><td> Whether this record is 
37   * existant  </td></tr> 
38   * </table> 
39   * 
40   * See org.melati.poem.prepro.TableDef#generateTableJava 
41   */
42  public class ProtectedTable<T extends Protected> extends ProtectedTableBase<Protected> {
43  
44   /**
45    * Constructor.
46    * 
47    * See org.melati.poem.prepro.TableDef#generateTableJava 
48    * @param database          the POEM database we are using
49    * @param name              the name of this <code>Table</code>
50    * @param definitionSource  which definition is being used
51    * @throws PoemException    if anything goes wrong
52    */
53    public ProtectedTable(
54        Database database, String name,
55        DefinitionSource definitionSource) throws PoemException {
56      super(database, name, definitionSource);
57    }
58  
59    // programmer's domain-specific code here
60  }
61