/**
  * Gets the the mapping between db table columns and properties of entities.
  * 
  * @return array(string, array(string, string))
  */
 public static function getEntityMapping()
 {
     if (!is_null(self::$_entityMapping)) {
         self::$_entityMapping = array('EmptyEntity' => array());
     }
     return self::$_entityMapping;
 }
 /**
  * Constructs new instance of WordPressDSExpressionProvider
  *    
  */
 public function __construct()
 {
     $this->_entityMapping = CreateDefaultMetadata::getEntityMapping();
 }
 /**
  * Get the service like IDataServiceMetadataProvider, IDataServiceQueryProvider,
  * IDataServiceStreamProvider
  * 
  * @param String $serviceType Type of service IDataServiceMetadataProvider, 
  *                            IDataServiceQueryProvider,
  *                            IDataServiceStreamProvider
  * 
  * @see library/ODataProducer/ODataProducer.IServiceProvider::getService()
  * @return object
  */
 public function getService($serviceType)
 {
     if ($serviceType === 'IDataServiceMetadataProvider' || $serviceType === 'IDataServiceQueryProvider2' || $serviceType === 'IDataServiceStreamProvider') {
         if (is_null($this->_defaultExpressionProvider)) {
             $this->_defaultExpressionProvider = new DefaultDSExpressionProvider();
         }
     }
     if ($serviceType === 'IDataServiceMetadataProvider') {
         if (is_null($this->_defaultMetadata)) {
             $this->_defaultMetadata = CreateDefaultMetadata::create();
             // $this->_defaultMetadata->mappedDetails = CreateDefaultMetadata::mappingInitialize();
         }
         return $this->_defaultMetadata;
     } else {
         if ($serviceType === 'IDataServiceQueryProvider2') {
             if (is_null($this->_defaultQueryProvider)) {
                 $this->_defaultQueryProvider = new DefaultQueryProvider();
             }
             return $this->_defaultQueryProvider;
         } else {
             if ($serviceType === 'IDataServiceStreamProvider') {
                 return new DefaultStreamProvider();
             }
         }
     }
     return null;
 }