当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractPlatform::appendLockHint方法代码示例

本文整理汇总了PHP中AbstractPlatform::appendLockHint方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPlatform::appendLockHint方法的具体用法?PHP AbstractPlatform::appendLockHint怎么用?PHP AbstractPlatform::appendLockHint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AbstractPlatform的用法示例。


在下文中一共展示了AbstractPlatform::appendLockHint方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: walkFromClause

 /**
  * Walks down a FromClause AST node, thereby generating the appropriate SQL.
  *
  * @return string The SQL.
  */
 public function walkFromClause($fromClause)
 {
     $sql = ' FROM ';
     $identificationVarDecls = $fromClause->identificationVariableDeclarations;
     $firstIdentificationVarDecl = $identificationVarDecls[0];
     $rangeDecl = $firstIdentificationVarDecl->rangeVariableDeclaration;
     $dqlAlias = $rangeDecl->aliasIdentificationVariable;
     $this->_currentRootAlias = $dqlAlias;
     $class = $this->_em->getClassMetadata($rangeDecl->abstractSchemaName);
     $sql .= $class->getQuotedTableName($this->_platform) . ' ' . $this->getSqlTableAlias($class->table['name'], $dqlAlias);
     if ($class->isInheritanceTypeJoined()) {
         $sql .= $this->_generateClassTableInheritanceJoins($class, $dqlAlias);
     }
     foreach ($firstIdentificationVarDecl->joinVariableDeclarations as $joinVarDecl) {
         $sql .= $this->walkJoinVariableDeclaration($joinVarDecl);
     }
     return $this->_platform->appendLockHint($sql, $this->_query->getHint(Query::HINT_LOCK_MODE));
 }
开发者ID:EstebanFuentealba,项目名称:PHPCodeCreator,代码行数:23,代码来源:SqlWalker.php

示例2: walkSubselectFromClause

 /**
  * Walks down a SubselectFromClause AST node, thereby generating the appropriate SQL.
  *
  * @param SubselectFromClause
  * @return string The SQL.
  */
 public function walkSubselectFromClause($subselectFromClause)
 {
     $identificationVarDecls = $subselectFromClause->identificationVariableDeclarations;
     $sqlParts = array();
     foreach ($identificationVarDecls as $subselectIdVarDecl) {
         $sql = '';
         $rangeDecl = $subselectIdVarDecl->rangeVariableDeclaration;
         $dqlAlias = $rangeDecl->aliasIdentificationVariable;
         $class = $this->_em->getClassMetadata($rangeDecl->abstractSchemaName);
         $sql .= $class->getQuotedTableName($this->_platform) . ' ' . $this->getSqlTableAlias($class->table['name'], $dqlAlias);
         if ($class->isInheritanceTypeJoined()) {
             $sql .= $this->_generateClassTableInheritanceJoins($class, $dqlAlias);
         }
         foreach ($subselectIdVarDecl->joinVariableDeclarations as $joinVarDecl) {
             $sql .= $this->walkJoinVariableDeclaration($joinVarDecl);
         }
         $sqlParts[] = $this->_platform->appendLockHint($sql, $this->_query->getHint(Query::HINT_LOCK_MODE));
     }
     return ' FROM ' . implode(', ', $sqlParts);
 }
开发者ID:dracony,项目名称:forked-php-orm-benchmark,代码行数:26,代码来源:SqlWalker.php

示例3: walkSubselectFromClause

 /**
  * Walks down a SubselectFromClause AST node, thereby generating the appropriate SQL.
  *
  * @param SubselectFromClause
  * @return string The SQL.
  */
 public function walkSubselectFromClause($subselectFromClause)
 {
     $identificationVarDecls = $subselectFromClause->identificationVariableDeclarations;
     $sqlParts = array();
     foreach ($identificationVarDecls as $subselectIdVarDecl) {
         $sql = $this->platform->appendLockHint($this->walkRangeVariableDeclaration($subselectIdVarDecl->rangeVariableDeclaration), $this->query->getHint(Query::HINT_LOCK_MODE));
         foreach ($subselectIdVarDecl->joins as $join) {
             $sql .= $this->walkJoin($join);
         }
         $sqlParts[] = $sql;
     }
     return ' FROM ' . implode(', ', $sqlParts);
 }
开发者ID:bardascat,项目名称:blogify,代码行数:19,代码来源:SqlWalker.php


注:本文中的AbstractPlatform::appendLockHint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。