LibreOffice Module sc (master) 1
|
Data caches for external database sources. More...
#include <dpobject.hxx>
Public Member Functions | |
DBCaches (ScDocument &rDoc) | |
bool | hasCache (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand) const |
const ScDPCache * | getCache (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand, const ScDPDimensionSaveData *pDimData) |
Private Types | |
typedef ::std::map< DBType, std::unique_ptr< ScDPCache >, DBType::less > | CachesType |
Private Member Functions | |
ScDPCache * | getExistingCache (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand) |
void | updateCache (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand, o3tl::sorted_vector< ScDPObject * > &rRefs) |
bool | remove (const ScDPCache *p) |
Static Private Member Functions | |
static css::uno::Reference< css::sdbc::XRowSet > | createRowSet (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand) |
Private Attributes | |
CachesType | m_Caches |
ScDocument & | mrDoc |
Friends | |
class | ScDPCollection |
Data caches for external database sources.
Definition at line 360 of file dpobject.hxx.
|
private |
Definition at line 363 of file dpobject.hxx.
ScDPCollection::DBCaches::DBCaches | ( | ScDocument & | rDoc | ) |
Definition at line 3209 of file dpobject.cxx.
|
staticprivate |
store error message
Definition at line 3262 of file dpobject.cxx.
References Any, createInstance(), Application::CreateMessageDialog(), ScDocShell::GetActiveDialogParent(), comphelper::getProcessComponentContext(), comphelper::getProcessServiceFactory(), SC_DBPROP_COMMAND, SC_DBPROP_COMMANDTYPE, SC_DBPROP_DATASOURCENAME, SC_SERVICE_ROWSET, and TOOLS_WARN_EXCEPTION.
const ScDPCache * ScDPCollection::DBCaches::getCache | ( | sal_Int32 | nSdbType, |
const OUString & | rDBName, | ||
const OUString & | rCommand, | ||
const ScDPDimensionSaveData * | pDimData | ||
) |
Definition at line 3218 of file dpobject.cxx.
References comphelper::disposeComponent(), ScGlobal::eLnge, SvNumberFormatter::GetNullDate(), comphelper::getProcessComponentContext(), ScDPCollection::mrDoc, p, ScDPCollection::ScDPCache, and ScDPDimensionSaveData::WriteToCache().
Referenced by ScImportSourceDesc::CreateCache(), and ScDPCollection::ReloadGroupsInCache().
|
private |
Definition at line 3254 of file dpobject.cxx.
Referenced by ScDPCollection::ReloadGroupsInCache().
bool ScDPCollection::DBCaches::hasCache | ( | sal_Int32 | nSdbType, |
const OUString & | rDBName, | ||
const OUString & | rCommand | ||
) | const |
Definition at line 3211 of file dpobject.cxx.
Referenced by ScDPCollection::ReloadCache(), and ScDPCollection::ReloadGroupsInCache().
|
private |
Definition at line 3359 of file dpobject.cxx.
References p.
Referenced by ScDPCollection::RemoveCache().
|
private |
Definition at line 3316 of file dpobject.cxx.
References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), comphelper::disposeComponent(), ScGlobal::eLnge, ScDPCache::GetAllReferences(), SvNumberFormatter::GetNullDate(), comphelper::getProcessComponentContext(), ScDPCache::InitFromDataBase(), and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
Referenced by ScDPCollection::ReloadCache().
|
friend |
Definition at line 362 of file dpobject.hxx.
|
private |
Definition at line 364 of file dpobject.hxx.
|
private |
Definition at line 365 of file dpobject.hxx.