1 // Delete this line to prevent overwriting of this file
2
3 package org.paneris.bibliomania;
4
5
6 import org.paneris.bibliomania.generated.CampaignTableBase;
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>CampaignTable</code> object.
14 * <p>
15 * Description:
16 * A campaign to send emails to users.
17 * </p>
18 *
19 *
20 * <table>
21 * <tr><th colspan='3'>
22 * Field summary for SQL table <code>Campaign</code>
23 * </th></tr>
24 * <tr><th>Name</th><th>Type</th><th>Description</th></tr>
25 * <tr><td> id </td><td> Integer </td><td> </td></tr>
26 * <tr><td> displayname </td><td> String </td><td> The Campaign's name
27 * </td></tr>
28 * <tr><td> created </td><td> Timestamp </td><td> When this Campaign was
29 * created </td></tr>
30 * <tr><td> lastrun </td><td> Timestamp </td><td> When the users in this his
31 * Campaign were last emailed </td></tr>
32 * <tr><td> output </td><td> String </td><td> The file containing the output
33 * from the last run </td></tr>
34 * <tr><td> comment </td><td> String </td><td> Any comments on this Campaign
35 * </td></tr>
36 * <tr><td> template </td><td> String </td><td> A template for the email to
37 * be sent </td></tr>
38 * </table>
39 *
40 * see org.melati.poem.prepro.TableDef#generateTableJava
41 */
42 public class CampaignTable<T extends Campaign> extends CampaignTableBase<Campaign> {
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 CampaignTable(
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