本文整理汇总了C++中QualifiedName::getQualifiedNameAsString方法的典型用法代码示例。如果您正苦于以下问题:C++ QualifiedName::getQualifiedNameAsString方法的具体用法?C++ QualifiedName::getQualifiedNameAsString怎么用?C++ QualifiedName::getQualifiedNameAsString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QualifiedName
的用法示例。
在下文中一共展示了QualifiedName::getQualifiedNameAsString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fixName
//////////////////////////////////////////////////////////////////////////////
// Given a table qualified name, returns the table's name as an Ansi string
NAString MVJoinGraph::fixName(const QualifiedName& tableName) const
{
// If the name already has double-quotes mark, that means it is already
// in an Ansi format. if we return it ...AsAnsiString, another set of
// double-quotes will be added, and we don't want to do that.
if(tableName.getObjectName().contains('"'))
{
return tableName.getQualifiedNameAsString();
}
return tableName.getQualifiedNameAsAnsiString();
}
示例2: removeNARoutine
// This method follows the same semantics as NATableDB::removeNATable
void NARoutineDB::removeNARoutine(QualifiedName &routineName,
ComQiScope qiScope,
Int64 objUID,
NABoolean ddlXns, NABoolean atCommit)
{
if ((ddlXns) &&
(NOT atCommit))
{
CmpContext::DDLObjInfo ddlObj;
ddlObj.ddlObjName = routineName.getQualifiedNameAsString();
ddlObj.qiScope = qiScope;
ddlObj.ot = COM_USER_DEFINED_ROUTINE_OBJECT;
ddlObj.objUID = objUID;
NABoolean found = FALSE;
for (Lng32 i = 0;
((NOT found) && (i < CmpCommon::context()->ddlObjsList().entries()));
i++)
{
CmpContext::DDLObjInfo &ddlObjInList =
CmpCommon::context()->ddlObjsList()[i];
if (ddlObj.ddlObjName == ddlObjInList.ddlObjName)
found = TRUE;
}
removeNARoutine2(routineName, qiScope, objUID);
if (NOT found)
CmpCommon::context()->ddlObjsList().insert(ddlObj);
return;
}
removeNARoutine2(routineName, qiScope, objUID);
}