35 using ::com::sun::star::uno::Reference;
36 using ::com::sun::star::sdb::tools::XTableName;
37 using ::com::sun::star::sdb::tools::XObjectNames;
38 using ::com::sun::star::sdb::tools::XDataSourceMetaData;
39 using ::com::sun::star::uno::Sequence;
40 using ::com::sun::star::uno::XInterface;
41 using ::com::sun::star::uno::Any;
42 using ::com::sun::star::sdbc::XConnection;
43 using ::com::sun::star::lang::IllegalArgumentException;
44 using ::com::sun::star::uno::XComponentContext;
77 Reference< container::XNameAccess > xRet = ::dbtools::getFieldsByCommandDescriptor(
getConnection(),commandType,command,keepFieldsAlive,&aErrorInfo);
92 return "com.sun.star.comp.dbaccess.ConnectionTools";
102 return {
"com.sun.star.sdb.tools.ConnectionTools" };
107 ::osl::MutexGuard aGuard(
getMutex() );
109 Reference< XConnection > xConnection;
110 if (_rArguments.getLength()==1 && (_rArguments[0] >>= xConnection))
116 aArguments.get(
"Connection" ) >>= xConnection;
118 if ( !xConnection.is() )
119 throw IllegalArgumentException();
126extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
128 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& )
a class for guarding methods of a connection-dependent component
Sequence< PropertyValue > aArguments
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)