22#include <com/sun/star/lang/DisposedException.hpp>
23#include <com/sun/star/sdb/tools/XConnectionTools.hpp>
24#include <com/sun/star/sdb/CommandType.hpp>
29 using ::com::sun::star::sdbc::XConnection;
30 using ::com::sun::star::uno::Reference;
31 using ::com::sun::star::lang::DisposedException;
32 using ::com::sun::star::sdb::tools::XConnectionTools;
33 using ::com::sun::star::uno::UNO_QUERY_THROW;
34 using ::com::sun::star::sdb::tools::XObjectNames;
36 namespace CommandType = com::sun::star::sdb::CommandType;
52 if ( !xConnection.is() )
53 throw DisposedException();
55 Reference< XConnectionTools > xConnectionTools( xConnection, UNO_QUERY_THROW );
56 Reference< XObjectNames > xObjectNames( xConnectionTools->getObjectNames(), css::uno::UNO_SET_THROW );
virtual ~ObjectNameApproval() override
css::uno::WeakReference< css::sdbc::XConnection > mxConnection
ObjectNameApproval(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, ObjectType _eType)
constructs the instance
virtual void approveElement(const OUString &_rName) override
approves a given element for insertion into the container