Prado\Data\Common\Oracle\TOracleMetaData::getIsView PHP 메소드

getIsView() 보호된 메소드

protected getIsView ( $schemaName, $tableName ) : boolean
리턴 boolean true if the table is a view.
    protected function getIsView($schemaName, $tableName)
    {
        $this->getDbConnection()->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
        $sql = <<<EOD
\t\tselect\tOBJECT_TYPE
\t\tfrom \tALL_OBJECTS
\t\twhere\tOBJECT_NAME = '{$tableName}'
\t\tand \tOWNER = '{$schemaName}'
EOD;
        $this->getDbConnection()->setActive(true);
        $command = $this->getDbConnection()->createCommand($sql);
        //$command->bindValue(':schema',$schemaName);
        //$command->bindValue(':table', $tableName);
        return intval($command->queryScalar() === 'VIEW');
    }