1 package org.apache.turbine.services.schedule.map;
2
3 import java.util.Date;
4 import java.math.BigDecimal;
5
6 import org.apache.torque.Torque;
7 import org.apache.torque.TorqueException;
8 import org.apache.torque.map.MapBuilder;
9 import org.apache.torque.map.DatabaseMap;
10 import org.apache.torque.map.TableMap;
11
12 /***
13 * This class was autogenerated by Torque on:
14 *
15 * [Mon May 28 10:17:19 EST 2007]
16 *
17 */
18 public class JobEntryMapBuilder implements MapBuilder
19 {
20 /***
21 * The name of this class
22 */
23 public static final String CLASS_NAME =
24 "org.apache.turbine.services.schedule.map.JobEntryMapBuilder";
25
26 /***
27 * The database map.
28 */
29 private DatabaseMap dbMap = null;
30
31 /***
32 * Tells us if this DatabaseMapBuilder is built so that we
33 * don't have to re-build it every time.
34 *
35 * @return true if this DatabaseMapBuilder is built
36 */
37 public boolean isBuilt()
38 {
39 return (dbMap != null);
40 }
41
42 /***
43 * Gets the databasemap this map builder built.
44 *
45 * @return the databasemap
46 */
47 public DatabaseMap getDatabaseMap()
48 {
49 return this.dbMap;
50 }
51
52 /***
53 * The doBuild() method builds the DatabaseMap
54 *
55 * @throws TorqueException
56 */
57 public void doBuild() throws TorqueException
58 {
59 dbMap = Torque.getDatabaseMap("default");
60
61 dbMap.addTable("TURBINE_SCHEDULED_JOB");
62 TableMap tMap = dbMap.getTable("TURBINE_SCHEDULED_JOB");
63
64 tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
65
66 tMap.setPrimaryKeyMethodInfo(tMap.getName());
67
68 tMap.addPrimaryKey("TURBINE_SCHEDULED_JOB.JOB_ID", new Integer(0) );
69 tMap.addColumn("TURBINE_SCHEDULED_JOB.SECOND", new Integer(0) );
70 tMap.addColumn("TURBINE_SCHEDULED_JOB.MINUTE", new Integer(0) );
71 tMap.addColumn("TURBINE_SCHEDULED_JOB.HOUR", new Integer(0) );
72 tMap.addColumn("TURBINE_SCHEDULED_JOB.WEEK_DAY", new Integer(0) );
73 tMap.addColumn("TURBINE_SCHEDULED_JOB.DAY_OF_MONTH", new Integer(0) );
74 tMap.addColumn("TURBINE_SCHEDULED_JOB.TASK", "", 99 );
75 tMap.addColumn("TURBINE_SCHEDULED_JOB.EMAIL", "", 99 );
76 tMap.addColumn("TURBINE_SCHEDULED_JOB.PROPERTY", new Object() );
77 }
78 }