<?php
/** @package    HelloWorld::Model::DAO */

/** import supporting libraries */
require_once("verysimple/Phreeze/IDaoMap.php");

/**
 * WorldMap is a static class with functions used to get FieldMap and KeyMap information that
 * is used by Phreeze to map the WorldDAO to the World datastore.
 *
 * WARNING: THIS IS AN AUTO-GENERATED FILE
 *
 * This file should generally not be edited by hand except in special circumstances.
 * You can override the default fetching strategies for KeyMaps in _config.php.
 * Leaving this file alone will allow easy re-generation of all DAOs in the event of schema changes
 *
 * @package HelloWorld::Model::DAO
 * @author ClassBuilder
 * @version 1.0
 */
class WorldMap implements IDaoMap
{
	/**
	 * Returns a singleton array of FieldMaps for the World object
	 *
	 * @access public
	 * @return array of FieldMaps
	 */
	public static function GetFieldMaps()
	{
		static $fm = null;
		if ($fm == null)
		{
			$fm = Array();
			$fm["Id"] = new FieldMap("Id","World","id",true,FM_TYPE_INT,10,null,true);
			$fm["Randomnumber"] = new FieldMap("Randomnumber","World","randomNumber",false,FM_TYPE_INT,11,null,false);
		}
		return $fm;
	}

	/**
	 * Returns a singleton array of KeyMaps for the World object
	 *
	 * @access public
	 * @return array of KeyMaps
	 */
	public static function GetKeyMaps()
	{
		static $km = null;
		if ($km == null)
		{
			$km = Array();
		}
		return $km;
	}

}

?>