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');
}