Lines 173-189
Link Here
|
173 |
} |
173 |
} |
174 |
|
174 |
|
175 |
|
175 |
|
176 |
void BaseLayer::readData(backend::XLayer * pContext, |
176 |
void BaseLayer::doReadData(backend::XLayer * pContext, |
177 |
const uno::Reference<backend::XLayerHandler>& xHandler, |
177 |
const uno::Reference<backend::XLayerHandler>& xHandler, |
178 |
Database& aDb, |
178 |
Database& aDb, |
179 |
rtl::OString aKey) |
179 |
rtl::OString aKey) |
180 |
throw (backend::MalformedDataException, lang::NullPointerException, |
180 |
throw (backend::MalformedDataException, lang::NullPointerException, |
181 |
lang::WrappedTargetException, uno::RuntimeException) |
181 |
lang::WrappedTargetException, uno::RuntimeException) |
182 |
{ |
182 |
{ |
183 |
if (!xHandler.is()) |
183 |
if (!xHandler.is()) |
184 |
{ |
184 |
{ |
185 |
rtl::OUString const sMessage(RTL_CONSTASCII_USTRINGPARAM( |
185 |
rtl::OUString const sMessage(RTL_CONSTASCII_USTRINGPARAM( |
186 |
"BaseLayer - Cannot readData: Handler is NULL.")); |
186 |
"BaseLayer - Cannot doReadData: Handler is NULL.")); |
187 |
|
187 |
|
188 |
throw lang::NullPointerException(sMessage,pContext); |
188 |
throw lang::NullPointerException(sMessage,pContext); |
189 |
} |
189 |
} |
Lines 216-222
Link Here
|
216 |
sMsg.appendAscii(aKey.getStr()); |
216 |
sMsg.appendAscii(aKey.getStr()); |
217 |
sMsg.appendAscii("\"\n"); |
217 |
sMsg.appendAscii("\"\n"); |
218 |
throw backend::BackendAccessException(sMsg.makeStringAndClear(), pContext, uno::Any()); |
218 |
throw backend::BackendAccessException(sMsg.makeStringAndClear(), pContext, uno::Any()); |
219 |
break; |
|
|
220 |
|
219 |
|
221 |
} |
220 |
} |
222 |
} |
221 |
} |
Lines 278-284
Link Here
|
278 |
Layer::Layer( |
277 |
Layer::Layer( |
279 |
const uno::Reference<lang::XMultiServiceFactory>& xFactory, |
278 |
const uno::Reference<lang::XMultiServiceFactory>& xFactory, |
280 |
Database& aDatabase, |
279 |
Database& aDatabase, |
281 |
const rtl::OString aKey) |
280 |
const rtl::OString& aKey) |
282 |
:BaseLayer(xFactory, aDatabase, aKey) |
281 |
:BaseLayer(xFactory, aDatabase, aKey) |
283 |
{ |
282 |
{ |
284 |
} |
283 |
} |
Lines 294-300
Link Here
|
294 |
lang::WrappedTargetException, |
293 |
lang::WrappedTargetException, |
295 |
uno::RuntimeException) |
294 |
uno::RuntimeException) |
296 |
{ |
295 |
{ |
297 |
BaseLayer::readData(this, xHandler, getDb(), getKey()); |
296 |
doReadData(this, xHandler, getDb(), getKey()); |
298 |
} |
297 |
} |
299 |
|
298 |
|
300 |
rtl::OUString Layer::getTimestamp() |
299 |
rtl::OUString Layer::getTimestamp() |
Lines 309-315
Link Here
|
309 |
UpdatableLayer::UpdatableLayer( |
308 |
UpdatableLayer::UpdatableLayer( |
310 |
const uno::Reference<lang::XMultiServiceFactory>& xFactory, |
309 |
const uno::Reference<lang::XMultiServiceFactory>& xFactory, |
311 |
Database& aDatabase, |
310 |
Database& aDatabase, |
312 |
const rtl::OString aKey) |
311 |
const rtl::OString& aKey) |
313 |
:BaseLayer(xFactory, aDatabase, aKey) |
312 |
:BaseLayer(xFactory, aDatabase, aKey) |
314 |
{ |
313 |
{ |
315 |
} |
314 |
} |
Lines 325-331
Link Here
|
325 |
lang::WrappedTargetException, |
324 |
lang::WrappedTargetException, |
326 |
uno::RuntimeException) |
325 |
uno::RuntimeException) |
327 |
{ |
326 |
{ |
328 |
BaseLayer::readData(this, xHandler, getDb(), getKey()); |
327 |
doReadData(this, xHandler, getDb(), getKey()); |
329 |
} |
328 |
} |
330 |
|
329 |
|
331 |
rtl::OUString UpdatableLayer::getTimestamp() |
330 |
rtl::OUString UpdatableLayer::getTimestamp() |
Lines 411-417
Link Here
|
411 |
findSubLayers(aKey); |
410 |
findSubLayers(aKey); |
412 |
} |
411 |
} |
413 |
|
412 |
|
414 |
void BaseCompositeLayer::readSubLayerData( |
413 |
void BaseCompositeLayer::doReadSubLayerData( |
415 |
backend::XCompositeLayer * pContext, |
414 |
backend::XCompositeLayer * pContext, |
416 |
const uno::Reference<backend::XLayerHandler>& xHandler, |
415 |
const uno::Reference<backend::XLayerHandler>& xHandler, |
417 |
const rtl::OUString& aSubLayerId) |
416 |
const rtl::OUString& aSubLayerId) |
Lines 422-428
Link Here
|
422 |
if (!xHandler.is()) |
421 |
if (!xHandler.is()) |
423 |
{ |
422 |
{ |
424 |
rtl::OUString const sMessage(RTL_CONSTASCII_USTRINGPARAM( |
423 |
rtl::OUString const sMessage(RTL_CONSTASCII_USTRINGPARAM( |
425 |
"BaseCompositeLayer - Cannot readSubLayerData: Handler is NULL.")); |
424 |
"BaseCompositeLayer - Cannot doReadSubLayerData: Handler is NULL.")); |
426 |
|
425 |
|
427 |
throw lang::NullPointerException(sMessage,pContext); |
426 |
throw lang::NullPointerException(sMessage,pContext); |
428 |
} |
427 |
} |
Lines 447-453
Link Here
|
447 |
} |
446 |
} |
448 |
if (mSubLayerKeys[i].getLength() != 0) |
447 |
if (mSubLayerKeys[i].getLength() != 0) |
449 |
{ |
448 |
{ |
450 |
BaseLayer::readData(pContext, xHandler, getDb(), mSubLayerKeys[i]) ; |
449 |
doReadData(pContext, xHandler, getDb(), mSubLayerKeys[i]) ; |
451 |
} |
450 |
} |
452 |
else |
451 |
else |
453 |
{ |
452 |
{ |
Lines 538-544
Link Here
|
538 |
lang::WrappedTargetException, lang::IllegalArgumentException, |
537 |
lang::WrappedTargetException, lang::IllegalArgumentException, |
539 |
uno::RuntimeException) |
538 |
uno::RuntimeException) |
540 |
{ |
539 |
{ |
541 |
return BaseCompositeLayer::readSubLayerData(this,xHandler,aSubLayerId); |
540 |
return doReadSubLayerData(this,xHandler,aSubLayerId); |
542 |
} |
541 |
} |
543 |
|
542 |
|
544 |
|
543 |
|
Lines 560-566
Link Here
|
560 |
throw (backend::MalformedDataException, lang::NullPointerException, |
559 |
throw (backend::MalformedDataException, lang::NullPointerException, |
561 |
lang::WrappedTargetException, uno::RuntimeException) |
560 |
lang::WrappedTargetException, uno::RuntimeException) |
562 |
{ |
561 |
{ |
563 |
BaseLayer::readData(static_cast<backend::XCompositeLayer*>(this),xHandler, getDb(), getKey()); |
562 |
doReadData(static_cast<backend::XCompositeLayer*>(this),xHandler, getDb(), getKey()); |
564 |
} |
563 |
} |
565 |
|
564 |
|
566 |
void SAL_CALL UpdatableCompositeLayer::replaceWith( |
565 |
void SAL_CALL UpdatableCompositeLayer::replaceWith( |
Lines 630-636
Link Here
|
630 |
lang::WrappedTargetException, lang::IllegalArgumentException, |
629 |
lang::WrappedTargetException, lang::IllegalArgumentException, |
631 |
uno::RuntimeException) |
630 |
uno::RuntimeException) |
632 |
{ |
631 |
{ |
633 |
return BaseCompositeLayer::readSubLayerData(this,xHandler,aSubLayerId); |
632 |
return doReadSubLayerData(this,xHandler,aSubLayerId); |
634 |
} |
633 |
} |
635 |
|
634 |
|
636 |
rtl::OUString SAL_CALL UpdatableCompositeLayer::getTimestamp() |
635 |
rtl::OUString SAL_CALL UpdatableCompositeLayer::getTimestamp() |
Lines 640-644
Link Here
|
640 |
} |
639 |
} |
641 |
|
640 |
|
642 |
|
641 |
|
643 |
}; //namespace dbbe |
642 |
} //namespace dbbe |
644 |
}; //namespace configmgr |
643 |
} //namespace configmgr |