37void MacabPreparedStatement::checkAndResizeParameters(sal_Int32 nParams)
53 xColumns = m_aSQLIterator.getSelectColumns();
58 STR_INVALID_COLUMN_SELECTION
76 STR_INVALID_PARA_COUNT
104 MacabPreparedStatement_BASE::disposing();
115 ::osl::MutexGuard aGuard(
m_aMutex );
116 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
120 const OSQLTables& xTabs = m_aSQLIterator.getTables();
127 if(xTabs.size() == 1 && !m_aSQLIterator.hasErrors() )
128 sTableName = xTabs.begin()->first;
140 ::osl::MutexGuard aGuard(
m_aMutex );
141 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
148 catch (SQLException &) {
158 ::osl::MutexGuard aGuard(
m_aMutex );
159 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
168 ::osl::MutexGuard aGuard(
m_aMutex );
169 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
177 ::osl::MutexGuard aGuard(
m_aMutex );
178 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
180 return m_pConnection;
185 ::osl::MutexGuard aGuard(
m_aMutex );
186 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
195 ::osl::MutexGuard aGuard(
m_aMutex );
196 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
200 (*m_aParameterRow)[parameterIndex - 1].setNull();
245 ::osl::MutexGuard aGuard(
m_aMutex );
246 checkDisposed(MacabCommonStatement_BASE::rBHelper.bDisposed);
250 (*m_aParameterRow)[parameterIndex - 1] =
x;
288 const OUString sError( m_pConnection->getResources().getResourceStringWithSubstitution(
289 STR_UNKNOWN_PARA_TYPE,
290 "$position$", OUString::number(parameterIndex)
IMPLEMENT_SERVICE_INFO(MacabPreparedStatement, "com.sun.star.sdbc.drivers.MacabPreparedStatement", "com.sun.star.sdbc.PreparedStatement")
helper class for accessing resources shared by different libraries in the connectivity module
OUString getResourceString(TranslateId pResId) const
loads a string from the shared resource file
static const OUString & getDefaultTableName()
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void SAL_CALL close() override
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery(const OUString &sql) override
virtual void SAL_CALL setCharacterStream(sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual void SAL_CALL setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString &typeName) override
virtual void SAL_CALL setBytes(sal_Int32 parameterIndex, const css::uno::Sequence< sal_Int8 > &x) override
virtual void SAL_CALL setObjectWithInfo(sal_Int32 parameterIndex, const css::uno::Any &x, sal_Int32 targetSqlType, sal_Int32 scale) override
OValueRow m_aParameterRow
virtual void SAL_CALL setBoolean(sal_Int32 parameterIndex, sal_Bool x) override
virtual void SAL_CALL setFloat(sal_Int32 parameterIndex, float x) override
virtual void SAL_CALL setTime(sal_Int32 parameterIndex, const css::util::Time &x) override
virtual void SAL_CALL setNull(sal_Int32 parameterIndex, sal_Int32 sqlType) override
virtual void SAL_CALL setShort(sal_Int32 parameterIndex, sal_Int16 x) override
virtual sal_Int32 SAL_CALL executeUpdate() override
virtual sal_Bool SAL_CALL execute() override
virtual void getNextParameter(OUString &rParameter) const override
virtual void SAL_CALL setLong(sal_Int32 parameterIndex, sal_Int64 x) override
virtual void SAL_CALL clearParameters() override
virtual void SAL_CALL setString(sal_Int32 parameterIndex, const OUString &x) override
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData() override
virtual void resetParameters() const override
virtual ~MacabPreparedStatement() override
::rtl::Reference< MacabResultSetMetaData > m_xMetaData
virtual void SAL_CALL setClob(sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XClob > &x) override
void checkAndResizeParameters(sal_Int32 nParams)
virtual void SAL_CALL disposing() override
sal_Int32 m_nParameterIndex
virtual void SAL_CALL setRef(sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XRef > &x) override
void setMacabFields() const
virtual void SAL_CALL setTimestamp(sal_Int32 parameterIndex, const css::util::DateTime &x) override
virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery() override
virtual void SAL_CALL setDouble(sal_Int32 parameterIndex, double x) override
virtual void SAL_CALL setInt(sal_Int32 parameterIndex, sal_Int32 x) override
virtual void SAL_CALL setBinaryStream(sal_Int32 parameterIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection() override
virtual void SAL_CALL setArray(sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XArray > &x) override
virtual void SAL_CALL close() override
virtual void SAL_CALL setBlob(sal_Int32 parameterIndex, const css::uno::Reference< css::sdbc::XBlob > &x) override
MacabPreparedStatement(MacabConnection *_pConnection, const OUString &sql)
virtual void SAL_CALL setByte(sal_Int32 parameterIndex, sal_Int8 x) override
virtual void SAL_CALL setDate(sal_Int32 parameterIndex, const css::util::Date &x) override
virtual void SAL_CALL setObject(sal_Int32 parameterIndex, const css::uno::Any &x) override
::cppu::ImplInheritanceHelper< MacabCommonStatement, css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XResultSetMetaDataSupplier, css::lang::XServiceInfo > MacabPreparedStatement_BASE
std::map< OUString, OSQLTable, comphelper::UStringMixLess > OSQLTables
ODeleteVector< ORowSetValue > OValueVector
void checkDisposed(bool _bThrow)
#define PROPERTY_ID_RESULTSETTYPE
#define PROPERTY_ID_USEBOOKMARKS
#define PROPERTY_ID_RESULTSETCONCURRENCY
#define PROPERTY_ID_FETCHDIRECTION