Lines Matching refs:nRec
184 sal_Bool ODbaseIndex::ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue) in ConvertToKey() argument
193 *rKey = ONDXKey(rValue.getString(), nRec ); in ConvertToKey()
198 *rKey = ONDXKey(rValue.getDouble(), DataType::DOUBLE, nRec ); in ConvertToKey()
200 *rKey = ONDXKey(rValue.getDouble(), nRec ); in ConvertToKey()
212 sal_Bool ODbaseIndex::Find(sal_uInt32 nRec, const ORowSetValue& rValue) in Find() argument
219 return ConvertToKey(&aKey, nRec, rValue) && getRoot()->Find(aKey); in Find()
223 sal_Bool ODbaseIndex::Insert(sal_uInt32 nRec, const ORowSetValue& rValue) in Insert() argument
231 if (!ConvertToKey(&aKey, nRec, rValue) || (getRoot()->Find(aKey) && isUnique())) in Insert()
247 sal_Bool ODbaseIndex::Update(sal_uInt32 nRec, const ORowSetValue& rOldValue, in Update() argument
253 if (!ConvertToKey(&aKey, nRec, rNewValue) || (isUnique() && getRoot()->Find(aKey))) in Update()
256 return Delete(nRec, rOldValue) && Insert(nRec,rNewValue); in Update()
260 sal_Bool ODbaseIndex::Delete(sal_uInt32 nRec, const ORowSetValue& rValue) in Delete() argument
267 if (!ConvertToKey(&aKey, nRec, rValue) || !getRoot()->Find(aKey)) in Delete()