summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/ado/AResultSet.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/ado/AResultSet.cxx')
-rw-r--r--connectivity/source/drivers/ado/AResultSet.cxx202
1 files changed, 101 insertions, 101 deletions
diff --git a/connectivity/source/drivers/ado/AResultSet.cxx b/connectivity/source/drivers/ado/AResultSet.cxx
index 951f8888aee2..44967fbd136b 100644
--- a/connectivity/source/drivers/ado/AResultSet.cxx
+++ b/connectivity/source/drivers/ado/AResultSet.cxx
@@ -51,13 +51,13 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace com::sun::star::sdbc;
-//------------------------------------------------------------------------------
+
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.AResultSet","com.sun.star.sdbc.ResultSet");
OUString SAL_CALL OResultSet::getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) \
{
return OUString("com.sun.star.sdbcx.ado.ResultSet");
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
@@ -70,7 +70,7 @@ sal_Bool SAL_CALL OResultSet::supportsService( const OUString& _rServiceName ) t
{
return cppu::supportsService(this, _rServiceName);
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(ADORecordset* _pRecordSet,OStatement_Base* pStmt) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_pRecordSet(_pRecordSet)
@@ -83,7 +83,7 @@ OResultSet::OResultSet(ADORecordset* _pRecordSet,OStatement_Base* pStmt) : ORes
,m_bOnFirstAfterOpen(sal_False)
{
}
-// -------------------------------------------------------------------------
+
OResultSet::OResultSet(ADORecordset* _pRecordSet) : OResultSet_BASE(m_aMutex)
,OPropertySetHelper(OResultSet_BASE::rBHelper)
,m_pRecordSet(_pRecordSet)
@@ -96,7 +96,7 @@ OResultSet::OResultSet(ADORecordset* _pRecordSet) : OResultSet_BASE(m_aMutex)
,m_bOnFirstAfterOpen(sal_False)
{
}
-// -----------------------------------------------------------------------------
+
void OResultSet::construct()
{
osl_atomic_increment( &m_refCount );
@@ -113,13 +113,13 @@ void OResultSet::construct()
m_bOnFirstAfterOpen = bIsAtBOF != VARIANT_TRUE;
osl_atomic_decrement( &m_refCount );
}
-// -------------------------------------------------------------------------
+
OResultSet::~OResultSet()
{
if(m_pRecordSet)
m_pRecordSet->Release();
}
-// -------------------------------------------------------------------------
+
void OResultSet::disposing(void)
{
OPropertySetHelper::disposing();
@@ -130,13 +130,13 @@ void OResultSet::disposing(void)
m_xStatement.clear();
m_xMetaData.clear();
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeException)
{
Any aRet = OPropertySetHelper::queryInterface(rType);
return aRet.hasValue() ? aRet : OResultSet_BASE::queryInterface(rType);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL OResultSet::getTypes( ) throw(::com::sun::star::uno::RuntimeException)
{
::cppu::OTypeCollection aTypes( ::getCppuType( (const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XMultiPropertySet > *)0 ),
@@ -146,7 +146,7 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
return ::comphelper::concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQLException, RuntimeException)
{
@@ -169,7 +169,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn( const OUString& columnName ) throw(SQ
return 0; // Never reached
}
#define BLOCK_SIZE 256
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -209,13 +209,13 @@ Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getBinarySt
return m_aValue.isNull() ? NULL : new ::comphelper::SequenceInputStream(m_aValue);
}
-// -------------------------------------------------------------------------
+
Reference< ::com::sun::star::io::XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getCharacterStream", *this );
return NULL;
}
-// -----------------------------------------------------------------------------
+
OLEVariant OResultSet::getValue(sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -225,48 +225,48 @@ OLEVariant OResultSet::getValue(sal_Int32 columnIndex ) throw(SQLException, Runt
aField.get_Value(m_aValue);
return m_aValue;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::getBoolean( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int8 SAL_CALL OResultSet::getByte( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Date SAL_CALL OResultSet::getDate( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
double SAL_CALL OResultSet::getDouble( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
float SAL_CALL OResultSet::getFloat( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getInt( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
{
@@ -279,14 +279,14 @@ sal_Int32 SAL_CALL OResultSet::getRow( ) throw(SQLException, RuntimeException)
return (aPos > 0) ? static_cast<sal_Int32>(aPos) : m_nRowPos;
// return the rowcount from driver if the driver doesn't support this return our count
}
-// -------------------------------------------------------------------------
+
sal_Int64 SAL_CALL OResultSet::getLong( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getLong", *this );
return sal_Int64(0);
}
-// -------------------------------------------------------------------------
+
Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLException, RuntimeException)
{
@@ -298,67 +298,67 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx
m_xMetaData = new OResultSetMetaData(m_pRecordSet);
return m_xMetaData;
}
-// -------------------------------------------------------------------------
+
Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getArray", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getClob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getBlob", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "XRow::getRef", *this );
return NULL;
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getObject( sal_Int32 columnIndex, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex).makeAny();
}
-// -------------------------------------------------------------------------
+
sal_Int16 SAL_CALL OResultSet::getShort( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
OUString SAL_CALL OResultSet::getString( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::Time SAL_CALL OResultSet::getTime( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
::com::sun::star::util::DateTime SAL_CALL OResultSet::getTimestamp( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
return getValue(columnIndex);
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeException)
{
@@ -370,7 +370,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast( ) throw(SQLException, RuntimeExcepti
CHECK_RETURN(m_pRecordSet->get_EOF(&bIsAtEOF))
return bIsAtEOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -379,7 +379,7 @@ sal_Bool SAL_CALL OResultSet::isFirst( ) throw(SQLException, RuntimeException)
return m_nRowPos == 1;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -388,7 +388,7 @@ sal_Bool SAL_CALL OResultSet::isLast( ) throw(SQLException, RuntimeException)
return sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -398,7 +398,7 @@ void SAL_CALL OResultSet::beforeFirst( ) throw(SQLException, RuntimeException)
if(first())
m_bOnFirstAfterOpen = !previous();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -409,7 +409,7 @@ void SAL_CALL OResultSet::afterLast( ) throw(SQLException, RuntimeException)
next();
m_bEOF = sal_True;
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
{
@@ -420,7 +420,7 @@ void SAL_CALL OResultSet::close( ) throw(SQLException, RuntimeException)
}
dispose();
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
{
@@ -436,7 +436,7 @@ sal_Bool SAL_CALL OResultSet::first( ) throw(SQLException, RuntimeException)
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
{
@@ -452,7 +452,7 @@ sal_Bool SAL_CALL OResultSet::last( ) throw(SQLException, RuntimeException)
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -485,7 +485,7 @@ sal_Bool SAL_CALL OResultSet::absolute( sal_Int32 row ) throw(SQLException, Runt
m_bOnFirstAfterOpen = sal_False;
return bCheck;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -505,7 +505,7 @@ sal_Bool SAL_CALL OResultSet::relative( sal_Int32 row ) throw(SQLException, Runt
}
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -519,14 +519,14 @@ sal_Bool SAL_CALL OResultSet::previous( ) throw(SQLException, RuntimeException)
}
return bRet;
}
-// -------------------------------------------------------------------------
+
Reference< XInterface > SAL_CALL OResultSet::getStatement( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
return m_xStatement;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeException)
{
@@ -541,7 +541,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted( ) throw(SQLException, RuntimeExceptio
--m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeException)
{ ::osl::MutexGuard aGuard( m_aMutex );
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
@@ -554,7 +554,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted( ) throw(SQLException, RuntimeExcepti
++m_nRowPos;
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -565,7 +565,7 @@ sal_Bool SAL_CALL OResultSet::rowUpdated( ) throw(SQLException, RuntimeExceptio
m_pRecordSet->get_Status((sal_Int32*)&eRec);
return (eRec & adRecModified) == adRecModified;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeException)
{
@@ -582,7 +582,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst( ) throw(SQLException, RuntimeExcep
}
return bIsAtBOF == VARIANT_TRUE;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
{
@@ -613,7 +613,7 @@ sal_Bool SAL_CALL OResultSet::next( ) throw(SQLException, RuntimeException)
return bRet;
}
-// -------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
{
@@ -623,7 +623,7 @@ sal_Bool SAL_CALL OResultSet::wasNull( ) throw(SQLException, RuntimeException)
return m_aValue.isNull();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
{
@@ -633,16 +633,16 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException)
m_pRecordSet->Cancel();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::clearWarnings( ) throw(SQLException, RuntimeException)
{
}
-// -------------------------------------------------------------------------
+
Any SAL_CALL OResultSet::getWarnings( ) throw(SQLException, RuntimeException)
{
return Any();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -653,7 +653,7 @@ void SAL_CALL OResultSet::insertRow( ) throw(SQLException, RuntimeException)
aEmpty.setNoArg();
m_pRecordSet->AddNew(aEmpty,aEmpty);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -664,7 +664,7 @@ void SAL_CALL OResultSet::updateRow( ) throw(SQLException, RuntimeException)
aEmpty.setNoArg();
m_pRecordSet->Update(aEmpty,aEmpty);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -674,7 +674,7 @@ void SAL_CALL OResultSet::deleteRow( ) throw(SQLException, RuntimeException)
m_pRecordSet->Delete(adAffectCurrent);
m_pRecordSet->UpdateBatch(adAffectCurrent);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeException)
{
@@ -684,7 +684,7 @@ void SAL_CALL OResultSet::cancelRowUpdates( ) throw(SQLException, RuntimeExcept
m_pRecordSet->CancelUpdate();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeException)
{
@@ -693,12 +693,12 @@ void SAL_CALL OResultSet::moveToInsertRow( ) throw(SQLException, RuntimeExcepti
// if ( getResultSetConcurrency() == ResultSetConcurrency::READ_ONLY )
// throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::moveToCurrentRow( ) throw(SQLException, RuntimeException)
{
}
-// -----------------------------------------------------------------------------
+
void OResultSet::updateValue(sal_Int32 columnIndex,const OLEVariant& x)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -707,79 +707,79 @@ void OResultSet::updateValue(sal_Int32 columnIndex,const OLEVariant& x)
WpADOField aField = ADOS::getField(m_pRecordSet,columnIndex);
aField.PutValue(x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNull( sal_Int32 columnIndex ) throw(SQLException, RuntimeException)
{
OLEVariant x;
x.setNull();
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBoolean( sal_Int32 columnIndex, sal_Bool x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,bool(x));
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateByte( sal_Int32 columnIndex, sal_Int8 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateShort( sal_Int32 columnIndex, sal_Int16 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateLong( sal_Int32 columnIndex, sal_Int64 x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -----------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDouble( sal_Int32 columnIndex, double x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateString( sal_Int32 columnIndex, const OUString& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBytes( sal_Int32 columnIndex, const Sequence< sal_Int8 >& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateDate( sal_Int32 columnIndex, const ::com::sun::star::util::Date& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTime( sal_Int32 columnIndex, const ::com::sun::star::util::Time& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateTimestamp( sal_Int32 columnIndex, const ::com::sun::star::util::DateTime& x ) throw(SQLException, RuntimeException)
{
updateValue(columnIndex,x);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
@@ -790,7 +790,7 @@ void SAL_CALL OResultSet::updateBinaryStream( sal_Int32 columnIndex, const Refer
x->readBytes(aSeq,length);
updateBytes(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Reference< ::com::sun::star::io::XInputStream >& x, sal_Int32 length ) throw(SQLException, RuntimeException)
{
if(!x.is())
@@ -800,7 +800,7 @@ void SAL_CALL OResultSet::updateCharacterStream( sal_Int32 columnIndex, const Re
x->readBytes(aSeq,length);
updateBytes(columnIndex,aSeq);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -809,20 +809,20 @@ void SAL_CALL OResultSet::refreshRow( ) throw(SQLException, RuntimeException)
m_pRecordSet->Resync(adAffectCurrent,adResyncAllValues);
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateObject( sal_Int32 columnIndex, const Any& x ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-// -------------------------------------------------------------------------
+
void SAL_CALL OResultSet::updateNumericObject( sal_Int32 columnIndex, const Any& x, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException)
{
if (!::dbtools::implUpdateObject(this, columnIndex, x))
throw SQLException();
}
-//------------------------------------------------------------------------------
+
// XRowLocate
Any SAL_CALL OResultSet::getBookmark( ) throw(SQLException, RuntimeException)
{
@@ -838,7 +838,7 @@ Any SAL_CALL OResultSet::getBookmark( ) throw(SQLException, RuntimeException)
return makeAny((sal_Int32)(m_aBookmarks.size()-1));
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -853,7 +853,7 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark( const Any& bookmark ) throw(SQLExc
return SUCCEEDED(m_pRecordSet->Move(0,m_aBookmarks[nPos]));
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_Int32 rows ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -868,7 +868,7 @@ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark( const Any& bookmark, sal_I
::dbtools::throwFunctionSequenceException(*this);
return SUCCEEDED(m_pRecordSet->Move(rows,m_aBookmarks[nPos]));
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& bookmark1, const Any& bookmark2 ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -887,7 +887,7 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks( const Any& bookmark1, const Any
m_pRecordSet->CompareBookmarks(m_aBookmarks[nPos1],m_aBookmarks[nPos2],&eNum);
return ((sal_Int32)eNum) +1;
}
-//------------------------------------------------------------------------------
+
sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -913,7 +913,7 @@ sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw(SQLException, Runtim
bValue = aVar;
return bValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& bookmark ) throw(SQLException, RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -924,7 +924,7 @@ sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& bookmark ) throw(SQLExce
bookmark >>= nPos;
return nPos;
}
-//------------------------------------------------------------------------------
+
// XDeleteRows
Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >& rows ) throw(SQLException, RuntimeException)
{
@@ -973,7 +973,7 @@ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows( const Sequence< Any >& ro
}
return aSeq;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetConcurrency() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -993,7 +993,7 @@ sal_Int32 OResultSet::getResultSetConcurrency() const
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getResultSetType() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1018,13 +1018,13 @@ sal_Int32 OResultSet::getResultSetType() const
}
return nValue;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchDirection() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return FetchDirection::FORWARD;
}
-//------------------------------------------------------------------------------
+
sal_Int32 OResultSet::getFetchSize() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
@@ -1032,26 +1032,26 @@ sal_Int32 OResultSet::getFetchSize() const
m_pRecordSet->get_CacheSize(&nValue);
return nValue;
}
-//------------------------------------------------------------------------------
+
OUString OResultSet::getCursorName() const
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
return OUString();
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchDirection(sal_Int32 /*_par0*/)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
::dbtools::throwFeatureNotImplementedException( "ResultSet::FetchDirection", *this );
}
-//------------------------------------------------------------------------------
+
void OResultSet::setFetchSize(sal_Int32 _par0)
throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
{
m_pRecordSet->put_CacheSize(_par0);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper* OResultSet::createArrayHelper( ) const
{
Sequence< com::sun::star::beans::Property > aProps(5);
@@ -1067,12 +1067,12 @@ void OResultSet::setFetchSize(sal_Int32 _par0)
return new ::cppu::OPropertyArrayHelper(aProps);
}
-// -------------------------------------------------------------------------
+
::cppu::IPropertyArrayHelper & OResultSet::getInfoHelper()
{
return *const_cast<OResultSet*>(this)->getArrayHelper();
}
-// -------------------------------------------------------------------------
+
sal_Bool OResultSet::convertFastPropertyValue(
Any & rConvertedValue,
Any & rOldValue,
@@ -1097,7 +1097,7 @@ sal_Bool OResultSet::convertFastPropertyValue(
}
return sal_False;
}
-// -------------------------------------------------------------------------
+
void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)throw (Exception)
{
switch(nHandle)
@@ -1118,7 +1118,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& r
;
}
}
-// -------------------------------------------------------------------------
+
void OResultSet::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
{
switch(nHandle)
@@ -1148,22 +1148,22 @@ void OResultSet::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
break;
}
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::acquire() throw()
{
OResultSet_BASE::acquire();
}
-// -----------------------------------------------------------------------------
+
void SAL_CALL OResultSet::release() throw()
{
OResultSet_BASE::release();
}
-// -----------------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException)
{
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
}
-// -----------------------------------------------------------------------------
+