summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/AView.cxx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-11-15 09:51:03 +0000
committerOcke Janssen <oj@openoffice.org>2001-11-15 09:51:03 +0000
commitf6064fa01433aa8cb79c2dcaa2494cb386b9d218 (patch)
tree74851eb65c02a42fca5de744558642d0a98e7eb0 /connectivity/source/drivers/ado/AView.cxx
parent693fc99af41468b1669a4f813f8f4a02ca082562 (diff)
#94754# general fixes for views
Diffstat (limited to 'connectivity/source/drivers/ado/AView.cxx')
-rw-r--r--connectivity/source/drivers/ado/AView.cxx47
1 files changed, 9 insertions, 38 deletions
diff --git a/connectivity/source/drivers/ado/AView.cxx b/connectivity/source/drivers/ado/AView.cxx
index 560dfa80382b..54843bd8a9bf 100644
--- a/connectivity/source/drivers/ado/AView.cxx
+++ b/connectivity/source/drivers/ado/AView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AView.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: oj $ $Date: 2001-08-24 06:13:55 $
+ * last change: $Author: oj $ $Date: 2001-11-15 10:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -76,11 +76,15 @@
#ifndef _COMPHELPER_SEQUENCE_HXX_
#include <comphelper/sequence.hxx>
#endif
+#ifndef _COMPHELPER_TYPES_HXX_
+#include <comphelper/types.hxx>
+#endif
#ifndef CONNECTIVITY_CONNECTION_HXX
#include "TConnection.hxx"
#endif
// -------------------------------------------------------------------------
+using namespace comphelper;
using namespace connectivity::ado;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -90,37 +94,8 @@ using namespace com::sun::star::sdbc;
// IMPLEMENT_SERVICE_INFO(OAdoView,"com.sun.star.sdbcx.AView","com.sun.star.sdbcx.View");
// -------------------------------------------------------------------------
OAdoView::OAdoView(sal_Bool _bCase,ADOView* _pView) : OView_ADO(_bCase,NULL)
+,m_aView(_pView)
{
- construct();
-
- if(_pView)
- m_aView = WpADOView(_pView);
- else
- m_aView.Create();
-}
-// -------------------------------------------------------------------------
-OAdoView::OAdoView(sal_Bool _bCase, const ::rtl::OUString& _Name,
- sal_Int32 _CheckOption,
- const ::rtl::OUString& _Command,
- const ::rtl::OUString& _SchemaName,
- const ::rtl::OUString& _CatalogName)
- : OView_ADO( _bCase,
- _Name,
- NULL,
- _CheckOption,
- _Command,
- _SchemaName,
- _CatalogName)
-{
- construct();
- m_aView.Create();
- WpADOCommand aCommand;
- aCommand.Create();
- aCommand.put_Name(_Name);
- aCommand.put_CommandText(_Command);
-
- m_aView.put_Command(OLEVariant((IDispatch*)aCommand));
-
}
//--------------------------------------------------------------------------
Sequence< sal_Int8 > OAdoView::getUnoTunnelImplementationId()
@@ -150,11 +125,6 @@ sal_Int64 OAdoView::getSomething( const Sequence< sal_Int8 > & rId ) throw (Runt
}
// -------------------------------------------------------------------------
-void OAdoView::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
-{
- throw Exception();
-}
-// -------------------------------------------------------------------------
void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
if(m_aView.IsValid())
@@ -184,9 +154,10 @@ void OAdoView::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
break;
}
}
+ else
+ OView_ADO::getFastPropertyValue(rValue,nHandle);
}
// -----------------------------------------------------------------------------
-// -----------------------------------------------------------------------------
void SAL_CALL OAdoView::acquire() throw(::com::sun::star::uno::RuntimeException)
{
OView_ADO::acquire();