summaryrefslogtreecommitdiff
path: root/mysqlc/source/mysqlc_preparedstatement.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mysqlc/source/mysqlc_preparedstatement.cxx')
-rw-r--r--mysqlc/source/mysqlc_preparedstatement.cxx82
1 files changed, 0 insertions, 82 deletions
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index 6ec219d45959..1d9b94c761ee 100644
--- a/mysqlc/source/mysqlc_preparedstatement.cxx
+++ b/mysqlc/source/mysqlc_preparedstatement.cxx
@@ -51,13 +51,11 @@ using ::osl::MutexGuard;
using mysqlc_sdbc_driver::getStringFromAny;
-/* {{{ my_i_to_a() -I- */
static inline char * my_i_to_a(char * buf, size_t buf_size, int a)
{
snprintf(buf, buf_size, "%d", a);
return buf;
}
-/* }}} */
OUString OPreparedStatement::getImplementationName()
throw (css::uno::RuntimeException, std::exception)
@@ -79,7 +77,6 @@ sal_Bool OPreparedStatement::supportsService(OUString const & ServiceName)
return cppu::supportsService(this, ServiceName);
}
-/* {{{ OPreparedStatement::OPreparedStatement() -I- */
OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedStatement * _cppPrepStmt)
:OCommonStatement(_pConnection, _cppPrepStmt)
{
@@ -93,38 +90,30 @@ OPreparedStatement::OPreparedStatement(OConnection* _pConnection, sql::PreparedS
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::~OPreparedStatement() -I- */
OPreparedStatement::~OPreparedStatement()
{
OSL_TRACE("OPreparedStatement::~OPreparedStatement");
}
-/* }}} */
-/* {{{ OPreparedStatement::acquire() -I- */
void SAL_CALL OPreparedStatement::acquire()
throw()
{
OSL_TRACE("OPreparedStatement::acquire");
OCommonStatement::acquire();
}
-/* }}} */
-/* {{{ OPreparedStatement::release() -I- */
void SAL_CALL OPreparedStatement::release()
throw()
{
OSL_TRACE("OPreparedStatement::release");
OCommonStatement::release();
}
-/* }}} */
-/* {{{ OPreparedStatement::queryInterface() -I- */
Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType)
throw(RuntimeException, std::exception)
{
@@ -135,20 +124,16 @@ Any SAL_CALL OPreparedStatement::queryInterface(const Type & rType)
}
return (aRet);
}
-/* }}} */
-/* {{{ OPreparedStatement::getPropertySetInfo() -I- */
Sequence< Type > SAL_CALL OPreparedStatement::getTypes()
throw(RuntimeException, std::exception)
{
OSL_TRACE("OPreparedStatement::getTypes");
return concatSequences(OPreparedStatement_BASE::getTypes(), OCommonStatement::getTypes());
}
-/* }}} */
-/* {{{ OPreparedStatement::getMetaData() -I- */
Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
throw(SQLException, RuntimeException, std::exception)
{
@@ -170,10 +155,8 @@ Reference< XResultSetMetaData > SAL_CALL OPreparedStatement::getMetaData()
}
return m_xMetaData;
}
-/* }}} */
-/* {{{ OPreparedStatement::close() -I- */
void SAL_CALL OPreparedStatement::close()
throw(SQLException, RuntimeException, std::exception)
{
@@ -193,10 +176,8 @@ void SAL_CALL OPreparedStatement::close()
// Remove this Statement object from the Connection object's
// list
}
-/* }}} */
-/* {{{ OPreparedStatement::execute() -I- */
sal_Bool SAL_CALL OPreparedStatement::execute()
throw(SQLException, RuntimeException, std::exception)
{
@@ -212,10 +193,8 @@ sal_Bool SAL_CALL OPreparedStatement::execute()
}
return success;
}
-/* }}} */
-/* {{{ OPreparedStatement::executeUpdate() -I- */
sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
throw(SQLException, RuntimeException, std::exception)
{
@@ -231,10 +210,8 @@ sal_Int32 SAL_CALL OPreparedStatement::executeUpdate()
}
return affectedRows;
}
-/* }}} */
-/* {{{ OPreparedStatement::getPropertySetInfo() -I- */
void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const OUString& x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -252,10 +229,8 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 parameter, const OUString&
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::getConnection() -I- */
Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
throw(SQLException, RuntimeException, std::exception)
{
@@ -265,7 +240,6 @@ Reference< XConnection > SAL_CALL OPreparedStatement::getConnection()
return (Reference< XConnection >)m_pConnection;
}
-/* }}} */
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery(const OUString& sql)
throw(SQLException, RuntimeException, std::exception)
@@ -285,7 +259,6 @@ sal_Bool SAL_CALL OPreparedStatement::execute( const OUString& sql )
return OCommonStatement::execute( sql );
}
-/* {{{ OPreparedStatement::executeQuery() -I- */
Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
throw(SQLException, RuntimeException, std::exception)
{
@@ -302,10 +275,8 @@ Reference< XResultSet > SAL_CALL OPreparedStatement::executeQuery()
}
return xResultSet;
}
-/* }}} */
-/* {{{ OPreparedStatement::setBoolean() -I- */
void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 parameter, sal_Bool x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -322,10 +293,8 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 parameter, sal_Bool x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setByte() -I- */
void SAL_CALL OPreparedStatement::setByte(sal_Int32 parameter, sal_Int8 x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -342,10 +311,8 @@ void SAL_CALL OPreparedStatement::setByte(sal_Int32 parameter, sal_Int8 x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setDate() -I- */
void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData)
throw(SQLException, RuntimeException, std::exception)
{
@@ -370,10 +337,8 @@ void SAL_CALL OPreparedStatement::setDate(sal_Int32 parameter, const Date& aData
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setTime() -I- */
void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal)
throw(SQLException, RuntimeException, std::exception)
{
@@ -398,10 +363,8 @@ void SAL_CALL OPreparedStatement::setTime(sal_Int32 parameter, const Time& aVal)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setTimestamp() -I- */
void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 parameter, const DateTime& aVal)
throw(SQLException, RuntimeException, std::exception)
{
@@ -434,10 +397,8 @@ void SAL_CALL OPreparedStatement::setTimestamp(sal_Int32 parameter, const DateTi
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setDouble() -I- */
void SAL_CALL OPreparedStatement::setDouble(sal_Int32 parameter, double x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -454,10 +415,8 @@ void SAL_CALL OPreparedStatement::setDouble(sal_Int32 parameter, double x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setFloat() -I- */
void SAL_CALL OPreparedStatement::setFloat(sal_Int32 parameter, float x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -474,10 +433,8 @@ void SAL_CALL OPreparedStatement::setFloat(sal_Int32 parameter, float x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setInt() -I- */
void SAL_CALL OPreparedStatement::setInt(sal_Int32 parameter, sal_Int32 x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -494,10 +451,8 @@ void SAL_CALL OPreparedStatement::setInt(sal_Int32 parameter, sal_Int32 x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setLong() -I- */
void SAL_CALL OPreparedStatement::setLong(sal_Int32 parameter, sal_Int64 aVal)
throw(SQLException, RuntimeException, std::exception)
{
@@ -514,10 +469,8 @@ void SAL_CALL OPreparedStatement::setLong(sal_Int32 parameter, sal_Int64 aVal)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setNull() -I- */
void SAL_CALL OPreparedStatement::setNull(sal_Int32 parameter, sal_Int32 sqlType)
throw(SQLException, RuntimeException, std::exception)
{
@@ -534,10 +487,8 @@ void SAL_CALL OPreparedStatement::setNull(sal_Int32 parameter, sal_Int32 sqlType
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setClob() -U- */
void SAL_CALL OPreparedStatement::setClob(sal_Int32 parameter, const Reference< XClob >& /* x */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -548,10 +499,8 @@ void SAL_CALL OPreparedStatement::setClob(sal_Int32 parameter, const Reference<
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setClob", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setBlob() -U- */
void SAL_CALL OPreparedStatement::setBlob(sal_Int32 parameter, const Reference< XBlob >& /* x */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -562,10 +511,8 @@ void SAL_CALL OPreparedStatement::setBlob(sal_Int32 parameter, const Reference<
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setBlob", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setArray() -U- */
void SAL_CALL OPreparedStatement::setArray(sal_Int32 parameter, const Reference< XArray >& /* x */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -576,10 +523,8 @@ void SAL_CALL OPreparedStatement::setArray(sal_Int32 parameter, const Reference<
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setArray", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setRef() -U- */
void SAL_CALL OPreparedStatement::setRef(sal_Int32 parameter, const Reference< XRef >& /* x */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -590,7 +535,6 @@ void SAL_CALL OPreparedStatement::setRef(sal_Int32 parameter, const Reference< X
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setRef", *this);
}
-/* }}} */
namespace
{
@@ -621,7 +565,6 @@ namespace
}
}
-/* {{{ OPreparedStatement::setObjectWithInfo() -U- */
void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, const Any& _value, sal_Int32 _targetSqlType, sal_Int32 /* scale */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -755,10 +698,8 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo(sal_Int32 _parameterIndex, c
break;
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setObjectNull() -U- */
void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /* sqlType */, const OUString& /* typeName */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -769,10 +710,8 @@ void SAL_CALL OPreparedStatement::setObjectNull(sal_Int32 parameter, sal_Int32 /
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setObjectNull", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setObject() -U- */
void SAL_CALL OPreparedStatement::setObject(sal_Int32 parameter, const Any& /* x */)
throw(SQLException, RuntimeException, std::exception)
{
@@ -783,10 +722,8 @@ void SAL_CALL OPreparedStatement::setObject(sal_Int32 parameter, const Any& /* x
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setObject", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setShort() -I- */
void SAL_CALL OPreparedStatement::setShort(sal_Int32 parameter, sal_Int16 x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -803,10 +740,8 @@ void SAL_CALL OPreparedStatement::setShort(sal_Int32 parameter, sal_Int16 x)
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setBytes() -I- */
void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence< sal_Int8 >& x)
throw(SQLException, RuntimeException, std::exception)
{
@@ -824,10 +759,8 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 parameter, const Sequence<
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::setCharacterStream() -U- */
void SAL_CALL OPreparedStatement::setCharacterStream(sal_Int32 parameter,
const Reference< XInputStream >& /* x */,
sal_Int32 /* length */)
@@ -840,10 +773,8 @@ void SAL_CALL OPreparedStatement::setCharacterStream(sal_Int32 parameter,
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setCharacterStream", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::setBinaryStream() -U- */
void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter,
const Reference< XInputStream >& /* x */,
sal_Int32 /* length */)
@@ -856,10 +787,8 @@ void SAL_CALL OPreparedStatement::setBinaryStream(sal_Int32 parameter,
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::setBinaryStream", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::clearParameters() -I- */
void SAL_CALL OPreparedStatement::clearParameters()
throw(SQLException, RuntimeException, std::exception)
{
@@ -875,30 +804,24 @@ void SAL_CALL OPreparedStatement::clearParameters()
mysqlc_sdbc_driver::translateAndThrow(e, *this, m_pConnection->getConnectionEncoding());
}
}
-/* }}} */
-/* {{{ OPreparedStatement::clearBatch() -U- */
void SAL_CALL OPreparedStatement::clearBatch()
throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("OPreparedStatement::clearBatch");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::addBatch() -U- */
void SAL_CALL OPreparedStatement::addBatch()
throw(SQLException, RuntimeException, std::exception)
{
OSL_TRACE("OPreparedStatement::addBatch");
mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this);
}
-/* }}} */
-/* {{{ OPreparedStatement::executeBatch() -I- */
Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
throw(SQLException, RuntimeException, std::exception)
{
@@ -906,10 +829,8 @@ Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch()
Sequence< sal_Int32 > aRet= Sequence< sal_Int32 > ();
return aRet;
}
-/* }}} */
-/* {{{ OPreparedStatement::setFastPropertyValue_NoBroadcast() -I- */
void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue)
throw(Exception, std::exception)
{
@@ -929,10 +850,8 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
OPreparedStatement::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
}
-/* }}} */
-/* {{{ OPreparedStatement::checkParameterIndex() -I- */
void OPreparedStatement::checkParameterIndex(sal_Int32 column)
{
OSL_TRACE("OPreparedStatement::checkColumnIndex");
@@ -941,7 +860,6 @@ void OPreparedStatement::checkParameterIndex(sal_Int32 column)
throw SQLException(buf, *this, OUString(), 1, Any ());
}
}
-/* }}} */
/*