Lines Matching refs:pEntryField

684 			OTableFieldDescRef pEntryField = *aIter;  in GenerateSelectList()  local
685 if ( pEntryField->IsVisible() ) in GenerateSelectList()
687 if ( pEntryField->GetField().toChar() == '*' ) in GenerateSelectList()
708 OTableFieldDescRef pEntryField = *aIter; in GenerateSelectList() local
709 ::rtl::OUString rFieldName = pEntryField->GetField(); in GenerateSelectList()
710 if ( rFieldName.getLength() && pEntryField->IsVisible() ) in GenerateSelectList()
713 const ::rtl::OUString rAlias = pEntryField->GetAlias(); in GenerateSelectList()
714 const ::rtl::OUString rFieldAlias = pEntryField->GetFieldAlias(); in GenerateSelectList()
720 if ( !pEntryField->isOtherFunction() ) in GenerateSelectList()
738 OSL_ENSURE(pEntryField->GetTable().getLength(),"No table field name!"); in GenerateSelectList()
747 if ( pEntryField->isAggreateFunction() ) in GenerateSelectList()
749 … DBG_ASSERT(pEntryField->GetFunction().getLength(),"Functionname darf hier nicht leer sein! ;-("); in GenerateSelectList()
750 ::rtl::OUStringBuffer aTmpStr2( pEntryField->GetFunction()); in GenerateSelectList()
759 pEntryField->isNumericOrAggreateFunction() || in GenerateSelectList()
760 pEntryField->isOtherFunction())) in GenerateSelectList()
812 OTableFieldDescRef pEntryField = *aIter; in GenerateCriterias() local
813 aFieldName = pEntryField->GetField(); in GenerateCriterias()
817 aCriteria = pEntryField->GetCriteria( i ); in GenerateCriterias()
821 if ( aFieldName.toChar() == '*' && pEntryField->isNoneFunction() ) in GenerateCriterias()
832 aWork += quoteTableAlias(bMulti,pEntryField->GetAlias(),aQuote); in GenerateCriterias()
834 … if ( (pEntryField->GetFunctionType() & (FKT_OTHER|FKT_NUMERIC)) || (aFieldName.toChar() == '*') ) in GenerateCriterias()
839 if ( pEntryField->isAggreateFunction() || pEntryField->IsGroupBy() ) in GenerateCriterias()
846 if ( pEntryField->isAggreateFunction() ) in GenerateCriterias()
848 OSL_ENSURE(pEntryField->GetFunction().getLength(),"No function name for aggregate given!"); in GenerateCriterias()
849 aHavingStr += pEntryField->GetFunction(); in GenerateCriterias()
860 …nectivity::OSQLParseNode> pParseNode(_pView->getPredicateTreeFromEntry(pEntryField,aTmp,aErrorMsg,… in GenerateCriterias()
863 if (bMulti && !(pEntryField->isOtherFunction() || (aFieldName.toChar() == '*'))) in GenerateCriterias()
864 pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName); in GenerateCriterias()
873 !pEntryField->isOtherFunction()); in GenerateCriterias()
891 …ectivity::OSQLParseNode> pParseNode( _pView->getPredicateTreeFromEntry(pEntryField,aTmp,aErrorMsg,… in GenerateCriterias()
894 if (bMulti && !(pEntryField->isOtherFunction() || (aFieldName.toChar() == '*'))) in GenerateCriterias()
895 pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName); in GenerateCriterias()
901 !pEntryField->isOtherFunction() ); in GenerateCriterias()
913 else if ( !i && pEntryField->isCondition() ) in GenerateCriterias()
919 aWhereStr += pEntryField->GetField(); in GenerateCriterias()
979 OTableFieldDescRef pEntryField = *aIter; in GenerateOrder() local
980 EOrderDir eOrder = pEntryField->GetOrderDir(); in GenerateOrder()
986 aColumnName = pEntryField->GetField(); in GenerateOrder()
996 if ( bColumnAliasInOrderBy && pEntryField->GetFieldAlias().getLength() ) in GenerateOrder()
998 aWorkStr += ::dbtools::quoteName(aQuote, pEntryField->GetFieldAlias()); in GenerateOrder()
1000 else if ( pEntryField->isNumericOrAggreateFunction() ) in GenerateOrder()
1002 … DBG_ASSERT(pEntryField->GetFunction().getLength(),"Functionname darf hier nicht leer sein! ;-("); in GenerateOrder()
1003 aWorkStr += pEntryField->GetFunction(); in GenerateOrder()
1005 aWorkStr += quoteTableAlias(bMulti,pEntryField->GetAlias(),aQuote); in GenerateOrder()
1007 if ( pEntryField->isNumeric() ) in GenerateOrder()
1014 else if ( pEntryField->isOtherFunction() ) in GenerateOrder()
1020 aWorkStr += quoteTableAlias(bMulti,pEntryField->GetAlias(),aQuote); in GenerateOrder()
1237 OTableFieldDescRef pEntryField = *aIter; in GenerateGroupBy() local
1238 if ( pEntryField->IsGroupBy() ) in GenerateGroupBy()
1240 DBG_ASSERT(pEntryField->GetField().getLength(),"Kein FieldName vorhanden!;-("); in GenerateGroupBy()
1241 ::rtl::OUString sGroupByPart = quoteTableAlias(bMulti,pEntryField->GetAlias(),aQuote); in GenerateGroupBy()
1244 if ( pEntryField->isNoneFunction() ) in GenerateGroupBy()
1246 sGroupByPart += ::dbtools::quoteName(aQuote, pEntryField->GetField()); in GenerateGroupBy()
1250 ::rtl::OUString aTmp = pEntryField->GetField(); in GenerateGroupBy()
1253 …nectivity::OSQLParseNode> pParseNode(_pView->getPredicateTreeFromEntry(pEntryField,aTmp,aErrorMsg,… in GenerateGroupBy()
1261 !pEntryField->isOtherFunction()); in GenerateGroupBy()
1265 sGroupByPart += pEntryField->GetField(); in GenerateGroupBy()
2934 OTableFieldDescRef pEntryField = *aIter; in getStatement() local
2935 if ( pEntryField->GetField().getLength() && pEntryField->IsVisible() ) in getStatement()
2937 else if (pEntryField->GetField().getLength() && in getStatement()
2938 !pEntryField->HasCriteria() && in getStatement()
2939 pEntryField->isNoneFunction() && in getStatement()
2940 pEntryField->GetOrderDir() == ORDER_NONE && in getStatement()
2941 !pEntryField->IsGroupBy() && in getStatement()
2942 !pEntryField->GetFunction().getLength() ) in getStatement()
2943 rUnUsedFields.push_back(pEntryField); in getStatement()