summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx')
-rw-r--r--odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx74
1 files changed, 37 insertions, 37 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index 040159c02611..b5faafbfaa8c 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -47,7 +47,7 @@
#include "propertyids.hxx"
using namespace connectivity::skeleton;
-//------------------------------------------------------------------------------
+
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
@@ -56,7 +56,7 @@ using namespace com::sun::star::sdbcx;
using namespace com::sun::star::container;
using namespace com::sun::star::io;
using namespace com::sun::star::util;
-//------------------------------------------------------------------------------
+
OStatement_Base::OStatement_Base(OConnection* _pConnection )
: OStatement_BASE(m_aMutex),
OPropertySetHelper(OStatement_BASE::rBHelper),
@@ -65,11 +65,11 @@ OStatement_Base::OStatement_Base(OConnection* _pConnection )
{
m_pConnection->acquire();
}
-// -----------------------------------------------------------------------------
+
OStatement_Base::~OStatement_Base()
{
}
-//------------------------------------------------------------------------------
+
void OStatement_Base::disposeResultSet()
{
// free the cursor if alive
@@ -78,7 +78,7 @@ void OStatement_Base::disposeResultSet()
xComp->dispose();
m_xResultSet.clear();
}
-//------------------------------------------------------------------------------
+
void OStatement_BASE2::disposing()
{
::osl::MutexGuard aGuard(m_aMutex);
@@ -92,12 +92,12 @@ void OStatement_BASE2::disposing()
dispose_ChildImpl();
OStatement_Base::disposing();
}
-//-----------------------------------------------------------------------------
+
void SAL_CALL OStatement_BASE2::release() throw()
{
relase_ChildImpl();
}
-//-----------------------------------------------------------------------------
+
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OStatement_BASE::queryInterface(rType);
@@ -105,7 +105,7 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(Runtime
aRet = OPropertySetHelper::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
{
::cppu::OTypeCollection aTypes(
@@ -115,7 +115,7 @@ Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
return concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
{
@@ -123,7 +123,7 @@ void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
// cancel the current sql statement
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
{
@@ -134,13 +134,13 @@ void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::clearBatch( ) throw(SQLException, RuntimeException)
{
// if you support batches clear it here
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::execute( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -149,7 +149,7 @@ sal_Bool SAL_CALL OStatement_Base::execute( const ::rtl::OUString& sql ) throw(S
// returns true when a resultset is available
return sal_False;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -163,7 +163,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::executeQuery( const ::rtl::OUS
m_xResultSet = xRS; // we nedd a reference to it for later use
return xRS;
}
-// -------------------------------------------------------------------------
+
Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLException, RuntimeException)
{
@@ -173,12 +173,12 @@ Reference< XConnection > SAL_CALL OStatement_Base::getConnection( ) throw(SQLEx
// just return our connection here
return (Reference< XConnection >)m_pConnection;
}
-// -----------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::getUpdateCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return 0;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
{
@@ -187,7 +187,7 @@ Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeExcep
aRet = OStatement_Base::queryInterface(rType);
return aRet;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OStatement::addBatch( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
{
@@ -197,7 +197,7 @@ void SAL_CALL OStatement::addBatch( const ::rtl::OUString& sql ) throw(SQLExcept
m_aBatchList.push_back(sql);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -205,7 +205,7 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch( ) throw(SQLException,
return Sequence< sal_Int32 >();
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const ::rtl::OUString& sql ) throw(SQLException, RuntimeException)
@@ -217,7 +217,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const ::rtl::OUString& sql )
return 0;
}
-// -------------------------------------------------------------------------
+
Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLException, RuntimeException)
{
@@ -227,7 +227,7 @@ Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet( ) throw(SQLExce
// return our save resultset here
return m_xResultSet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, RuntimeException)
{
@@ -238,9 +238,9 @@ sal_Bool SAL_CALL OStatement_Base::getMoreResults( ) throw(SQLException, Runtim
// and has one more at this moment return true
return sal_False;
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -249,9 +249,9 @@ Any SAL_CALL OStatement_Base::getWarnings( ) throw(SQLException, RuntimeExcepti
return makeAny(m_aLastWarning);
}
-// -------------------------------------------------------------------------
-// -------------------------------------------------------------------------
+
+
void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -260,7 +260,7 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
m_aLastWarning = SQLWarning();
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
{
// this properties are define by the service statement
@@ -282,12 +282,12 @@ void SAL_CALL OStatement_Base::clearWarnings( ) throw(SQLException, RuntimeExce
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
{
return *const_cast<OStatement_Base*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OStatement_Base::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -299,7 +299,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
// here we have to try to convert
return bConverted;
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
// set the value to what ever is necessary
@@ -319,7 +319,7 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
;
}
}
-// -------------------------------------------------------------------------
+
void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -338,33 +338,33 @@ void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
;
}
}
-// -------------------------------------------------------------------------
+
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::acquire() throw()
{
OStatement_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement_Base::release() throw()
{
OStatement_BASE::release();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::acquire() throw()
{
OStatement_BASE2::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OStatement::release() throw()
{
OStatement_BASE2::release();
}
-// -----------------------------------------------------------------------------
+
Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */