本文整理汇总了C++中NATraceList::entries方法的典型用法代码示例。如果您正苦于以下问题:C++ NATraceList::entries方法的具体用法?C++ NATraceList::entries怎么用?C++ NATraceList::entries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NATraceList
的用法示例。
在下文中一共展示了NATraceList::entries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getDefaultValueExpr
NATraceList
ElemDDLColDef::getDetailInfo() const
{
NAString detailText;
NATraceList detailTextList;
detailTextList.append(displayLabel1()); // column name
detailTextList.append(displayLabel2()); // column data type
//
// default value for column
//
if (getDefaultValueExpr() NEQ NULL)
{
detailText = "Default value: ";
detailText += getDefaultValueExpr()->getText();
detailTextList.append(detailText);
}
else
{
detailTextList.append("No default value.");
}
//
// heading information for column
//
if (NOT getHeading().isNull())
{
detailText = "Heading: ";
detailText += getHeading();
detailTextList.append(detailText);
}
else
{
detailTextList.append("No heading.");
}
//
// not null (column) constraint information
//
detailText = "notnull? ";
detailText += YesNo(getIsConstraintNotNullSpecified());
detailTextList.append(detailText);
//
// primary key column constraint information
//
detailText = "prikey? ";
detailText += YesNo(getIsConstraintPKSpecified());
detailTextList.append(detailText);
//
// information about other column constraint definitions
//
const ElemDDLConstraintArray & consList = getConstraintArray();
CollIndex nbrConstraints = consList.entries();
if (nbrConstraints EQU 0)
{
detailTextList.append("No column constraints.");
}
else
{
detailText = "Column Constraints list [";
detailText += LongToNAString((Lng32)nbrConstraints);
detailText += " element(s)]:";
detailTextList.append(detailText);
for (CollIndex i = 0; i < nbrConstraints; i++)
{
ElemDDLConstraint * cons = consList[i];
detailText = "[column constraint ";
detailText += LongToNAString((Lng32)i);
detailText += "]";
detailTextList.append(detailText);
NATraceList constraintDetailTextList = cons->getDetailInfo();
for (CollIndex j = 0; j < constraintDetailTextList.entries(); j++)
{
detailTextList.append(NAString(" ") + constraintDetailTextList[j]);
}
}
}
return detailTextList;
} // ElemDDLColDef::getDetailInfo()