lib-model-map
[ class tree: lib-model-map ] [ index: lib-model-map ] [ all elements ]

Source for file EtvaPhysicalvolumeMapBuilder.php

Documentation is available at EtvaPhysicalvolumeMapBuilder.php

  1. <?php
  2.  
  3.  
  4. /**
  5.  * This class adds structure of 'physicalvolume' table to 'propel' DatabaseMap object.
  6.  *
  7.  *
  8.  * This class was autogenerated by Propel 1.3.0-dev on:
  9.  *
  10.  * Thu Jun 18 14:28:38 2009
  11.  *
  12.  *
  13.  * These statically-built map classes are used by Propel to do runtime db structure discovery.
  14.  * For example, the createSelectSql() method checks the type of a given column used in an
  15.  * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
  16.  * (i.e. if it's a text column type).
  17.  *
  18.  * @package    lib.model.map
  19.  */
  20. class EtvaPhysicalvolumeMapBuilder implements MapBuilder {
  21.  
  22.     /**
  23.      * The (dot-path) name of this class
  24.      */
  25.     const CLASS_NAME 'lib.model.map.EtvaPhysicalvolumeMapBuilder';
  26.  
  27.     /**
  28.      * The database map.
  29.      */
  30.     private $dbMap;
  31.  
  32.     /**
  33.      * Tells us if this DatabaseMapBuilder is built so that we
  34.      * don't have to re-build it every time.
  35.      *
  36.      * @return     boolean true if this DatabaseMapBuilder is built, false otherwise.
  37.      */
  38.     public function isBuilt()
  39.     {
  40.         return ($this->dbMap !== null);
  41.     }
  42.  
  43.     /**
  44.      * Gets the databasemap this map builder built.
  45.      *
  46.      * @return     the databasemap
  47.      */
  48.     public function getDatabaseMap()
  49.     {
  50.         return $this->dbMap;
  51.     }
  52.  
  53.     /**
  54.      * The doBuild() method builds the DatabaseMap
  55.      *
  56.      * @return     void 
  57.      * @throws     PropelException
  58.      */
  59.     public function doBuild()
  60.     {
  61.         $this->dbMap Propel::getDatabaseMap(EtvaPhysicalvolumePeer::DATABASE_NAME);
  62.  
  63.         $tMap $this->dbMap->addTable(EtvaPhysicalvolumePeer::TABLE_NAME);
  64.         $tMap->setPhpName('EtvaPhysicalvolume');
  65.         $tMap->setClassname('EtvaPhysicalvolume');
  66.  
  67.         $tMap->setUseIdGenerator(true);
  68.  
  69.         $tMap->addPrimaryKey('ID''Id''INTEGER'truenull);
  70.  
  71.         $tMap->addForeignKey('NODE_ID''NodeId''INTEGER''node''ID'truenull);
  72.  
  73.         $tMap->addColumn('NAME''Name''VARCHAR'false255);
  74.  
  75.         $tMap->addColumn('DEVICE''Device''VARCHAR'false255);
  76.  
  77.         $tMap->addColumn('DEVSIZE''Devsize''BIGINT'falsenull);
  78.  
  79.         $tMap->addColumn('PV''Pv''VARCHAR'false255);
  80.  
  81.         $tMap->addColumn('PVSIZE''Pvsize''BIGINT'falsenull);
  82.  
  83.         $tMap->addColumn('PVFREESIZE''Pvfreesize''BIGINT'falsenull);
  84.  
  85.         $tMap->addColumn('PVINIT''Pvinit''INTEGER'falsenull);
  86.  
  87.         $tMap->addColumn('STORAGE_TYPE''StorageType''VARCHAR'false255);
  88.  
  89.         $tMap->addColumn('ALLOCATABLE''Allocatable''INTEGER'falsenull);
  90.  
  91.     // doBuild()
  92.  
  93. // EtvaPhysicalvolumeMapBuilder

Documentation generated on Fri, 19 Jun 2009 10:49:16 +0100 by phpDocumentor 1.4.2