1 // Delete this line to prevent overwriting of this file 2 3 package org.paneris.bibliomania; 4 5 6 import org.paneris.bibliomania.generated.ProductTableBase; 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>ProductTable</code> object. 14 * <p> 15 * Description: 16 * A Bibliomania Product. 17 * </p> 18 * 19 * 20 * <table> 21 * <tr><th colspan='3'> 22 * Field summary for SQL table <code>Product</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> book </td><td> Book </td><td> The book to be sold </td></tr> 27 * <tr><td> publisher </td><td> Publisher </td><td> The publisher for this 28 * product </td></tr> 29 * <tr><td> download </td><td> Download </td><td> The download object for 30 * this product (if any) </td></tr> 31 * <tr><td> name </td><td> String </td><td> A name for this product if 32 * different to the Book title </td></tr> 33 * <tr><td> description </td><td> String </td><td> Additional blurb about the 34 * product </td></tr> 35 * <tr><td> price </td><td> Double </td><td> Price payable by the customer, 36 * including discounts, excluding delivery </td></tr> 37 * <tr><td> listprice </td><td> Double </td><td> The normal selling price of 38 * the product, not including delivery </td></tr> 39 * <tr><td> ISBN </td><td> String </td><td> The ISBN number of this product 40 * (if any) </td></tr> 41 * <tr><td> picture </td><td> String </td><td> A jacket cover image or 42 * similar </td></tr> 43 * <tr><td> deleted </td><td> Boolean </td><td> </td></tr> 44 * <tr><td> format </td><td> BookFormat </td><td> The type of the product 45 * </td></tr> 46 * </table> 47 * 48 * see org.melati.poem.prepro.TableDef#generateTableJava 49 */ 50 public class ProductTable<T extends Product> extends ProductTableBase<Product> { 51 52 /** 53 * Constructor. 54 * 55 * see org.melati.poem.prepro.TableDef#generateTableJava 56 * @param database the POEM database we are using 57 * @param name the name of this <code>Table</code> 58 * @param definitionSource which definition is being used 59 * @throws PoemException if anything goes wrong 60 */ 61 public ProductTable( 62 Database database, String name, 63 DefinitionSource definitionSource) throws PoemException { 64 super(database, name, definitionSource); 65 } 66 67 // programmer's domain-specific code here 68 } 69