Coverage Report - org.apache.turbine.services.security.torque.om.map.TurbinePermissionMapBuilder
 
Classes in this File Line Coverage Branch Coverage Complexity
TurbinePermissionMapBuilder
0%
0/42
0%
0/4
1,667
 
 1  
 package org.apache.turbine.services.security.torque.om.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  
 import org.apache.torque.map.ColumnMap;
 12  
 import org.apache.torque.map.InheritanceMap;
 13  
 
 14  
 /**
 15  
   *  This class was autogenerated by Torque on:
 16  
   *
 17  
   * [Thu Jun 23 17:25:46 CEST 2011]
 18  
   *
 19  
   */
 20  0
 public class TurbinePermissionMapBuilder implements MapBuilder
 21  
 {
 22  
     /**
 23  
      * The name of this class
 24  
      */
 25  
     public static final String CLASS_NAME =
 26  
         "org.apache.turbine.services.security.torque.om.map.TurbinePermissionMapBuilder";
 27  
 
 28  
     /**
 29  
      * The database map.
 30  
      */
 31  0
     private DatabaseMap dbMap = null;
 32  
 
 33  
     /**
 34  
      * Tells us if this DatabaseMapBuilder is built so that we
 35  
      * don't have to re-build it every time.
 36  
      *
 37  
      * @return true if this DatabaseMapBuilder is built
 38  
      */
 39  
     public boolean isBuilt()
 40  
     {
 41  0
         return (dbMap != null);
 42  
     }
 43  
 
 44  
     /**
 45  
      * Gets the databasemap this map builder built.
 46  
      *
 47  
      * @return the databasemap
 48  
      */
 49  
     public DatabaseMap getDatabaseMap()
 50  
     {
 51  0
         return this.dbMap;
 52  
     }
 53  
 
 54  
     /**
 55  
      * The doBuild() method builds the DatabaseMap
 56  
      *
 57  
      * @throws TorqueException
 58  
      */
 59  
     public synchronized void doBuild() throws TorqueException
 60  
     {
 61  0
         if ( isBuilt() ) {
 62  0
             return;
 63  
         }
 64  0
         dbMap = Torque.getDatabaseMap("default");
 65  
 
 66  0
         dbMap.addTable("TURBINE_PERMISSION");
 67  0
         TableMap tMap = dbMap.getTable("TURBINE_PERMISSION");
 68  0
         tMap.setJavaName("TurbinePermission");
 69  0
         tMap.setOMClass( org.apache.turbine.services.security.torque.om.TurbinePermission.class );
 70  0
         tMap.setPeerClass( org.apache.turbine.services.security.torque.om.TurbinePermissionPeer.class );
 71  0
         tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
 72  0
         tMap.setPrimaryKeyMethodInfo(tMap.getName());
 73  
 
 74  0
         ColumnMap cMap = null;
 75  
 
 76  
 
 77  
   // ------------- Column: PERMISSION_ID --------------------
 78  0
         cMap = new ColumnMap( "PERMISSION_ID", tMap);
 79  0
         cMap.setType( new Integer(0) );
 80  0
         cMap.setTorqueType( "INTEGER" );
 81  0
         cMap.setUsePrimitive(true);
 82  0
         cMap.setPrimaryKey(true);
 83  0
         cMap.setNotNull(true);
 84  0
         cMap.setJavaName( "PermissionId" );
 85  0
         cMap.setAutoIncrement(false);
 86  0
         cMap.setProtected(false);
 87  0
         cMap.setInheritance("false");
 88  0
         cMap.setPosition(1);
 89  0
         tMap.addColumn(cMap);
 90  
   // ------------- Column: PERMISSION_NAME --------------------
 91  0
         cMap = new ColumnMap( "PERMISSION_NAME", tMap);
 92  0
         cMap.setType( "" );
 93  0
         cMap.setTorqueType( "VARCHAR" );
 94  0
         cMap.setUsePrimitive(true);
 95  0
         cMap.setPrimaryKey(false);
 96  0
         cMap.setNotNull(true);
 97  0
         cMap.setJavaName( "Name" );
 98  0
         cMap.setAutoIncrement(false);
 99  0
         cMap.setProtected(false);
 100  0
         cMap.setInheritance("false");
 101  0
         cMap.setSize( 64 );
 102  0
         cMap.setPosition(2);
 103  0
         tMap.addColumn(cMap);
 104  0
         tMap.setUseInheritance(false);
 105  0
     }
 106  
 }