Clean up naming of OStatement_Base etc. (firebird-sdbc)
Change-Id: I4cb81565ae2fa6efd434e6e789f16fab90d0ae4a
This commit is contained in:
@@ -70,7 +70,7 @@ namespace connectivity
|
|||||||
::com::sun::star::document::XDocumentEventListener
|
::com::sun::star::document::XDocumentEventListener
|
||||||
> OConnection_BASE;
|
> OConnection_BASE;
|
||||||
|
|
||||||
class OStatement_Base;
|
class OStatementCommonBase;
|
||||||
class FirebirdDriver;
|
class FirebirdDriver;
|
||||||
class ODatabaseMetaData;
|
class ODatabaseMetaData;
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbcx.firebird.PreparedS
|
|||||||
OPreparedStatement::OPreparedStatement( OConnection* _pConnection,
|
OPreparedStatement::OPreparedStatement( OConnection* _pConnection,
|
||||||
const TTypeInfoVector& _TypeInfo,
|
const TTypeInfoVector& _TypeInfo,
|
||||||
const OUString& sql)
|
const OUString& sql)
|
||||||
:OStatement_Base(_pConnection)
|
:OStatementCommonBase(_pConnection)
|
||||||
,m_aTypeInfo(_TypeInfo)
|
,m_aTypeInfo(_TypeInfo)
|
||||||
,m_sSqlStatement(sql)
|
,m_sSqlStatement(sql)
|
||||||
,m_statementHandle(0)
|
,m_statementHandle(0)
|
||||||
@@ -87,7 +87,7 @@ void OPreparedStatement::ensurePrepared()
|
|||||||
throw (SQLException)
|
throw (SQLException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
if (m_statementHandle)
|
if (m_statementHandle)
|
||||||
return;
|
return;
|
||||||
@@ -161,34 +161,35 @@ OPreparedStatement::~OPreparedStatement()
|
|||||||
|
|
||||||
void SAL_CALL OPreparedStatement::acquire() throw()
|
void SAL_CALL OPreparedStatement::acquire() throw()
|
||||||
{
|
{
|
||||||
OStatement_Base::acquire();
|
OStatementCommonBase::acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OPreparedStatement::release() throw()
|
void SAL_CALL OPreparedStatement::release() throw()
|
||||||
{
|
{
|
||||||
OStatement_Base::release();
|
OStatementCommonBase::release();
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SAL_CALL OPreparedStatement::queryInterface(const Type& rType)
|
Any SAL_CALL OPreparedStatement::queryInterface(const Type& rType)
|
||||||
throw(RuntimeException)
|
throw(RuntimeException)
|
||||||
{
|
{
|
||||||
Any aRet = OStatement_Base::queryInterface(rType);
|
Any aRet = OStatementCommonBase::queryInterface(rType);
|
||||||
if(!aRet.hasValue())
|
if(!aRet.hasValue())
|
||||||
aRet = OPreparedStatement_BASE::queryInterface(rType);
|
aRet = OPreparedStatement_Base::queryInterface(rType);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Sequence< Type > SAL_CALL OPreparedStatement::getTypes()
|
uno::Sequence< Type > SAL_CALL OPreparedStatement::getTypes()
|
||||||
throw(RuntimeException)
|
throw(RuntimeException)
|
||||||
{
|
{
|
||||||
return OPreparedStatement_BASE::getTypes();
|
return concatSequences(OPreparedStatement_Base::getTypes(),
|
||||||
|
OStatementCommonBase::getTypes());
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
|
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
|
||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
// if(!m_xMetaData.is())
|
// if(!m_xMetaData.is())
|
||||||
@@ -202,21 +203,21 @@ void SAL_CALL OPreparedStatement::close() throw(SQLException, RuntimeException)
|
|||||||
SAL_INFO("connectivity.firebird", "close()");
|
SAL_INFO("connectivity.firebird", "close()");
|
||||||
|
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
if (m_statementHandle)
|
if (m_statementHandle)
|
||||||
{
|
{
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
}
|
}
|
||||||
|
|
||||||
OStatement_Base::close();
|
OStatementCommonBase::close();
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL OPreparedStatement::execute()
|
sal_Bool SAL_CALL OPreparedStatement::execute()
|
||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
return sal_False;
|
return sal_False;
|
||||||
@@ -226,7 +227,7 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
|
|||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
return 0;
|
return 0;
|
||||||
@@ -241,7 +242,7 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 nParameterIndex,
|
|||||||
"x: " << x);
|
"x: " << x);
|
||||||
|
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
ensurePrepared();
|
ensurePrepared();
|
||||||
|
|
||||||
checkParameterIndex(nParameterIndex);
|
checkParameterIndex(nParameterIndex);
|
||||||
@@ -277,7 +278,7 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
|
|||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
return Reference< XConnection >(m_pConnection);
|
return Reference< XConnection >(m_pConnection);
|
||||||
}
|
}
|
||||||
@@ -289,7 +290,7 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
|
|||||||
"Got called with sql: " << m_sSqlStatement);
|
"Got called with sql: " << m_sSqlStatement);
|
||||||
|
|
||||||
MutexGuard aGuard( m_pConnection->getMutex() );
|
MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
ensurePrepared();
|
ensurePrepared();
|
||||||
|
|
||||||
ISC_STATUS aErr;
|
ISC_STATUS aErr;
|
||||||
@@ -322,7 +323,7 @@ void SAL_CALL OPreparedStatement::setBoolean( sal_Int32 parameterIndex, sal_Bool
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -331,7 +332,7 @@ void SAL_CALL OPreparedStatement::setByte( sal_Int32 parameterIndex, sal_Int8 x
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -342,7 +343,7 @@ void SAL_CALL OPreparedStatement::setDate( sal_Int32 parameterIndex, const Date&
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) aData;
|
(void) aData;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -353,7 +354,7 @@ void SAL_CALL OPreparedStatement::setTime( sal_Int32 parameterIndex, const Time&
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) aVal;
|
(void) aVal;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -363,7 +364,7 @@ void SAL_CALL OPreparedStatement::setTimestamp( sal_Int32 parameterIndex, const
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) aVal;
|
(void) aVal;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -373,7 +374,7 @@ void SAL_CALL OPreparedStatement::setDouble( sal_Int32 parameterIndex, double x
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,7 +385,7 @@ void SAL_CALL OPreparedStatement::setFloat( sal_Int32 parameterIndex, float x )
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -394,7 +395,7 @@ void SAL_CALL OPreparedStatement::setInt( sal_Int32 parameterIndex, sal_Int32 x
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -404,7 +405,7 @@ void SAL_CALL OPreparedStatement::setLong( sal_Int32 parameterIndex, sal_Int64 a
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) aVal;
|
(void) aVal;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -414,7 +415,7 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 s
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) sqlType;
|
(void) sqlType;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -424,7 +425,7 @@ void SAL_CALL OPreparedStatement::setClob( sal_Int32 parameterIndex, const Refer
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -434,7 +435,7 @@ void SAL_CALL OPreparedStatement::setBlob( sal_Int32 parameterIndex, const Refer
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -444,7 +445,7 @@ void SAL_CALL OPreparedStatement::setArray( sal_Int32 parameterIndex, const Refe
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -454,7 +455,7 @@ void SAL_CALL OPreparedStatement::setRef( sal_Int32 parameterIndex, const Refere
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -465,7 +466,7 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c
|
|||||||
(void) x;
|
(void) x;
|
||||||
(void) sqlType;
|
(void) sqlType;
|
||||||
(void) scale;
|
(void) scale;
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -477,7 +478,7 @@ void SAL_CALL OPreparedStatement::setObjectNull( sal_Int32 parameterIndex, sal_I
|
|||||||
(void) sqlType;
|
(void) sqlType;
|
||||||
(void) typeName;
|
(void) typeName;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -487,7 +488,7 @@ void SAL_CALL OPreparedStatement::setObject( sal_Int32 parameterIndex, const Any
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -497,7 +498,7 @@ void SAL_CALL OPreparedStatement::setShort( sal_Int32 parameterIndex, sal_Int16
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -507,7 +508,7 @@ void SAL_CALL OPreparedStatement::setBytes( sal_Int32 parameterIndex, const Sequ
|
|||||||
(void) parameterIndex;
|
(void) parameterIndex;
|
||||||
(void) x;
|
(void) x;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -519,7 +520,7 @@ void SAL_CALL OPreparedStatement::setCharacterStream( sal_Int32 parameterIndex,
|
|||||||
(void) x;
|
(void) x;
|
||||||
(void) length;
|
(void) length;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -530,7 +531,7 @@ void SAL_CALL OPreparedStatement::setBinaryStream( sal_Int32 parameterIndex, con
|
|||||||
(void) x;
|
(void) x;
|
||||||
(void) length;
|
(void) length;
|
||||||
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
::osl::MutexGuard aGuard( m_pConnection->getMutex() );
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@@ -567,7 +568,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
|
|||||||
case PROPERTY_ID_USEBOOKMARKS:
|
case PROPERTY_ID_USEBOOKMARKS:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
OStatement_Base::setFastPropertyValue_NoBroadcast(nHandle,rValue);
|
OStatementCommonBase::setFastPropertyValue_NoBroadcast(nHandle,rValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -58,10 +58,10 @@ namespace connectivity
|
|||||||
::com::sun::star::sdbc::XParameters,
|
::com::sun::star::sdbc::XParameters,
|
||||||
::com::sun::star::sdbc::XPreparedBatchExecution,
|
::com::sun::star::sdbc::XPreparedBatchExecution,
|
||||||
::com::sun::star::sdbc::XResultSetMetaDataSupplier,
|
::com::sun::star::sdbc::XResultSetMetaDataSupplier,
|
||||||
::com::sun::star::lang::XServiceInfo> OPreparedStatement_BASE;
|
::com::sun::star::lang::XServiceInfo> OPreparedStatement_Base;
|
||||||
|
|
||||||
class OPreparedStatement : public OStatement_Base,
|
class OPreparedStatement : public OStatementCommonBase,
|
||||||
public OPreparedStatement_BASE
|
public OPreparedStatement_Base
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
struct Parameter
|
struct Parameter
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
#include "FResultSet.hxx"
|
#include "FResultSet.hxx"
|
||||||
#include "Util.hxx"
|
#include "Util.hxx"
|
||||||
|
|
||||||
|
#include <comphelper/sequence.hxx>
|
||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
#include <osl/thread.h>
|
#include <osl/thread.h>
|
||||||
#include <rtl/ustrbuf.hxx>
|
#include <rtl/ustrbuf.hxx>
|
||||||
@@ -84,20 +85,12 @@ IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.
|
|||||||
|
|
||||||
void SAL_CALL OStatement::acquire() throw()
|
void SAL_CALL OStatement::acquire() throw()
|
||||||
{
|
{
|
||||||
OStatement_Base::acquire();
|
OStatementCommonBase::acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OStatement::release() throw()
|
void SAL_CALL OStatement::release() throw()
|
||||||
{
|
{
|
||||||
OStatement_Base::release();
|
OStatementCommonBase::release();
|
||||||
}
|
|
||||||
|
|
||||||
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
|
|
||||||
{
|
|
||||||
Any aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
|
|
||||||
if(!aRet.hasValue())
|
|
||||||
aRet = OStatement_Base::queryInterface(rType);
|
|
||||||
return aRet;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- XStatement -----------------------------------------------------------
|
// ---- XStatement -----------------------------------------------------------
|
||||||
@@ -106,7 +99,7 @@ sal_Int32 SAL_CALL OStatement::executeUpdate(const OUString& sqlIn)
|
|||||||
{
|
{
|
||||||
// TODO: close ResultSet if existing -- so so in all 3 execute methods.
|
// TODO: close ResultSet if existing -- so so in all 3 execute methods.
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
const OUString sql = sanitizeSqlString(sqlIn);
|
const OUString sql = sanitizeSqlString(sqlIn);
|
||||||
|
|
||||||
@@ -132,7 +125,7 @@ uno::Reference< XResultSet > SAL_CALL OStatement::executeQuery(const OUString& s
|
|||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
const OUString sql = sanitizeSqlString(sqlIn);
|
const OUString sql = sanitizeSqlString(sqlIn);
|
||||||
|
|
||||||
@@ -179,7 +172,7 @@ sal_Bool SAL_CALL OStatement::execute(const OUString& sqlIn)
|
|||||||
"Got called with sql: " << sqlIn);
|
"Got called with sql: " << sqlIn);
|
||||||
|
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
XSQLDA* pOutSqlda = 0;
|
XSQLDA* pOutSqlda = 0;
|
||||||
isc_stmt_handle aStatementHandle = 0;
|
isc_stmt_handle aStatementHandle = 0;
|
||||||
@@ -216,8 +209,26 @@ uno::Reference< XConnection > SAL_CALL OStatement::getConnection()
|
|||||||
throw(SQLException, RuntimeException)
|
throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
return (uno::Reference< XConnection >)m_pConnection;
|
return (uno::Reference< XConnection >)m_pConnection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Any SAL_CALL OStatement::queryInterface( const Type & rType ) throw(RuntimeException)
|
||||||
|
{
|
||||||
|
Any aRet = OStatement_Base::queryInterface(rType);
|
||||||
|
if(!aRet.hasValue())
|
||||||
|
aRet = ::cppu::queryInterface(rType,static_cast< XBatchExecution*> (this));
|
||||||
|
if(!aRet.hasValue())
|
||||||
|
aRet = OStatementCommonBase::queryInterface(rType);
|
||||||
|
return aRet;
|
||||||
|
}
|
||||||
|
|
||||||
|
uno::Sequence< Type > SAL_CALL OStatement::getTypes()
|
||||||
|
throw(RuntimeException)
|
||||||
|
{
|
||||||
|
return concatSequences(OStatement_Base::getTypes(),
|
||||||
|
OStatementCommonBase::getTypes());
|
||||||
|
}
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -49,10 +49,10 @@ namespace connectivity
|
|||||||
// once the general restructuring of Statement/PreparedStatement is
|
// once the general restructuring of Statement/PreparedStatement is
|
||||||
// complete.
|
// complete.
|
||||||
typedef ::cppu::ImplHelper1< ::com::sun::star::sdbc::XStatement >
|
typedef ::cppu::ImplHelper1< ::com::sun::star::sdbc::XStatement >
|
||||||
OStatementStatement_BASE;
|
OStatement_Base;
|
||||||
|
|
||||||
class OStatement : public OStatement_Base,
|
class OStatement : public OStatementCommonBase,
|
||||||
public OStatementStatement_BASE,
|
public OStatement_Base,
|
||||||
public ::com::sun::star::sdbc::XBatchExecution,
|
public ::com::sun::star::sdbc::XBatchExecution,
|
||||||
public ::com::sun::star::lang::XServiceInfo
|
public ::com::sun::star::lang::XServiceInfo
|
||||||
{
|
{
|
||||||
@@ -61,12 +61,11 @@ namespace connectivity
|
|||||||
public:
|
public:
|
||||||
// a constructor, which is required for returning objects:
|
// a constructor, which is required for returning objects:
|
||||||
OStatement( OConnection* _pConnection)
|
OStatement( OConnection* _pConnection)
|
||||||
: OStatement_Base( _pConnection)
|
: OStatementCommonBase( _pConnection)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
DECLARE_SERVICE_INFO();
|
DECLARE_SERVICE_INFO();
|
||||||
|
|
||||||
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
|
||||||
virtual void SAL_CALL acquire() throw();
|
virtual void SAL_CALL acquire() throw();
|
||||||
virtual void SAL_CALL release() throw();
|
virtual void SAL_CALL release() throw();
|
||||||
|
|
||||||
@@ -87,6 +86,17 @@ namespace connectivity
|
|||||||
virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL addBatch( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
||||||
virtual void SAL_CALL clearBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
virtual void SAL_CALL clearBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
||||||
virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
|
// XInterface
|
||||||
|
virtual ::com::sun::star::uno::Any SAL_CALL
|
||||||
|
queryInterface(const ::com::sun::star::uno::Type & rType)
|
||||||
|
throw(::com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
|
//XTypeProvider
|
||||||
|
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL
|
||||||
|
getTypes()
|
||||||
|
throw(::com::sun::star::uno::RuntimeException);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -59,20 +59,20 @@ using namespace ::osl;
|
|||||||
using namespace ::rtl;
|
using namespace ::rtl;
|
||||||
using namespace ::std;
|
using namespace ::std;
|
||||||
|
|
||||||
OStatement_Base::OStatement_Base(OConnection* _pConnection)
|
OStatementCommonBase::OStatementCommonBase(OConnection* _pConnection)
|
||||||
: OStatement_BASE(_pConnection->getMutex()),
|
: OStatementCommonBase_Base(_pConnection->getMutex()),
|
||||||
OPropertySetHelper(OStatement_BASE::rBHelper),
|
OPropertySetHelper(OStatementCommonBase_Base::rBHelper),
|
||||||
m_pConnection(_pConnection),
|
m_pConnection(_pConnection),
|
||||||
rBHelper(OStatement_BASE::rBHelper)
|
rBHelper(OStatementCommonBase_Base::rBHelper)
|
||||||
{
|
{
|
||||||
m_pConnection->acquire();
|
m_pConnection->acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
OStatement_Base::~OStatement_Base()
|
OStatementCommonBase::~OStatementCommonBase()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void OStatement_Base::disposeResultSet()
|
void OStatementCommonBase::disposeResultSet()
|
||||||
{
|
{
|
||||||
//free the cursor if alive
|
//free the cursor if alive
|
||||||
// uno::Reference< XComponent > xComp(m_xResultSet.get(), UNO_QUERY);
|
// uno::Reference< XComponent > xComp(m_xResultSet.get(), UNO_QUERY);
|
||||||
@@ -82,47 +82,47 @@ void OStatement_Base::disposeResultSet()
|
|||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(RuntimeException)
|
Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(RuntimeException)
|
||||||
{
|
{
|
||||||
Any aRet = OStatement_BASE::queryInterface(rType);
|
Any aRet = OStatementCommonBase_Base::queryInterface(rType);
|
||||||
if(!aRet.hasValue())
|
if(!aRet.hasValue())
|
||||||
aRet = OPropertySetHelper::queryInterface(rType);
|
aRet = OPropertySetHelper::queryInterface(rType);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
|
Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeException)
|
||||||
{
|
{
|
||||||
::cppu::OTypeCollection aTypes(
|
::cppu::OTypeCollection aTypes(
|
||||||
::cppu::UnoType< uno::Reference< XMultiPropertySet > >::get(),
|
::cppu::UnoType< uno::Reference< XMultiPropertySet > >::get(),
|
||||||
::cppu::UnoType< uno::Reference< XFastPropertySet > >::get(),
|
::cppu::UnoType< uno::Reference< XFastPropertySet > >::get(),
|
||||||
::cppu::UnoType< uno::Reference< XPropertySet > >::get());
|
::cppu::UnoType< uno::Reference< XPropertySet > >::get());
|
||||||
|
|
||||||
return concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
|
return concatSequences(aTypes.getTypes(),OStatementCommonBase_Base::getTypes());
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
void SAL_CALL OStatement_Base::cancel( ) throw(RuntimeException)
|
void SAL_CALL OStatementCommonBase::cancel( ) throw(RuntimeException)
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
// cancel the current sql statement
|
// cancel the current sql statement
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
void SAL_CALL OStatement_Base::close( ) throw(SQLException, RuntimeException)
|
void SAL_CALL OStatementCommonBase::close( ) throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
SAL_INFO("connectivity.firebird", "close().");
|
SAL_INFO("connectivity.firebird", "close().");
|
||||||
|
|
||||||
{
|
{
|
||||||
MutexGuard aGuard(m_pConnection->getMutex());
|
MutexGuard aGuard(m_pConnection->getMutex());
|
||||||
checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
}
|
}
|
||||||
dispose();
|
dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
OUString OStatement_Base::sanitizeSqlString(const OUString& sqlIn)
|
OUString OStatementCommonBase::sanitizeSqlString(const OUString& sqlIn)
|
||||||
{
|
{
|
||||||
// TODO: verify this is all we need.
|
// TODO: verify this is all we need.
|
||||||
static const sal_Unicode pattern('"');
|
static const sal_Unicode pattern('"');
|
||||||
@@ -130,7 +130,7 @@ OUString OStatement_Base::sanitizeSqlString(const OUString& sqlIn)
|
|||||||
return sqlIn.replace(pattern, empty);
|
return sqlIn.replace(pattern, empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
int OStatement_Base::prepareAndDescribeStatement(const OUString& sqlIn,
|
int OStatementCommonBase::prepareAndDescribeStatement(const OUString& sqlIn,
|
||||||
isc_stmt_handle& aStatementHandle,
|
isc_stmt_handle& aStatementHandle,
|
||||||
XSQLDA*& pOutSqlda,
|
XSQLDA*& pOutSqlda,
|
||||||
XSQLDA* pInSqlda)
|
XSQLDA* pInSqlda)
|
||||||
@@ -214,25 +214,25 @@ int OStatement_Base::prepareAndDescribeStatement(const OUString& sqlIn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---- XMultipleResults - UNSUPPORTED ----------------------------------------
|
// ---- XMultipleResults - UNSUPPORTED ----------------------------------------
|
||||||
uno::Reference< XResultSet > SAL_CALL OStatement_Base::getResultSet() throw(SQLException, RuntimeException)
|
uno::Reference< XResultSet > SAL_CALL OStatementCommonBase::getResultSet() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
// TODO: verify we really can't support this
|
// TODO: verify we really can't support this
|
||||||
return uno::Reference< XResultSet >();
|
return uno::Reference< XResultSet >();
|
||||||
// MutexGuard aGuard( m_aMutex );
|
// MutexGuard aGuard( m_aMutex );
|
||||||
// checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
// checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
|
|
||||||
// return m_xResultSet;
|
// return m_xResultSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL OStatement_Base::getMoreResults() throw(SQLException, RuntimeException)
|
sal_Bool SAL_CALL OStatementCommonBase::getMoreResults() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
// TODO: verify we really can't support this
|
// TODO: verify we really can't support this
|
||||||
return sal_False;
|
return sal_False;
|
||||||
// MutexGuard aGuard( m_aMutex );
|
// MutexGuard aGuard( m_aMutex );
|
||||||
// checkDisposed(OStatement_BASE::rBHelper.bDisposed);
|
// checkDisposed(OStatementCommonBase_Base::rBHelper.bDisposed);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Int32 SAL_CALL OStatement_Base::getUpdateCount() throw(SQLException, RuntimeException)
|
sal_Int32 SAL_CALL OStatementCommonBase::getUpdateCount() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
// TODO: verify we really can't support this
|
// TODO: verify we really can't support this
|
||||||
return 0;
|
return 0;
|
||||||
@@ -240,16 +240,16 @@ sal_Int32 SAL_CALL OStatement_Base::getUpdateCount() throw(SQLException, Runtime
|
|||||||
|
|
||||||
|
|
||||||
// ---- XWarningsSupplier - UNSUPPORTED ----------------------------------------
|
// ---- XWarningsSupplier - UNSUPPORTED ----------------------------------------
|
||||||
Any SAL_CALL OStatement_Base::getWarnings() throw(SQLException, RuntimeException)
|
Any SAL_CALL OStatementCommonBase::getWarnings() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
return Any();
|
return Any();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OStatement_Base::clearWarnings() throw(SQLException, RuntimeException)
|
void SAL_CALL OStatementCommonBase::clearWarnings() throw(SQLException, RuntimeException)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
::cppu::IPropertyArrayHelper* OStatement_Base::createArrayHelper( ) const
|
::cppu::IPropertyArrayHelper* OStatementCommonBase::createArrayHelper( ) const
|
||||||
{
|
{
|
||||||
// this properties are define by the service statement
|
// this properties are define by the service statement
|
||||||
// they must in alphabetic order
|
// they must in alphabetic order
|
||||||
@@ -271,12 +271,12 @@ void SAL_CALL OStatement_Base::clearWarnings() throw(SQLException, RuntimeExcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
::cppu::IPropertyArrayHelper & OStatement_Base::getInfoHelper()
|
::cppu::IPropertyArrayHelper & OStatementCommonBase::getInfoHelper()
|
||||||
{
|
{
|
||||||
return *const_cast<OStatement_Base*>(this)->getArrayHelper();
|
return *const_cast<OStatementCommonBase*>(this)->getArrayHelper();
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
sal_Bool OStatement_Base::convertFastPropertyValue(
|
sal_Bool OStatementCommonBase::convertFastPropertyValue(
|
||||||
Any & rConvertedValue,
|
Any & rConvertedValue,
|
||||||
Any & rOldValue,
|
Any & rOldValue,
|
||||||
sal_Int32 nHandle,
|
sal_Int32 nHandle,
|
||||||
@@ -292,7 +292,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
|
|||||||
return bConverted;
|
return bConverted;
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
|
void OStatementCommonBase::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
|
||||||
{
|
{
|
||||||
(void) rValue;
|
(void) rValue;
|
||||||
// set the value to what ever is necessary
|
// set the value to what ever is necessary
|
||||||
@@ -313,7 +313,7 @@ void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const A
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
|
void OStatementCommonBase::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
|
||||||
{
|
{
|
||||||
(void) rValue;
|
(void) rValue;
|
||||||
switch(nHandle)
|
switch(nHandle)
|
||||||
@@ -333,17 +333,17 @@ void OStatement_Base::getFastPropertyValue(Any& rValue,sal_Int32 nHandle) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OStatement_Base::acquire() throw()
|
void SAL_CALL OStatementCommonBase::acquire() throw()
|
||||||
{
|
{
|
||||||
OStatement_BASE::acquire();
|
OStatementCommonBase_Base::acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OStatement_Base::release() throw()
|
void SAL_CALL OStatementCommonBase::release() throw()
|
||||||
{
|
{
|
||||||
OStatement_BASE::release();
|
OStatementCommonBase_Base::release();
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatement_Base::getPropertySetInfo( ) throw(RuntimeException)
|
uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OStatementCommonBase::getPropertySetInfo( ) throw(RuntimeException)
|
||||||
{
|
{
|
||||||
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
|
return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
|
||||||
}
|
}
|
||||||
|
@@ -61,11 +61,11 @@ namespace connectivity
|
|||||||
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::sdbc::XWarningsSupplier,
|
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::sdbc::XWarningsSupplier,
|
||||||
::com::sun::star::util::XCancellable,
|
::com::sun::star::util::XCancellable,
|
||||||
::com::sun::star::sdbc::XCloseable,
|
::com::sun::star::sdbc::XCloseable,
|
||||||
::com::sun::star::sdbc::XMultipleResults> OStatement_BASE;
|
::com::sun::star::sdbc::XMultipleResults> OStatementCommonBase_Base;
|
||||||
|
|
||||||
class OStatement_Base : public OStatement_BASE,
|
class OStatementCommonBase : public OStatementCommonBase_Base,
|
||||||
public ::cppu::OPropertySetHelper,
|
public ::cppu::OPropertySetHelper,
|
||||||
public OPropertyArrayUsageHelper<OStatement_Base>
|
public OPropertyArrayUsageHelper<OStatementCommonBase>
|
||||||
|
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
@@ -98,7 +98,7 @@ namespace connectivity
|
|||||||
virtual void SAL_CALL getFastPropertyValue(
|
virtual void SAL_CALL getFastPropertyValue(
|
||||||
::com::sun::star::uno::Any& rValue,
|
::com::sun::star::uno::Any& rValue,
|
||||||
sal_Int32 nHandle) const;
|
sal_Int32 nHandle) const;
|
||||||
virtual ~OStatement_Base();
|
virtual ~OStatementCommonBase();
|
||||||
int prepareAndDescribeStatement(const OUString& sqlIn,
|
int prepareAndDescribeStatement(const OUString& sqlIn,
|
||||||
isc_stmt_handle& aStatementHandle,
|
isc_stmt_handle& aStatementHandle,
|
||||||
XSQLDA*& pOutSqlda,
|
XSQLDA*& pOutSqlda,
|
||||||
@@ -107,11 +107,11 @@ namespace connectivity
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
::cppu::OBroadcastHelper& rBHelper;
|
::cppu::OBroadcastHelper& rBHelper;
|
||||||
OStatement_Base(OConnection* _pConnection);
|
OStatementCommonBase(OConnection* _pConnection);
|
||||||
using OStatement_BASE::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >;
|
using OStatementCommonBase_Base::operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >;
|
||||||
|
|
||||||
// OComponentHelper
|
// OComponentHelper
|
||||||
virtual void SAL_CALL disposing(void){OStatement_BASE::disposing();}
|
virtual void SAL_CALL disposing(void){OStatementCommonBase_Base::disposing();}
|
||||||
// XInterface
|
// XInterface
|
||||||
virtual void SAL_CALL release() throw();
|
virtual void SAL_CALL release() throw();
|
||||||
virtual void SAL_CALL acquire() throw();
|
virtual void SAL_CALL acquire() throw();
|
||||||
|
Reference in New Issue
Block a user