/**
  * Print in the content file the query for enabled all foreign keys
  *
  * @return void
  * @access protected
  *
  * @author Etienne de Longeaux <*****@*****.**>
  * @since 2012-06-28
  */
 protected function EnabledForeignKeys()
 {
     throw DatabaseException::notSupported(__METHOD__);
 }
 /**
  * Return the Restore factory.
  *
  * @return \Sfynx\DatabaseBundle\Manager\Database\AbstractManager
  * @access public
  *
  * @author Etienne de Longeaux <*****@*****.**>
  * @since 2012-02-03
  */
 public function getRestoreFactory()
 {
     static $instance;
     if (!isset($instance)) {
         // we get the DatabasePlatform for the connection.
         $platform = $this->getDatabasePlatform();
         switch (true) {
             case $platform instanceof DB2Platform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof DrizzlePlatform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof MySqlPlatform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof OraclePlatform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof PostgreSqlPlatform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof SqlitePlatform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             case $platform instanceof SQLServerPlatform || $platform instanceof SQLServer2005Platform || $platform instanceof SQLServer2008Platform:
                 $instance = new Restore($this->getConnection(), $this->getContainer());
                 break;
             default:
                 throw DatabaseException::databasePlatformNotSupported();
                 break;
         }
     }
     return $instance;
 }