diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx index 588fb6e..a60e3f2 100644 --- a/mysqlc/source/mysqlc_connection.cxx +++ b/mysqlc/source/mysqlc_connection.cxx @@ -60,7 +60,6 @@ using ::osl::MutexGuard; #define MYSQLC_URI_PREFIX "sdbc:mysqlc:" -/* {{{ OConnection::OConnection() -I- */ OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver) :OMetaConnection_BASE(m_aMutex) ,OSubComponent((::cppu::OWeakObject*)&_rDriver, this) @@ -74,10 +73,8 @@ OConnection::OConnection(MysqlCDriver& _rDriver, sql::Driver * _cppDriver) OSL_TRACE("OConnection::OConnection"); m_rDriver.acquire(); } -/* }}} */ -/* {{{ OConnection::OConnection() -I- */ OConnection::~OConnection() { OSL_TRACE("OConnection::~OConnection"); @@ -86,19 +83,15 @@ OConnection::~OConnection() } m_rDriver.release(); } -/* }}} */ -/* {{{ OConnection::release() -I- */ void SAL_CALL OConnection::release() throw() { OSL_TRACE("OConnection::release"); relase_ChildImpl(); } -/* }}} */ -/* {{{ OConnection::construct() -I- */ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >& info) throw(SQLException) { @@ -219,7 +212,6 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue > stmt->executeUpdate("SET session sql_mode='ANSI_QUOTES'"); stmt->executeUpdate("SET NAMES utf8"); } -/* }}} */ OUString OConnection::getImplementationName() throw (css::uno::RuntimeException, std::exception) { @@ -240,7 +232,6 @@ sal_Bool OConnection::supportsService(OUString const & ServiceName) return cppu::supportsService(this, ServiceName); } -/* {{{ OConnection::createStatement() -I- */ Reference< XStatement > SAL_CALL OConnection::createStatement() throw(SQLException, RuntimeException, std::exception) { @@ -260,10 +251,8 @@ Reference< XStatement > SAL_CALL OConnection::createStatement() } return xReturn; } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const OUString& _sSql) throw(SQLException, RuntimeException, std::exception) { @@ -284,10 +273,8 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement(const OUS } return xStatement; } -/* }}} */ -/* {{{ OConnection::prepareCall() -U- */ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const OUString& /*_sSql*/ ) throw(SQLException, RuntimeException, std::exception) { @@ -298,10 +285,8 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall(const OUString mysqlc_sdbc_driver::throwFeatureNotImplementedException("OConnection::prepareCall", *this); return Reference< XPreparedStatement >(); } -/* }}} */ -/* {{{ OConnection::nativeSQL() -I- */ OUString SAL_CALL OConnection::nativeSQL(const OUString& _sSql) throw(SQLException, RuntimeException, std::exception) { @@ -318,10 +303,8 @@ OUString SAL_CALL OConnection::nativeSQL(const OUString& _sSql) } return sNativeSQL; } -/* }}} */ -/* {{{ OConnection::setAutoCommit() -I- */ void SAL_CALL OConnection::setAutoCommit(sal_Bool autoCommit) throw(SQLException, RuntimeException, std::exception) { @@ -334,10 +317,8 @@ void SAL_CALL OConnection::setAutoCommit(sal_Bool autoCommit) mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -/* }}} */ -/* {{{ OConnection::getAutoCommit() -I- */ sal_Bool SAL_CALL OConnection::getAutoCommit() throw(SQLException, RuntimeException, std::exception) { @@ -356,10 +337,8 @@ sal_Bool SAL_CALL OConnection::getAutoCommit() } return autoCommit; } -/* }}} */ -/* {{{ OConnection::commit() -I- */ void SAL_CALL OConnection::commit() throw(SQLException, RuntimeException, std::exception) { @@ -372,10 +351,8 @@ void SAL_CALL OConnection::commit() mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -/* }}} */ -/* {{{ OConnection::rollback() -I- */ void SAL_CALL OConnection::rollback() throw(SQLException, RuntimeException, std::exception) { @@ -388,10 +365,8 @@ void SAL_CALL OConnection::rollback() mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -/* }}} */ -/* {{{ OConnection::isClosed() -I- */ sal_Bool SAL_CALL OConnection::isClosed() throw(SQLException, RuntimeException, std::exception) { @@ -401,10 +376,8 @@ sal_Bool SAL_CALL OConnection::isClosed() // just simple -> we are close when we are disposed that means someone called dispose(); (XComponent) return (OConnection_BASE::rBHelper.bDisposed); } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData() throw(SQLException, RuntimeException, std::exception) { @@ -424,10 +397,8 @@ Reference< XDatabaseMetaData > SAL_CALL OConnection::getMetaData() return xMetaData; } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ void SAL_CALL OConnection::setReadOnly(sal_Bool readOnly) throw(SQLException, RuntimeException, std::exception) { @@ -437,10 +408,8 @@ void SAL_CALL OConnection::setReadOnly(sal_Bool readOnly) m_settings.readOnly = readOnly; } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ sal_Bool SAL_CALL OConnection::isReadOnly() throw(SQLException, RuntimeException, std::exception) { @@ -451,10 +420,8 @@ sal_Bool SAL_CALL OConnection::isReadOnly() // return if your connection to readonly return (m_settings.readOnly); } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ void SAL_CALL OConnection::setCatalog(const OUString& catalog) throw(SQLException, RuntimeException, std::exception) { @@ -469,10 +436,8 @@ void SAL_CALL OConnection::setCatalog(const OUString& catalog) mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ OUString SAL_CALL OConnection::getCatalog() throw(SQLException, RuntimeException, std::exception) { @@ -488,10 +453,8 @@ OUString SAL_CALL OConnection::getCatalog() } return catalog; } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ void SAL_CALL OConnection::setTransactionIsolation(sal_Int32 level) throw(SQLException, RuntimeException, std::exception) { @@ -526,10 +489,8 @@ void SAL_CALL OConnection::setTransactionIsolation(sal_Int32 level) mysqlc_sdbc_driver::translateAndThrow(e, *this, getConnectionEncoding()); } } -/* }}} */ -/* {{{ OConnection::createStatement() -I- */ sal_Int32 SAL_CALL OConnection::getTransactionIsolation() throw(SQLException, RuntimeException, std::exception) { @@ -551,10 +512,8 @@ sal_Int32 SAL_CALL OConnection::getTransactionIsolation() } return TransactionIsolation::NONE; } -/* }}} */ -/* {{{ OConnection::getTypeMap() -I- */ Reference SAL_CALL OConnection::getTypeMap() throw(SQLException, RuntimeException, std::exception) { @@ -568,10 +527,8 @@ Reference SAL_CALL OConnection::getTypeMap() } return (t); } -/* }}} */ -/* {{{ OConnection::setTypeMap() -I- */ void SAL_CALL OConnection::setTypeMap(const Reference& typeMap) throw(SQLException, RuntimeException, std::exception) { @@ -581,11 +538,9 @@ void SAL_CALL OConnection::setTypeMap(const Reference& typeMap) m_typeMap = typeMap; } -/* }}} */ // XCloseable -/* {{{ OConnection::close() -I- */ void SAL_CALL OConnection::close() throw(SQLException, RuntimeException, std::exception) { @@ -601,11 +556,9 @@ void SAL_CALL OConnection::close() } dispose(); } -/* }}} */ // XWarningsSupplier -/* {{{ OConnection::getWarnings() -I- */ Any SAL_CALL OConnection::getWarnings() throw(SQLException, RuntimeException, std::exception) { @@ -614,29 +567,23 @@ Any SAL_CALL OConnection::getWarnings() // when you collected some warnings -> return it return x; } -/* }}} */ -/* {{{ OConnection::clearWarnings() -I- */ void SAL_CALL OConnection::clearWarnings() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OConnection::clearWarnings"); // you should clear your collected warnings here# } -/* }}} */ -/* {{{ OConnection::buildTypeInfo() -I- */ void OConnection::buildTypeInfo() throw(SQLException) { OSL_TRACE("OConnection::buildTypeInfo"); } -/* }}} */ -/* {{{ OConnection::disposing() -I- */ void OConnection::disposing() { OSL_TRACE("OConnection::disposing"); @@ -657,12 +604,10 @@ void OConnection::disposing() dispose_ChildImpl(); OConnection_BASE::disposing(); } -/* }}} */ /* ToDo - upcast the connection to MySQL_Connection and use ::getSessionVariable() */ -/* {{{ OConnection::getMysqlVariable() -I- */ OUString OConnection::getMysqlVariable(const char *varname) throw(SQLException, RuntimeException) { @@ -689,10 +634,8 @@ OUString OConnection::getMysqlVariable(const char *varname) return ret; } -/* }}} */ -/* {{{ OConnection::getMysqlVersion() -I- */ sal_Int32 OConnection::getMysqlVersion() throw(SQLException, RuntimeException) { @@ -710,10 +653,8 @@ sal_Int32 OConnection::getMysqlVersion() } return version; } -/* }}} */ -/* {{{ OConnection::sdbcColumnType() -I- */ // TODO: Not used //sal_Int32 OConnection::sdbcColumnType(OUString typeName) //{ @@ -750,7 +691,6 @@ OUString OConnection::transFormPreparedStatement(const OUString& _sSQL) return sSqlStatement; } -/* }}} */ /* * Local variables: diff --git a/mysqlc/source/mysqlc_databasemetadata.cxx b/mysqlc/source/mysqlc_databasemetadata.cxx index 46a4d87..408deda 100644 --- a/mysqlc/source/mysqlc_databasemetadata.cxx +++ b/mysqlc/source/mysqlc_databasemetadata.cxx @@ -78,7 +78,6 @@ void lcl_setRows_throw(const Reference< XResultSet >& _xResultSet,sal_Int32 _nTy } -/* {{{ ODatabaseMetaData::ODatabaseMetaData() -I- */ ODatabaseMetaData::ODatabaseMetaData(OConnection& _rCon) :m_rConnection(_rCon) ,m_bUseCatalog(true) @@ -93,18 +92,14 @@ ODatabaseMetaData::ODatabaseMetaData(OConnection& _rCon) osl_atomic_decrement(&m_refCount); } } -/* }}} */ -/* {{{ ODatabaseMetaData::~ODatabaseMetaData() -I- */ ODatabaseMetaData::~ODatabaseMetaData() { OSL_TRACE("ODatabaseMetaData::~ODatabaseMetaData"); } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getStringMetaData() -I- */ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const std::string& (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -120,10 +115,8 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, } return stringMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getStringMetaData() -I- */ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, std::string (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -139,10 +132,8 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, } return stringMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getStringMetaData() -I- */ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, const sql::SQLString& (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -158,10 +149,8 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, } return stringMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getStringMetaData() -I- */ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, sql::SQLString (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -177,10 +166,8 @@ OUString ODatabaseMetaData::impl_getStringMetaData(const sal_Char* _methodName, } return stringMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getInt32MetaData() -I- */ sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName, unsigned int (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -196,10 +183,8 @@ sal_Int32 ODatabaseMetaData::impl_getInt32MetaData(const sal_Char* _methodName, } return int32MetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getBoolMetaData() -I- */ bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*_Method)() ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -215,10 +200,8 @@ bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool ( } return boolMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getBoolMetaData() -I- */ bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*_Method)(int), sal_Int32 _arg ) { OSL_TRACE( "mysqlc::ODatabaseMetaData::%s", _methodName); @@ -234,10 +217,8 @@ bool ODatabaseMetaData::impl_getBoolMetaData(const sal_Char* _methodName, bool ( } return boolMetaData; } -/* }}} */ -/* {{{ ODatabaseMetaData::impl_getRSTypeMetaData() -I- */ bool ODatabaseMetaData::impl_getRSTypeMetaData(const sal_Char* _methodName, bool (sql::DatabaseMetaData::*_Method)(int), sal_Int32 _resultSetType ) { int resultSetType(sql::ResultSet::TYPE_FORWARD_ONLY); @@ -248,234 +229,182 @@ bool ODatabaseMetaData::impl_getRSTypeMetaData(const sal_Char* _methodName, bool return impl_getBoolMetaData(_methodName, _Method, resultSetType); } -/* }}} */ -/* {{{ ODatabaseMetaData::getCatalogSeparator() -I- */ OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getCatalogSeparator", &sql::DatabaseMetaData::getCatalogSeparator); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxBinaryLiteralLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxBinaryLiteralLength", &sql::DatabaseMetaData::getMaxBinaryLiteralLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxRowSize() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxRowSize", &sql::DatabaseMetaData::getMaxRowSize); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxCatalogNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxCatalogNameLength", &sql::DatabaseMetaData::getMaxCatalogNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxCharLiteralLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxCharLiteralLength", &sql::DatabaseMetaData::getMaxCharLiteralLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnNameLength", &sql::DatabaseMetaData::getMaxColumnNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnsInIndex() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnsInIndex", &sql::DatabaseMetaData::getMaxColumnsInIndex); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxCursorNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxCursorNameLength", &sql::DatabaseMetaData::getMaxCursorNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxConnections() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxConnections", &sql::DatabaseMetaData::getMaxConnections); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnsInTable() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnsInTable", &sql::DatabaseMetaData::getMaxColumnsInTable); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxStatementLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxStatementLength", &sql::DatabaseMetaData::getMaxStatementLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxTableNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxTableNameLength", &sql::DatabaseMetaData::getMaxTableNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxTablesInSelect() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxTablesInSelect", &sql::DatabaseMetaData::getMaxTablesInSelect); } -/* }}} */ -/* {{{ ODatabaseMetaData::doesMaxRowSizeIncludeBlobs() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("doesMaxRowSizeIncludeBlobs", &sql::DatabaseMetaData::doesMaxRowSizeIncludeBlobs); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesLowerCaseQuotedIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesLowerCaseQuotedIdentifiers", &sql::DatabaseMetaData::storesLowerCaseQuotedIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesLowerCaseIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesLowerCaseIdentifiers", &sql::DatabaseMetaData::storesLowerCaseIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesMixedCaseQuotedIdentifiers", &sql::DatabaseMetaData::storesMixedCaseQuotedIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesMixedCaseIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesMixedCaseIdentifiers", &sql::DatabaseMetaData::storesMixedCaseIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesUpperCaseQuotedIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesUpperCaseQuotedIdentifiers", &sql::DatabaseMetaData::storesUpperCaseQuotedIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::storesUpperCaseIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("storesUpperCaseIdentifiers", &sql::DatabaseMetaData::storesUpperCaseIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsAlterTableWithAddColumn() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsAlterTableWithAddColumn", &sql::DatabaseMetaData::supportsAlterTableWithAddColumn); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsAlterTableWithDropColumn() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsAlterTableWithDropColumn", &sql::DatabaseMetaData::supportsAlterTableWithDropColumn); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxIndexLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxIndexLength", &sql::DatabaseMetaData::getMaxIndexLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsNonNullableColumns() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsNonNullableColumns", &sql::DatabaseMetaData::supportsNonNullableColumns); } -/* }}} */ -/* {{{ ODatabaseMetaData::getCatalogTerm() -I- */ OUString SAL_CALL ODatabaseMetaData::getCatalogTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getCatalogTerm", &sql::DatabaseMetaData::getCatalogTerm); } -/* }}} */ -/* {{{ ODatabaseMetaData::getIdentifierQuoteString() -I- */ OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() throw(SQLException, RuntimeException, std::exception) { @@ -485,361 +414,281 @@ OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString() } return identifier_quote_string; } -/* }}} */ -/* {{{ ODatabaseMetaData::getExtraNameCharacters() -I- */ OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getExtraNameCharacters", &sql::DatabaseMetaData::getExtraNameCharacters); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsDifferentTableCorrelationNames() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsDifferentTableCorrelationNames", &sql::DatabaseMetaData::supportsDifferentTableCorrelationNames); } -/* }}} */ -/* {{{ ODatabaseMetaData::isCatalogAtStart() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::isCatalogAtStart() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("isCatalogAtStart", &sql::DatabaseMetaData::isCatalogAtStart); } -/* }}} */ -/* {{{ ODatabaseMetaData::dataDefinitionIgnoredInTransactions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("dataDefinitionIgnoredInTransactions", &sql::DatabaseMetaData::dataDefinitionIgnoredInTransactions); } -/* }}} */ -/* {{{ ODatabaseMetaData::dataDefinitionCausesTransactionCommit() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("dataDefinitionCausesTransactionCommit", &sql::DatabaseMetaData::dataDefinitionCausesTransactionCommit); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsDataManipulationTransactionsOnly() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsDataManipulationTransactionsOnly", &sql::DatabaseMetaData::supportsDataManipulationTransactionsOnly); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsDataDefinitionAndDataManipulationTransactions", &sql::DatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsPositionedDelete() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsPositionedDelete", &sql::DatabaseMetaData::supportsPositionedDelete); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsPositionedUpdate() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsPositionedUpdate", &sql::DatabaseMetaData::supportsPositionedUpdate); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOpenStatementsAcrossRollback() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOpenStatementsAcrossRollback", &sql::DatabaseMetaData::supportsOpenStatementsAcrossRollback); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOpenStatementsAcrossCommit() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOpenStatementsAcrossCommit", &sql::DatabaseMetaData::supportsOpenStatementsAcrossCommit); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOpenCursorsAcrossCommit() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOpenCursorsAcrossCommit", &sql::DatabaseMetaData::supportsOpenCursorsAcrossCommit); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOpenCursorsAcrossRollback() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOpenCursorsAcrossRollback", &sql::DatabaseMetaData::supportsOpenCursorsAcrossRollback); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsTransactionIsolationLevel() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel(sal_Int32 level) throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsTransactionIsolationLevel", &sql::DatabaseMetaData::supportsTransactionIsolationLevel, level); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSchemasInDataManipulation() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSchemasInDataManipulation", &sql::DatabaseMetaData::supportsSchemasInDataManipulation); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsANSI92FullSQL() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsANSI92FullSQL", &sql::DatabaseMetaData::supportsANSI92FullSQL); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsANSI92EntryLevelSQL() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsANSI92EntryLevelSQL", &sql::DatabaseMetaData::supportsANSI92EntryLevelSQL); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsIntegrityEnhancementFacility() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsIntegrityEnhancementFacility", &sql::DatabaseMetaData::supportsIntegrityEnhancementFacility); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSchemasInIndexDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSchemasInIndexDefinitions", &sql::DatabaseMetaData::supportsSchemasInIndexDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSchemasInTableDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSchemasInTableDefinitions", &sql::DatabaseMetaData::supportsSchemasInTableDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCatalogsInTableDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCatalogsInTableDefinitions", &sql::DatabaseMetaData::supportsCatalogsInTableDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCatalogsInIndexDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCatalogsInIndexDefinitions", &sql::DatabaseMetaData::supportsCatalogsInIndexDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCatalogsInDataManipulation() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCatalogsInDataManipulation", &sql::DatabaseMetaData::supportsCatalogsInDataManipulation); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOuterJoins() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOuterJoins", &sql::DatabaseMetaData::supportsOuterJoins); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxStatements() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxStatements", &sql::DatabaseMetaData::getMaxStatements); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxProcedureNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxProcedureNameLength", &sql::DatabaseMetaData::getMaxProcedureNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxSchemaNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxSchemaNameLength", &sql::DatabaseMetaData::getMaxSchemaNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsTransactions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsTransactions", &sql::DatabaseMetaData::supportsTransactions); } -/* }}} */ -/* {{{ ODatabaseMetaData::allProceduresAreCallable() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("allProceduresAreCallable", &sql::DatabaseMetaData::allProceduresAreCallable); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsStoredProcedures() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsStoredProcedures", &sql::DatabaseMetaData::supportsStoredProcedures); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSelectForUpdate() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSelectForUpdate", &sql::DatabaseMetaData::supportsSelectForUpdate); } -/* }}} */ -/* {{{ ODatabaseMetaData::allTablesAreSelectable() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("allTablesAreSelectable", &sql::DatabaseMetaData::allTablesAreSelectable); } -/* }}} */ -/* {{{ ODatabaseMetaData::isReadOnly() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("isReadOnly", &sql::DatabaseMetaData::isReadOnly); } -/* }}} */ -/* {{{ ODatabaseMetaData::usesLocalFiles() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("usesLocalFiles", &sql::DatabaseMetaData::usesLocalFiles); } -/* }}} */ -/* {{{ ODatabaseMetaData::usesLocalFilePerTable() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("usesLocalFilePerTable", &sql::DatabaseMetaData::usesLocalFilePerTable); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsTypeConversion() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsTypeConversion", &sql::DatabaseMetaData::supportsTypeConversion); } -/* }}} */ -/* {{{ ODatabaseMetaData::nullPlusNonNullIsNull() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("nullPlusNonNullIsNull", &sql::DatabaseMetaData::nullPlusNonNullIsNull); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsColumnAliasing() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsColumnAliasing", &sql::DatabaseMetaData::supportsColumnAliasing); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsTableCorrelationNames() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsTableCorrelationNames", &sql::DatabaseMetaData::supportsTableCorrelationNames); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsConvert() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /* fromType */, sal_Int32 /* toType */) throw(SQLException, RuntimeException, std::exception) { @@ -856,263 +705,205 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /* fromType */, s } return sal_False; } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsExpressionsInOrderBy() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsExpressionsInOrderBy", &sql::DatabaseMetaData::supportsExpressionsInOrderBy); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsGroupBy() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsGroupBy", &sql::DatabaseMetaData::supportsGroupBy); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsGroupByBeyondSelect() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsGroupByBeyondSelect", &sql::DatabaseMetaData::supportsGroupByBeyondSelect); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsGroupByUnrelated() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsGroupByUnrelated", &sql::DatabaseMetaData::supportsGroupByUnrelated); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsMultipleTransactions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsMultipleTransactions", &sql::DatabaseMetaData::supportsMultipleTransactions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsMultipleResultSets() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsMultipleResultSets", &sql::DatabaseMetaData::supportsMultipleResultSets); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsLikeEscapeClause() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsLikeEscapeClause", &sql::DatabaseMetaData::supportsLikeEscapeClause); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsOrderByUnrelated() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsOrderByUnrelated", &sql::DatabaseMetaData::supportsOrderByUnrelated); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsUnion() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsUnion", &sql::DatabaseMetaData::supportsUnion); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsUnionAll() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsUnionAll", &sql::DatabaseMetaData::supportsUnionAll); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsMixedCaseIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsMixedCaseIdentifiers", &sql::DatabaseMetaData::supportsMixedCaseIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsMixedCaseQuotedIdentifiers", &sql::DatabaseMetaData::supportsMixedCaseQuotedIdentifiers); } -/* }}} */ -/* {{{ ODatabaseMetaData::nullsAreSortedAtEnd() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("nullsAreSortedAtEnd", &sql::DatabaseMetaData::nullsAreSortedAtEnd); } -/* }}} */ -/* {{{ ODatabaseMetaData::nullsAreSortedAtStart() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("nullsAreSortedAtStart", &sql::DatabaseMetaData::nullsAreSortedAtStart); } -/* }}} */ -/* {{{ ODatabaseMetaData::nullsAreSortedHigh() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("nullsAreSortedHigh", &sql::DatabaseMetaData::nullsAreSortedHigh); } -/* }}} */ -/* {{{ ODatabaseMetaData::nullsAreSortedLow() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("nullsAreSortedLow", &sql::DatabaseMetaData::nullsAreSortedLow); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSchemasInProcedureCalls() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSchemasInProcedureCalls", &sql::DatabaseMetaData::supportsSchemasInProcedureCalls); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSchemasInPrivilegeDefinitions", &sql::DatabaseMetaData::supportsSchemasInPrivilegeDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCatalogsInProcedureCalls() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCatalogsInProcedureCalls", &sql::DatabaseMetaData::supportsCatalogsInProcedureCalls); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCatalogsInPrivilegeDefinitions", &sql::DatabaseMetaData::supportsCatalogsInPrivilegeDefinitions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCorrelatedSubqueries() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCorrelatedSubqueries", &sql::DatabaseMetaData::supportsCorrelatedSubqueries); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSubqueriesInComparisons() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSubqueriesInComparisons", &sql::DatabaseMetaData::supportsSubqueriesInComparisons); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSubqueriesInExists() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSubqueriesInExists", &sql::DatabaseMetaData::supportsSubqueriesInExists); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSubqueriesInIns() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSubqueriesInIns", &sql::DatabaseMetaData::supportsSubqueriesInIns); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsSubqueriesInQuantifieds() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsSubqueriesInQuantifieds", &sql::DatabaseMetaData::supportsSubqueriesInQuantifieds); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsANSI92IntermediateSQL() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsANSI92IntermediateSQL", &sql::DatabaseMetaData::supportsANSI92IntermediateSQL); } -/* }}} */ -/* {{{ ODatabaseMetaData::getURL() -I- */ OUString SAL_CALL ODatabaseMetaData::getURL() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getURL"); return m_rConnection.getConnectionSettings().connectionURL; } -/* }}} */ -/* {{{ ODatabaseMetaData::getUserName() -I- */ OUString SAL_CALL ODatabaseMetaData::getUserName() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getUserName", &sql::DatabaseMetaData::getUserName); } -/* }}} */ -/* {{{ ODatabaseMetaData::getDriverName() -I- */ OUString SAL_CALL ODatabaseMetaData::getDriverName() throw(SQLException, RuntimeException, std::exception) { @@ -1120,10 +911,8 @@ OUString SAL_CALL ODatabaseMetaData::getDriverName() OUString aValue( "MySQL Connector/OO.org" ); return aValue; } -/* }}} */ -/* {{{ ODatabaseMetaData::getDriverVersion() -I- */ OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException, std::exception) { @@ -1131,56 +920,44 @@ OUString SAL_CALL ODatabaseMetaData::getDriverVersion() static const OUString sVersion( "0.9.2" ); return sVersion; } -/* }}} */ -/* {{{ ODatabaseMetaData::getDatabaseProductVersion() -I- */ OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getDatabaseProductVersion", &sql::DatabaseMetaData::getDatabaseProductVersion); } -/* }}} */ -/* {{{ ODatabaseMetaData::getDatabaseProductName() -I- */ OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getDatabaseProductName", &sql::DatabaseMetaData::getDatabaseProductName); } -/* }}} */ -/* {{{ ODatabaseMetaData::getProcedureTerm() -I- */ OUString SAL_CALL ODatabaseMetaData::getProcedureTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getProcedureTerm", &sql::DatabaseMetaData::getProcedureTerm); } -/* }}} */ -/* {{{ ODatabaseMetaData::getSchemaTerm() -I- */ OUString SAL_CALL ODatabaseMetaData::getSchemaTerm() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSchemaTerm", &sql::DatabaseMetaData::getSchemaTerm); } -/* }}} */ -/* {{{ ODatabaseMetaData::getDriverMajorVersion() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion() throw(RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getDriverMajorVersion"); return MARIADBC_VERSION_MAJOR; } -/* }}} */ -/* {{{ ODatabaseMetaData::getDefaultTransactionIsolation() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation() throw(SQLException, RuntimeException, std::exception) { @@ -1201,164 +978,128 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation() } return TransactionIsolation::NONE; } -/* }}} */ -/* {{{ ODatabaseMetaData::getDriverMinorVersion() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion() throw(RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getDriverMinorVersion"); return MARIADBC_VERSION_MINOR; } -/* }}} */ -/* {{{ ODatabaseMetaData::getSQLKeywords() -I- */ OUString SAL_CALL ODatabaseMetaData::getSQLKeywords() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSQLKeywords", &sql::DatabaseMetaData::getSQLKeywords); } -/* }}} */ -/* {{{ ODatabaseMetaData::getSearchStringEscape() -I- */ OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSearchStringEscape", &sql::DatabaseMetaData::getSearchStringEscape); } -/* }}} */ -/* {{{ ODatabaseMetaData::getStringFunctions() -I- */ OUString SAL_CALL ODatabaseMetaData::getStringFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getStringFunctions", &sql::DatabaseMetaData::getStringFunctions); } -/* }}} */ -/* {{{ ODatabaseMetaData::getTimeDateFunctions() -I- */ OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getTimeDateFunctions", &sql::DatabaseMetaData::getTimeDateFunctions); } -/* }}} */ -/* {{{ ODatabaseMetaData::getSystemFunctions() -I- */ OUString SAL_CALL ODatabaseMetaData::getSystemFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getSystemFunctions", &sql::DatabaseMetaData::getSystemFunctions); } -/* }}} */ -/* {{{ ODatabaseMetaData::getNumericFunctions() -I- */ OUString SAL_CALL ODatabaseMetaData::getNumericFunctions() throw(SQLException, RuntimeException, std::exception) { return impl_getStringMetaData("getNumericFunctions", &sql::DatabaseMetaData::getNumericFunctions); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsExtendedSQLGrammar() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsExtendedSQLGrammar", &sql::DatabaseMetaData::supportsExtendedSQLGrammar); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsCoreSQLGrammar() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsCoreSQLGrammar", &sql::DatabaseMetaData::supportsCoreSQLGrammar); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsMinimumSQLGrammar() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsMinimumSQLGrammar", &sql::DatabaseMetaData::supportsMinimumSQLGrammar); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsFullOuterJoins() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsFullOuterJoins", &sql::DatabaseMetaData::supportsFullOuterJoins); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsLimitedOuterJoins() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsLimitedOuterJoins", &sql::DatabaseMetaData::supportsLimitedOuterJoins); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnsInGroupBy() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnsInGroupBy", &sql::DatabaseMetaData::getMaxColumnsInGroupBy); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnsInOrderBy() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnsInOrderBy", &sql::DatabaseMetaData::getMaxColumnsInOrderBy); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxColumnsInSelect() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxColumnsInSelect", &sql::DatabaseMetaData::getMaxColumnsInSelect); } -/* }}} */ -/* {{{ ODatabaseMetaData::getMaxUserNameLength() -I- */ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength() throw(SQLException, RuntimeException, std::exception) { return impl_getInt32MetaData("getMaxUserNameLength", &sql::DatabaseMetaData::getMaxUserNameLength); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsResultSetType() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("supportsResultSetType", &sql::DatabaseMetaData::supportsResultSetType, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsResultSetConcurrency() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(sal_Int32 setType, sal_Int32 concurrency) throw(SQLException, RuntimeException, std::exception) { @@ -1378,107 +1119,84 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency(sal_Int32 setT } return sal_False; } -/* }}} */ -/* {{{ ODatabaseMetaData::ownUpdatesAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("ownUpdatesAreVisible", &sql::DatabaseMetaData::ownUpdatesAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::ownDeletesAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("ownDeletesAreVisible", &sql::DatabaseMetaData::ownDeletesAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::ownInsertsAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("ownInsertsAreVisible", &sql::DatabaseMetaData::ownInsertsAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::othersUpdatesAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("othersUpdatesAreVisible", &sql::DatabaseMetaData::othersUpdatesAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::othersDeletesAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("othersDeletesAreVisible", &sql::DatabaseMetaData::othersDeletesAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::othersInsertsAreVisible() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("othersInsertsAreVisible", &sql::DatabaseMetaData::othersInsertsAreVisible, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::updatesAreDetected() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("updatesAreDetected", &sql::DatabaseMetaData::updatesAreDetected, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::deletesAreDetected() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("deletesAreDetected", &sql::DatabaseMetaData::deletesAreDetected, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::insertsAreDetected() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected(sal_Int32 setType) throw(SQLException, RuntimeException, std::exception) { return impl_getRSTypeMetaData("insertsAreDetected", &sql::DatabaseMetaData::insertsAreDetected, setType); } -/* }}} */ -/* {{{ ODatabaseMetaData::supportsBatchUpdates() -I- */ sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates() throw(SQLException, RuntimeException, std::exception) { return impl_getBoolMetaData("supportsBatchUpdates", &sql::DatabaseMetaData::supportsBatchUpdates); } -/* }}} */ -/* {{{ ODatabaseMetaData::getConnection() -I- */ Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("ODatabaseMetaData::getConnection"); return (Reference< XConnection >)&m_rConnection; } -/* }}} */ /* @@ -1488,7 +1206,6 @@ Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection() the general way is more memory expensive */ -/* {{{ ODatabaseMetaData::getTableTypes() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes() throw(SQLException, RuntimeException, std::exception) { @@ -1510,10 +1227,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes() lcl_setRows_throw(xResultSet, 5 ,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getTypeInfo() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() throw(SQLException, RuntimeException, std::exception) { @@ -1553,10 +1268,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo() lcl_setRows_throw(xResultSet, 14, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getCatalogs() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() throw(SQLException, RuntimeException, std::exception) { @@ -1588,10 +1301,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs() lcl_setRows_throw(xResultSet, 0, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getSchemas() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas() throw(SQLException, RuntimeException, std::exception) { @@ -1630,10 +1341,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas() lcl_setRows_throw(xResultSet, 1, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getColumnPrivileges() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges( const Any& catalog, const OUString& schema, @@ -1673,10 +1382,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges( lcl_setRows_throw(xResultSet, 2, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getColumns() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns( const Any& catalog, const OUString& schemaPattern, @@ -1722,10 +1429,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns( lcl_setRows_throw(xResultSet, 3, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getTables() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( const Any& catalog, const OUString& schemaPattern, @@ -1784,10 +1489,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( lcl_setRows_throw(xResultSet, 4, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getProcedureColumns() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns( const Any& /* catalog */, const OUString& /* schemaPattern */, @@ -1799,10 +1502,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns( // Currently there is no information available return NULL; } -/* }}} */ -/* {{{ ODatabaseMetaData::getProcedures() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures( const Any& catalog, const OUString& schemaPattern, @@ -1844,10 +1545,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures( lcl_setRows_throw(xResultSet, 7,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getVersionColumns() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns( const Any& /* catalog */, const OUString& /* schema */, @@ -1860,10 +1559,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns( lcl_setRows_throw(xResultSet, 16,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getExportedKeys() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys( const Any& catalog , const OUString& schema , @@ -1900,10 +1597,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys( lcl_setRows_throw(xResultSet, 8, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getImportedKeys() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( const Any& catalog, const OUString& schema, @@ -1942,10 +1637,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( lcl_setRows_throw(xResultSet,9,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getPrimaryKeys() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( const Any& catalog, const OUString& schema, @@ -1983,10 +1676,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( lcl_setRows_throw(xResultSet, 10, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getIndexInfo() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( const Any& catalog, const OUString& schema, @@ -2026,10 +1717,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( lcl_setRows_throw(xResultSet, 11, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getBestRowIdentifier() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( const Any& catalog, const OUString& schema, @@ -2069,10 +1758,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( lcl_setRows_throw(xResultSet, 15, rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getTablePrivileges() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( const Any& catalog, const OUString& schemaPattern, @@ -2131,10 +1818,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( lcl_setRows_throw(xResultSet,12,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getCrossReference() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference( const Any& primaryCatalog, const OUString& primarySchema, @@ -2178,10 +1863,8 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference( lcl_setRows_throw(xResultSet,13,rRows); return xResultSet; } -/* }}} */ -/* {{{ ODatabaseMetaData::getUDTs() -I- */ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& /* catalog */, const OUString& /* schemaPattern */, @@ -2193,7 +1876,6 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( mysqlc_sdbc_driver::throwFeatureNotImplementedException("ODatabaseMetaData::getUDTs", *this); return NULL; } -/* }}} */ /* * Local variables: diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx index 70ab582..1c39fc2 100644 --- a/mysqlc/source/mysqlc_driver.cxx +++ b/mysqlc/source/mysqlc_driver.cxx @@ -41,7 +41,6 @@ using namespace connectivity::mysqlc; #include #endif -/* {{{ MysqlCDriver::MysqlCDriver() -I- */ MysqlCDriver::MysqlCDriver(const Reference< XMultiServiceFactory >& _rxFactory) : ODriver_BASE(m_aMutex) ,m_xFactory(_rxFactory) @@ -53,9 +52,7 @@ MysqlCDriver::MysqlCDriver(const Reference< XMultiServiceFactory >& _rxFactory) OSL_TRACE("MysqlCDriver::MysqlCDriver"); cppDriver = NULL; } -/* }}} */ -/* {{{ MysqlCDriver::disposing() -I- */ void MysqlCDriver::disposing() { OSL_TRACE("MysqlCDriver::disposing"); @@ -73,19 +70,15 @@ void MysqlCDriver::disposing() ODriver_BASE::disposing(); } -/* }}} */ // static ServiceInfo -/* {{{ MysqlCDriver::getImplementationName_Static() -I- */ OUString MysqlCDriver::getImplementationName_Static() throw(RuntimeException) { OSL_TRACE("MysqlCDriver::getImplementationName_Static"); return OUString( "com.sun.star.comp.sdbc.mysqlc.MysqlCDriver" ); } -/* }}} */ -/* {{{ MysqlCDriver::getSupportedServiceNames_Static() -I- */ Sequence< OUString > MysqlCDriver::getSupportedServiceNames_Static() throw(RuntimeException) { @@ -96,33 +89,27 @@ Sequence< OUString > MysqlCDriver::getSupportedServiceNames_Static() aSNS[0] = "com.sun.star.sdbc.Driver"; return aSNS; } -/* }}} */ -/* {{{ MysqlCDriver::getImplementationName() -I- */ OUString SAL_CALL MysqlCDriver::getImplementationName() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getImplementationName"); return getImplementationName_Static(); } -/* }}} */ sal_Bool SAL_CALL MysqlCDriver::supportsService(const OUString& _rServiceName) throw(RuntimeException, std::exception) { return cppu::supportsService(this, _rServiceName); } -/* }}} */ -/* {{{ MysqlCDriver::getSupportedServiceNames() -I- */ Sequence< OUString > SAL_CALL MysqlCDriver::getSupportedServiceNames() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getSupportedServiceNames"); return getSupportedServiceNames_Static(); } -/* }}} */ extern "C" { static void SAL_CALL thisModule() {} } @@ -203,7 +190,6 @@ void MysqlCDriver::impl_initCppConn_lck_throw() } } -/* {{{ MysqlCDriver::connect() -I- */ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const OUString& url, const Sequence< PropertyValue >& info) throw(SQLException, RuntimeException, std::exception) { @@ -236,18 +222,14 @@ Reference< XConnection > SAL_CALL MysqlCDriver::connect(const OUString& url, con } return xConn; } -/* }}} */ -/* {{{ MysqlCDriver::acceptsURL() -I- */ sal_Bool SAL_CALL MysqlCDriver::acceptsURL(const OUString& url) throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::acceptsURL"); return url.startsWith("sdbc:mysqlc:"); } -/* }}} */ -/* {{{ MysqlCDriver::getPropertyInfo() -I- */ Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const OUString& url, const Sequence< PropertyValue >& /* info */) throw(SQLException, RuntimeException, std::exception) { @@ -274,25 +256,20 @@ Sequence< DriverPropertyInfo > SAL_CALL MysqlCDriver::getPropertyInfo(const OUSt return Sequence< DriverPropertyInfo >(); } -/* }}} */ -/* {{{ MysqlCDriver::getMajorVersion() -I- */ sal_Int32 SAL_CALL MysqlCDriver::getMajorVersion() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getMajorVersion"); return MARIADBC_VERSION_MAJOR; } -/* }}} */ -/* {{{ MysqlCDriver::getMinorVersion() -I- */ sal_Int32 SAL_CALL MysqlCDriver::getMinorVersion() throw(RuntimeException, std::exception) { OSL_TRACE("MysqlCDriver::getMinorVersion"); return MARIADBC_VERSION_MINOR; } -/* }}} */ namespace connectivity { @@ -305,7 +282,6 @@ Reference< XInterface > SAL_CALL MysqlCDriver_CreateInstance(const Reference< X return(*(new MysqlCDriver(_rxFactory))); } -/* {{{ connectivity::mysqlc::release() -I- */ void release(oslInterlockedCount& _refCount, ::cppu::OBroadcastHelper& rBHelper, Reference< XInterface >& _xInterface, @@ -339,9 +315,7 @@ void release(oslInterlockedCount& _refCount, osl_atomic_increment(&_refCount); } } -/* }}} */ -/* {{{ connectivity::mysqlc::checkDisposed() -I- */ void checkDisposed(bool _bThrow) throw (DisposedException) { @@ -349,7 +323,6 @@ void checkDisposed(bool _bThrow) throw DisposedException(); } } -/* }}} */ } /* mysqlc */ } /* connectivity */ diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx index 6ec219d..1d9b94c 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 ()); } } -/* }}} */ /* diff --git a/mysqlc/source/mysqlc_propertyids.cxx b/mysqlc/source/mysqlc_propertyids.cxx index ee59375..084be3b 100644 --- a/mysqlc/source/mysqlc_propertyids.cxx +++ b/mysqlc/source/mysqlc_propertyids.cxx @@ -86,7 +86,6 @@ const sal_Char* getSTR_DELIMITER() { return "/"; } -/* {{{ OPropertyMap::~OPropertyMap() -I- */ OPropertyMap::~OPropertyMap() { ::std::map::iterator aIter = m_aPropertyMap.begin(); @@ -96,10 +95,8 @@ OPropertyMap::~OPropertyMap() } } } -/* }}} */ -/* {{{ OPropertyMap::getNameByIndex() -I- */ OUString OPropertyMap::getNameByIndex(sal_Int32 idx) const { OUString sRet; @@ -111,7 +108,6 @@ OUString OPropertyMap::getNameByIndex(sal_Int32 idx) const } return sRet; } -/* }}} */ typedef const sal_Char * (*property_callback)(); @@ -174,7 +170,6 @@ static const property_callback property_callbacks[PROPERTY_ID_LAST] = }; -/* {{{ OPropertyMap::fillValue() -I- */ OUString OPropertyMap::fillValue(sal_Int32 idx) { rtl_uString* pStr = NULL; @@ -182,7 +177,6 @@ OUString OPropertyMap::fillValue(sal_Int32 idx) m_aPropertyMap[idx] = pStr; return pStr; } -/* }}} */ } /* mysqlc */ } /* connectivity */ diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index 3541ec2..8f08097 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -49,16 +49,13 @@ using ::osl::MutexGuard; #include -/* {{{ OResultSet::getImplementationName() -I- */ OUString SAL_CALL OResultSet::getImplementationName() throw (RuntimeException, std::exception) { OSL_TRACE("OResultSet::getImplementationName"); return OUString( "com.sun.star.sdbcx.mysqlc.ResultSet" ); } -/* }}} */ -/* {{{ OResultSet::getSupportedServiceNames() -I- */ Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames() throw(RuntimeException, std::exception) { @@ -68,16 +65,13 @@ Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames() aSupported[1] = "com.sun.star.sdbcx.ResultSet"; return (aSupported); } -/* }}} */ sal_Bool SAL_CALL OResultSet::supportsService(const OUString& _rServiceName) throw(RuntimeException, std::exception) { return cppu::supportsService(this, _rServiceName); } -/* }}} */ -/* {{{ OResultSet::OResultSet() -I- */ OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_TextEncoding _encoding ) : OResultSet_BASE(m_aMutex) ,OPropertySetHelper(OResultSet_BASE::rBHelper) @@ -95,16 +89,12 @@ OResultSet::OResultSet(OCommonStatement * pStmt, sql::ResultSet * result, rtl_Te mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } } -/* }}} */ -/* {{{ OResultSet::~OResultSet() -I- */ OResultSet::~OResultSet() { OSL_TRACE("OResultSet::~OResultSet"); } -/* }}} */ -/* {{{ OResultSet::disposing() -I- */ void OResultSet::disposing() { OSL_TRACE("OResultSet::disposing"); @@ -115,9 +105,7 @@ void OResultSet::disposing() m_aStatement = NULL; m_xMetaData = NULL; } -/* }}} */ -/* {{{ OResultSet::queryInterface() -I- */ Any SAL_CALL OResultSet::queryInterface(const Type & rType) throw(RuntimeException, std::exception) { @@ -128,9 +116,7 @@ Any SAL_CALL OResultSet::queryInterface(const Type & rType) } return aRet; } -/* }}} */ -/* {{{ OResultSet::getTypes() -I- */ Sequence< Type > SAL_CALL OResultSet::getTypes() throw(RuntimeException, std::exception) { @@ -141,9 +127,7 @@ Sequence< Type > SAL_CALL OResultSet::getTypes() return concatSequences(aTypes.getTypes(), OResultSet_BASE::getTypes()); } -/* }}} */ -/* {{{ OResultSet::findColumn() -I- */ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) throw(SQLException, RuntimeException, std::exception) { @@ -171,9 +155,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const OUString& columnName) Any() ); } -/* }}} */ -/* {{{ OResultSet::getBinaryStream() -U- */ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -185,9 +167,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream(sal_Int32 column) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getBinaryStream", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getCharacterStream() -U- */ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -199,9 +179,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream(sal_Int32 colu mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getCharacterStream", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getBoolean() -I- */ sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -217,9 +195,7 @@ sal_Bool SAL_CALL OResultSet::getBoolean(sal_Int32 column) } return sal_False; } -/* }}} */ -/* {{{ OResultSet::getByte() -I- */ sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -235,9 +211,7 @@ sal_Int8 SAL_CALL OResultSet::getByte(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getBytes() -I- */ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -253,9 +227,7 @@ Sequence< sal_Int8 > SAL_CALL OResultSet::getBytes(sal_Int32 column) return Sequence< sal_Int8 > ((sal_Int8*)val.c_str(), val.length()); } } -/* }}} */ -/* {{{ OResultSet::getDate() -I- */ Date SAL_CALL OResultSet::getDate(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -291,9 +263,7 @@ Date SAL_CALL OResultSet::getDate(sal_Int32 column) } return d; } -/* }}} */ -/* {{{ OResultSet::getDouble() -I- */ double SAL_CALL OResultSet::getDouble(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -309,9 +279,7 @@ double SAL_CALL OResultSet::getDouble(sal_Int32 column) } return 0.0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getFloat() -I- */ float SAL_CALL OResultSet::getFloat(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -327,9 +295,7 @@ float SAL_CALL OResultSet::getFloat(sal_Int32 column) } return 0.0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getInt() -I- */ sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -345,9 +311,7 @@ sal_Int32 SAL_CALL OResultSet::getInt(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getRow() -I- */ sal_Int32 SAL_CALL OResultSet::getRow() throw(SQLException, RuntimeException, std::exception) { @@ -362,9 +326,7 @@ sal_Int32 SAL_CALL OResultSet::getRow() } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getLong() -I- */ sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -380,9 +342,7 @@ sal_Int64 SAL_CALL OResultSet::getLong(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getMetaData() -I- */ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData() throw(SQLException, RuntimeException, std::exception) { @@ -400,9 +360,7 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData() } return m_xMetaData; } -/* }}} */ -/* {{{ OResultSet::getArray() -U- */ Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -414,9 +372,7 @@ Reference< XArray > SAL_CALL OResultSet::getArray(sal_Int32 column) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getArray", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getClob() -U- */ Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -428,9 +384,7 @@ Reference< XClob > SAL_CALL OResultSet::getClob(sal_Int32 column) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getClob", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getBlob() -U- */ Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -442,9 +396,7 @@ Reference< XBlob > SAL_CALL OResultSet::getBlob(sal_Int32 column) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getBlob", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getRef() -U- */ Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -456,9 +408,7 @@ Reference< XRef > SAL_CALL OResultSet::getRef(sal_Int32 column) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getRef", *this); return NULL; } -/* }}} */ -/* {{{ OResultSet::getObject() -U- */ Any SAL_CALL OResultSet::getObject(sal_Int32 column, const Reference< XNameAccess >& /* typeMap */) throw(SQLException, RuntimeException, std::exception) { @@ -472,9 +422,7 @@ Any SAL_CALL OResultSet::getObject(sal_Int32 column, const Reference< XNameAcces mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::getObject", *this); return aRet; } -/* }}} */ -/* {{{ OResultSet::getShort() -I- */ sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -489,9 +437,7 @@ sal_Int16 SAL_CALL OResultSet::getShort(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSet::getString() -I- */ OUString SAL_CALL OResultSet::getString(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -513,9 +459,7 @@ OUString SAL_CALL OResultSet::getString(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSet::getTime() -I- */ Time SAL_CALL OResultSet::getTime(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -549,9 +493,7 @@ Time SAL_CALL OResultSet::getTime(sal_Int32 column) return t; } -/* }}} */ -/* {{{ OResultSet::getTimestamp() -I- */ DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -572,9 +514,7 @@ DateTime SAL_CALL OResultSet::getTimestamp(sal_Int32 column) dt.Seconds = t.Seconds; return dt; } -/* }}} */ -/* {{{ OResultSet::isBeforeFirst() -I- */ sal_Bool SAL_CALL OResultSet::isBeforeFirst() throw(SQLException, RuntimeException, std::exception) { @@ -589,9 +529,7 @@ sal_Bool SAL_CALL OResultSet::isBeforeFirst() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::isAfterLast() -I- */ sal_Bool SAL_CALL OResultSet::isAfterLast() throw(SQLException, RuntimeException, std::exception) { @@ -606,9 +544,7 @@ sal_Bool SAL_CALL OResultSet::isAfterLast() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::isFirst() -I- */ sal_Bool SAL_CALL OResultSet::isFirst() throw(SQLException, RuntimeException, std::exception) { @@ -623,9 +559,7 @@ sal_Bool SAL_CALL OResultSet::isFirst() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::isLast() -I- */ sal_Bool SAL_CALL OResultSet::isLast() throw(SQLException, RuntimeException, std::exception) { @@ -640,9 +574,7 @@ sal_Bool SAL_CALL OResultSet::isLast() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::beforeFirst() -I- */ void SAL_CALL OResultSet::beforeFirst() throw(SQLException, RuntimeException, std::exception) { @@ -656,9 +588,7 @@ void SAL_CALL OResultSet::beforeFirst() mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } } -/* }}} */ -/* {{{ OResultSet::afterLast() -I- */ void SAL_CALL OResultSet::afterLast() throw(SQLException, RuntimeException, std::exception) { @@ -672,9 +602,7 @@ void SAL_CALL OResultSet::afterLast() mysqlc_sdbc_driver::translateAndThrow(e, *this, m_encoding); } } -/* }}} */ -/* {{{ OResultSet::close() -I- */ void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::close"); @@ -689,9 +617,7 @@ void SAL_CALL OResultSet::close() throw(SQLException, RuntimeException, std::exc dispose(); } -/* }}} */ -/* {{{ OResultSet::first() -I- */ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::first"); @@ -705,9 +631,7 @@ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std: } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::last() -I- */ sal_Bool SAL_CALL OResultSet::last() throw(SQLException, RuntimeException, std::exception) { @@ -722,9 +646,7 @@ sal_Bool SAL_CALL OResultSet::last() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::absolute() -I- */ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 row) throw(SQLException, RuntimeException, std::exception) { @@ -739,9 +661,7 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 row) } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::relative() -I- */ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) throw(SQLException, RuntimeException, std::exception) { @@ -756,9 +676,7 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::previous() -I- */ sal_Bool SAL_CALL OResultSet::previous() throw(SQLException, RuntimeException, std::exception) { @@ -773,9 +691,7 @@ sal_Bool SAL_CALL OResultSet::previous() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::getStatement() -I- */ Reference< XInterface > SAL_CALL OResultSet::getStatement() throw(SQLException, RuntimeException, std::exception) { @@ -785,9 +701,7 @@ Reference< XInterface > SAL_CALL OResultSet::getStatement() return m_aStatement.get(); } -/* }}} */ -/* {{{ OResultSet::rowDeleted() -I- */ sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException, std::exception) { @@ -797,9 +711,7 @@ sal_Bool SAL_CALL OResultSet::rowDeleted() return sal_False; } -/* }}} */ -/* {{{ OResultSet::rowInserted() -I- */ sal_Bool SAL_CALL OResultSet::rowInserted() throw(SQLException, RuntimeException, std::exception) { @@ -809,9 +721,7 @@ sal_Bool SAL_CALL OResultSet::rowInserted() return sal_False; } -/* }}} */ -/* {{{ OResultSet::rowUpdated() -I- */ sal_Bool SAL_CALL OResultSet::rowUpdated() throw(SQLException, RuntimeException, std::exception) { @@ -821,9 +731,7 @@ sal_Bool SAL_CALL OResultSet::rowUpdated() return sal_False; } -/* }}} */ -/* {{{ OResultSet::next() -I- */ sal_Bool SAL_CALL OResultSet::next() throw(SQLException, RuntimeException, std::exception) { @@ -838,9 +746,7 @@ sal_Bool SAL_CALL OResultSet::next() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::wasNull() -I- */ sal_Bool SAL_CALL OResultSet::wasNull() throw(SQLException, RuntimeException, std::exception) { @@ -855,9 +761,7 @@ sal_Bool SAL_CALL OResultSet::wasNull() } return sal_False; //fool } -/* }}} */ -/* {{{ OResultSet::cancel() -I- */ void SAL_CALL OResultSet::cancel() throw(RuntimeException, std::exception) { @@ -865,17 +769,13 @@ void SAL_CALL OResultSet::cancel() MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); } -/* }}} */ -/* {{{ OResultSet::clearWarnings() -I- */ void SAL_CALL OResultSet::clearWarnings() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::clearWarnings"); } -/* }}} */ -/* {{{ OResultSet::getWarnings() -I- */ Any SAL_CALL OResultSet::getWarnings() throw(SQLException, RuntimeException, std::exception) { @@ -883,9 +783,7 @@ Any SAL_CALL OResultSet::getWarnings() Any aRet= Any(); return aRet; } -/* }}} */ -/* {{{ OResultSet::insertRow() -I- */ void SAL_CALL OResultSet::insertRow() throw(SQLException, RuntimeException, std::exception) { @@ -895,9 +793,7 @@ void SAL_CALL OResultSet::insertRow() // you only have to implement this if you want to insert new rows mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::insertRow", *this); } -/* }}} */ -/* {{{ OResultSet::updateRow() -I- */ void SAL_CALL OResultSet::updateRow() throw(SQLException, RuntimeException, std::exception) { @@ -908,9 +804,7 @@ void SAL_CALL OResultSet::updateRow() // only when you allow updates mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateRow", *this); } -/* }}} */ -/* {{{ OResultSet::deleteRow() -I- */ void SAL_CALL OResultSet::deleteRow() throw(SQLException, RuntimeException, std::exception) { @@ -919,9 +813,7 @@ void SAL_CALL OResultSet::deleteRow() checkDisposed(OResultSet_BASE::rBHelper.bDisposed); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::deleteRow", *this); } -/* }}} */ -/* {{{ OResultSet::cancelRowUpdates() -I- */ void SAL_CALL OResultSet::cancelRowUpdates() throw(SQLException, RuntimeException, std::exception) { @@ -930,9 +822,7 @@ void SAL_CALL OResultSet::cancelRowUpdates() checkDisposed(OResultSet_BASE::rBHelper.bDisposed); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::cancelRowUpdates", *this); } -/* }}} */ -/* {{{ OResultSet::moveToInsertRow() -I- */ void SAL_CALL OResultSet::moveToInsertRow() throw(SQLException, RuntimeException, std::exception) { @@ -943,9 +833,7 @@ void SAL_CALL OResultSet::moveToInsertRow() // only when you allow insert's mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::moveToInsertRow", *this); } -/* }}} */ -/* {{{ OResultSet::moveToCurrentRow() -I- */ void SAL_CALL OResultSet::moveToCurrentRow() throw(SQLException, RuntimeException, std::exception) { @@ -953,9 +841,7 @@ void SAL_CALL OResultSet::moveToCurrentRow() MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); } -/* }}} */ -/* {{{ OResultSet::updateNull() -U- */ void SAL_CALL OResultSet::updateNull(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -965,9 +851,7 @@ void SAL_CALL OResultSet::updateNull(sal_Int32 column) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateNull", *this); } -/* }}} */ -/* {{{ OResultSet::updateBoolean() -U- */ void SAL_CALL OResultSet::updateBoolean(sal_Int32 column, sal_Bool /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -977,9 +861,7 @@ void SAL_CALL OResultSet::updateBoolean(sal_Int32 column, sal_Bool /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateBoolean", *this); } -/* }}} */ -/* {{{ OResultSet::updateByte() -U- */ void SAL_CALL OResultSet::updateByte(sal_Int32 column, sal_Int8 /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -989,9 +871,7 @@ void SAL_CALL OResultSet::updateByte(sal_Int32 column, sal_Int8 /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateByte", *this); } -/* }}} */ -/* {{{ OResultSet::updateShort() -U- */ void SAL_CALL OResultSet::updateShort(sal_Int32 column, sal_Int16 /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1001,9 +881,7 @@ void SAL_CALL OResultSet::updateShort(sal_Int32 column, sal_Int16 /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateShort", *this); } -/* }}} */ -/* {{{ OResultSet::updateInt() -U- */ void SAL_CALL OResultSet::updateInt(sal_Int32 column, sal_Int32 /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1013,9 +891,7 @@ void SAL_CALL OResultSet::updateInt(sal_Int32 column, sal_Int32 /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateInt", *this); } -/* }}} */ -/* {{{ OResultSet::updateLong() -U- */ void SAL_CALL OResultSet::updateLong(sal_Int32 column, sal_Int64 /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1025,9 +901,7 @@ void SAL_CALL OResultSet::updateLong(sal_Int32 column, sal_Int64 /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateLong", *this); } -/* }}} */ -/* {{{ OResultSet::updateFloat() -U- */ void SAL_CALL OResultSet::updateFloat(sal_Int32 column, float /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1037,9 +911,7 @@ void SAL_CALL OResultSet::updateFloat(sal_Int32 column, float /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateFloat", *this); } -/* }}} */ -/* {{{ OResultSet::updateDouble() -U- */ void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1049,9 +921,7 @@ void SAL_CALL OResultSet::updateDouble(sal_Int32 column, double /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateDouble", *this); } -/* }}} */ -/* {{{ OResultSet::updateString() -U- */ void SAL_CALL OResultSet::updateString(sal_Int32 column, const OUString& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1061,9 +931,7 @@ void SAL_CALL OResultSet::updateString(sal_Int32 column, const OUString& /* x */ checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateString", *this); } -/* }}} */ -/* {{{ OResultSet::updateBytes() -U- */ void SAL_CALL OResultSet::updateBytes(sal_Int32 column, const Sequence< sal_Int8 >& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1073,9 +941,7 @@ void SAL_CALL OResultSet::updateBytes(sal_Int32 column, const Sequence< sal_Int8 checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateBytes", *this); } -/* }}} */ -/* {{{ OResultSet::updateDate() -U- */ void SAL_CALL OResultSet::updateDate(sal_Int32 column, const Date& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1085,9 +951,7 @@ void SAL_CALL OResultSet::updateDate(sal_Int32 column, const Date& /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateDate", *this); } -/* }}} */ -/* {{{ OResultSet::updateTime() -U- */ void SAL_CALL OResultSet::updateTime(sal_Int32 column, const Time& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1097,9 +961,7 @@ void SAL_CALL OResultSet::updateTime(sal_Int32 column, const Time& /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateTime", *this); } -/* }}} */ -/* {{{ OResultSet::updateTimestamp() -U- */ void SAL_CALL OResultSet::updateTimestamp(sal_Int32 column, const DateTime& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1109,9 +971,7 @@ void SAL_CALL OResultSet::updateTimestamp(sal_Int32 column, const DateTime& /* x checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateTimestamp", *this); } -/* }}} */ -/* {{{ OResultSet::updateBinaryStream() -U- */ void SAL_CALL OResultSet::updateBinaryStream(sal_Int32 column, const Reference< XInputStream >& /* x */, sal_Int32 /* length */) throw(SQLException, RuntimeException, std::exception) @@ -1122,9 +982,7 @@ void SAL_CALL OResultSet::updateBinaryStream(sal_Int32 column, const Reference< checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateBinaryStream", *this); } -/* }}} */ -/* {{{ OResultSet::updateCharacterStream() -U- */ void SAL_CALL OResultSet::updateCharacterStream(sal_Int32 column, const Reference< XInputStream >& /* x */, sal_Int32 /* length */) throw(SQLException, RuntimeException, std::exception) @@ -1135,9 +993,7 @@ void SAL_CALL OResultSet::updateCharacterStream(sal_Int32 column, const Referenc checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateCharacterStream", *this); } -/* }}} */ -/* {{{ OResultSet::refreshRow() -U- */ void SAL_CALL OResultSet::refreshRow() throw(SQLException, RuntimeException, std::exception) { @@ -1146,9 +1002,7 @@ void SAL_CALL OResultSet::refreshRow() checkDisposed(OResultSet_BASE::rBHelper.bDisposed); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::refreshRow", *this); } -/* }}} */ -/* {{{ OResultSet::updateObject() -U- */ void SAL_CALL OResultSet::updateObject(sal_Int32 column, const Any& /* x */) throw(SQLException, RuntimeException, std::exception) { @@ -1158,9 +1012,7 @@ void SAL_CALL OResultSet::updateObject(sal_Int32 column, const Any& /* x */) checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateObject", *this); } -/* }}} */ -/* {{{ OResultSet::updateNumericObject() -U- */ void SAL_CALL OResultSet::updateNumericObject(sal_Int32 column, const Any& /* x */, sal_Int32 /* scale */) throw(SQLException, RuntimeException, std::exception) { @@ -1170,10 +1022,8 @@ void SAL_CALL OResultSet::updateNumericObject(sal_Int32 column, const Any& /* x checkColumnIndex(column); mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::updateNumericObject", *this); } -/* }}} */ // XRowLocate -/* {{{ OResultSet::getBookmark() -U- */ Any SAL_CALL OResultSet::getBookmark() throw(SQLException, RuntimeException, std::exception) { @@ -1187,9 +1037,7 @@ Any SAL_CALL OResultSet::getBookmark() return aRet; } -/* }}} */ -/* {{{ OResultSet::moveToBookmark() -U- */ sal_Bool SAL_CALL OResultSet::moveToBookmark(const Any& /* bookmark */) throw(SQLException, RuntimeException, std::exception) { @@ -1199,9 +1047,7 @@ sal_Bool SAL_CALL OResultSet::moveToBookmark(const Any& /* bookmark */) return sal_False; } -/* }}} */ -/* {{{ OResultSet::moveRelativeToBookmark() -U- */ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark(const Any& /* bookmark */, sal_Int32 /* rows */) throw(SQLException, RuntimeException, std::exception) { @@ -1212,9 +1058,7 @@ sal_Bool SAL_CALL OResultSet::moveRelativeToBookmark(const Any& /* bookmark */, mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::moveRelativeToBookmark", *this); return sal_False; } -/* }}} */ -/* {{{ OResultSet::compareBookmarks() -I- */ sal_Int32 SAL_CALL OResultSet::compareBookmarks(const Any& /* n1 */, const Any& /* n2 */) throw(SQLException, RuntimeException, std::exception) { @@ -1226,18 +1070,14 @@ sal_Int32 SAL_CALL OResultSet::compareBookmarks(const Any& /* n1 */, const Any& return CompareBookmark::NOT_EQUAL; } -/* }}} */ -/* {{{ OResultSet::hasOrderedBookmarks() -I- */ sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OResultSet::hasOrderedBookmarks"); return sal_False; } -/* }}} */ -/* {{{ OResultSet::hashBookmark() -U- */ sal_Int32 SAL_CALL OResultSet::hashBookmark(const Any& /* bookmark */) throw(SQLException, RuntimeException, std::exception) { @@ -1245,10 +1085,8 @@ sal_Int32 SAL_CALL OResultSet::hashBookmark(const Any& /* bookmark */) mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::hashBookmark", *this); return 0; } -/* }}} */ // XDeleteRows -/* {{{ OResultSet::deleteRows() -U- */ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows(const Sequence< Any >& /* rows */) throw(SQLException, RuntimeException, std::exception) { @@ -1260,9 +1098,7 @@ Sequence< sal_Int32 > SAL_CALL OResultSet::deleteRows(const Sequence< Any >& /* mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::deleteRows", *this); return aRet; } -/* }}} */ -/* {{{ OResultSet::createArrayHelper() -I- */ IPropertyArrayHelper * OResultSet::createArrayHelper() const { OSL_TRACE("OResultSet::createArrayHelper"); @@ -1280,17 +1116,13 @@ IPropertyArrayHelper * OResultSet::createArrayHelper() const return new OPropertyArrayHelper(aProps); } -/* }}} */ -/* {{{ OResultSet::getInfoHelper() -I- */ IPropertyArrayHelper & OResultSet::getInfoHelper() { OSL_TRACE("OResultSet::getInfoHelper"); return (*const_cast(this)->getArrayHelper()); } -/* }}} */ -/* {{{ OResultSet::convertFastPropertyValue() -I- */ sal_Bool OResultSet::convertFastPropertyValue(Any & /* rConvertedValue */, Any & /* rOldValue */, sal_Int32 nHandle, @@ -1311,9 +1143,7 @@ sal_Bool OResultSet::convertFastPropertyValue(Any & /* rConvertedValue */, } return sal_False; } -/* }}} */ -/* {{{ OResultSet::setFastPropertyValue_NoBroadcast() -I- */ void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */) throw (Exception, std::exception) { @@ -1332,9 +1162,7 @@ void OResultSet::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& ; } } -/* }}} */ -/* {{{ OResultSet::getFastPropertyValue() -I- */ void OResultSet::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const { OSL_TRACE("OResultSet::getFastPropertyValue"); @@ -1361,35 +1189,27 @@ void OResultSet::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const ; } } -/* }}} */ -/* {{{ OResultSet::acquire() -I- */ void SAL_CALL OResultSet::acquire() throw() { OSL_TRACE("OResultSet::acquire"); OResultSet_BASE::acquire(); } -/* }}} */ -/* {{{ OResultSet::release() -I- */ void SAL_CALL OResultSet::release() throw() { OSL_TRACE("OResultSet::release"); OResultSet_BASE::release(); } -/* }}} */ -/* {{{ OResultSet::getPropertySetInfo() -I- */ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException, std::exception) { OSL_TRACE("OResultSet::getPropertySetInfo"); return (::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper())); } -/* }}} */ -/* {{{ OResultSet::checkColumnIndex() -I- */ void OResultSet::checkColumnIndex(sal_Int32 index) throw (SQLException, RuntimeException) { @@ -1400,7 +1220,6 @@ void OResultSet::checkColumnIndex(sal_Int32 index) throw SQLException(buf, *this, OUString(), 1, Any()); } } -/* }}} */ /* * Local variables: diff --git a/mysqlc/source/mysqlc_resultsetmetadata.cxx b/mysqlc/source/mysqlc_resultsetmetadata.cxx index b52ecf0..7e5e043 100644 --- a/mysqlc/source/mysqlc_resultsetmetadata.cxx +++ b/mysqlc/source/mysqlc_resultsetmetadata.cxx @@ -32,10 +32,8 @@ using namespace com::sun::star::sdbc; OResultSetMetaData::~OResultSetMetaData() { } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnDisplaySize() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -50,10 +48,8 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnType() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -69,14 +65,12 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ /* XXX: This method doesn't throw exceptions at all. Should it declare that it throws ?? What if throw() is removed? Does it change the API, the open-close principle? */ -/* {{{ OResultSetMetaData::getColumnCount() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount() throw(SQLException, RuntimeException, std::exception) { @@ -90,10 +84,8 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount() } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isCaseSensitive() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -109,10 +101,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getSchemaName() -I- */ OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -128,10 +118,8 @@ OUString SAL_CALL OResultSetMetaData::getSchemaName(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnName() -I- */ OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -147,10 +135,8 @@ OUString SAL_CALL OResultSetMetaData::getColumnName(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getTableName() -I- */ OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -166,10 +152,8 @@ OUString SAL_CALL OResultSetMetaData::getTableName(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getCatalogName() -I- */ OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -185,10 +169,8 @@ OUString SAL_CALL OResultSetMetaData::getCatalogName(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnTypeName() -I- */ OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -204,10 +186,8 @@ OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnLabel() -I- */ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -223,10 +203,8 @@ OUString SAL_CALL OResultSetMetaData::getColumnLabel(sal_Int32 column) } return OUString(); // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getColumnServiceName() -I- */ OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -236,10 +214,8 @@ OUString SAL_CALL OResultSetMetaData::getColumnServiceName(sal_Int32 column) OUString aRet = OUString(); return aRet; } -/* }}} */ -/* {{{ OResultSetMetaData::isCurrency() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -255,10 +231,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isCurrency(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isAutoIncrement() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -274,10 +248,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isSigned() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -293,10 +265,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isSigned(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getPrecision() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -312,10 +282,8 @@ sal_Int32 SAL_CALL OResultSetMetaData::getPrecision(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::getScale() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) { @@ -330,10 +298,8 @@ sal_Int32 SAL_CALL OResultSetMetaData::getScale(sal_Int32 column) } return 0; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isNullable() -I- */ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -349,10 +315,8 @@ sal_Int32 SAL_CALL OResultSetMetaData::isNullable(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isSearchable() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -368,10 +332,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isSearchable(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isReadOnly() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -387,10 +349,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isReadOnly(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isDefinitelyWritable() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -406,10 +366,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::isWritable() -I- */ sal_Bool SAL_CALL OResultSetMetaData::isWritable(sal_Int32 column) throw(SQLException, RuntimeException, std::exception) { @@ -425,10 +383,8 @@ sal_Bool SAL_CALL OResultSetMetaData::isWritable(sal_Int32 column) } return sal_False; // fool compiler } -/* }}} */ -/* {{{ OResultSetMetaData::checkColumnIndex() -I- */ void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex) throw (SQLException, RuntimeException) { @@ -444,7 +400,6 @@ void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex) throw SQLException( buf.makeStringAndClear(), *this, OUString(), 1, Any() ); } } -/* }}} */ /* * Local variables: diff --git a/mysqlc/source/mysqlc_services.cxx b/mysqlc/source/mysqlc_services.cxx index a3f3fa1..944b812 100644 --- a/mysqlc/source/mysqlc_services.cxx +++ b/mysqlc/source/mysqlc_services.cxx @@ -54,7 +54,6 @@ struct ProviderRequest { } - /* {{{ CREATE_PROVIDER -I- */ inline bool CREATE_PROVIDER( const OUString& Implname, const Sequence< OUString > & Services, @@ -73,10 +72,8 @@ struct ProviderRequest void* getProvider() const { return xRet.get(); } }; -/* }}} */ -/* {{{ component_getFactory -I- */ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( const sal_Char * pImplementationName, void * pServiceManager, @@ -101,7 +98,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( return pRet; }; -/* }}} */ extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index 87ec8c5..dfb1884 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -139,20 +139,16 @@ void SAL_CALL OCommonStatement::close() } dispose(); } -/* }}} */ -/* {{{ OStatement::clearBatch() -I- */ void SAL_CALL OStatement::clearBatch() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OStatement::clearBatch"); // if you support batches clear it here } -/* }}} */ -/* {{{ OStatement::execute() -I- */ sal_Bool SAL_CALL OCommonStatement::execute(const OUString& sql) throw(SQLException, RuntimeException, std::exception) { @@ -169,10 +165,8 @@ sal_Bool SAL_CALL OCommonStatement::execute(const OUString& sql) } return success; } -/* }}} */ -/* {{{ OStatement::executeQuery() -I- */ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const OUString& sql) throw(SQLException, RuntimeException, std::exception) { @@ -192,10 +186,8 @@ Reference< XResultSet > SAL_CALL OCommonStatement::executeQuery(const OUString& } return xResultSet; } -/* }}} */ -/* {{{ OStatement::getConnection() -I- */ Reference< XConnection > SAL_CALL OCommonStatement::getConnection() throw(SQLException, RuntimeException, std::exception) { @@ -206,20 +198,16 @@ Reference< XConnection > SAL_CALL OCommonStatement::getConnection() // just return(our connection here return ((Reference< XConnection >)m_pConnection); } -/* }}} */ -/* {{{ OStatement::getUpdateCount() -I- */ sal_Int32 SAL_CALL OCommonStatement::getUpdateCount() throw(SQLException, RuntimeException, std::exception) { OSL_TRACE("OCommonStatement::getUpdateCount"); return 0; } -/* }}} */ -/* {{{ OStatement::queryInterface() -I- */ Any SAL_CALL OStatement::queryInterface(const Type & rType) throw(RuntimeException, std::exception) { @@ -230,10 +218,8 @@ Any SAL_CALL OStatement::queryInterface(const Type & rType) } return (aRet); } -/* }}} */ -/* {{{ OStatement::addBatch() -I- */ void SAL_CALL OStatement::addBatch(const OUString& sql) throw(SQLException, RuntimeException, std::exception) { @@ -243,10 +229,8 @@ void SAL_CALL OStatement::addBatch(const OUString& sql) m_aBatchList.push_back(sql); } -/* }}} */ -/* {{{ OStatement::executeBatch() -I- */ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch() throw(SQLException, RuntimeException, std::exception) { @@ -257,10 +241,8 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch() Sequence< sal_Int32 > aRet = Sequence< sal_Int32 >(); return aRet; } -/* }}} */ -/* {{{ OCommonStatement::executeUpdate() -I- */ sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const OUString& sql) throw(SQLException, RuntimeException, std::exception) { @@ -277,10 +259,8 @@ sal_Int32 SAL_CALL OCommonStatement::executeUpdate(const OUString& sql) } return affectedRows; } -/* }}} */ -/* {{{ OCommonStatement::getResultSet() -I- */ Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet() throw(SQLException, RuntimeException, std::exception) { @@ -298,10 +278,8 @@ Reference< XResultSet > SAL_CALL OCommonStatement::getResultSet() } return xResultSet; } -/* }}} */ -/* {{{ OCommonStatement::getMoreResults() -I- */ sal_Bool SAL_CALL OCommonStatement::getMoreResults() throw(SQLException, RuntimeException, std::exception) { @@ -313,10 +291,8 @@ sal_Bool SAL_CALL OCommonStatement::getMoreResults() // and has one more at this moment return(true return (sal_False); } -/* }}} */ -/* {{{ OCommonStatement::getWarnings() -I- */ Any SAL_CALL OCommonStatement::getWarnings() throw(SQLException, RuntimeException, std::exception) { @@ -326,10 +302,8 @@ Any SAL_CALL OCommonStatement::getWarnings() return makeAny(m_aLastWarning); } -/* }}} */ -/* {{{ OCommonStatement::clearWarnings() -I- */ void SAL_CALL OCommonStatement::clearWarnings() throw(SQLException, RuntimeException, std::exception) { @@ -339,10 +313,8 @@ void SAL_CALL OCommonStatement::clearWarnings() m_aLastWarning = SQLWarning(); } -/* }}} */ -/* {{{ OCommonStatement::createArrayHelper() -I- */ ::cppu::IPropertyArrayHelper* OCommonStatement::createArrayHelper( ) const { OSL_TRACE("OCommonStatement::createArrayHelper"); @@ -364,19 +336,15 @@ void SAL_CALL OCommonStatement::clearWarnings() return new ::cppu::OPropertyArrayHelper(aProps); } -/* }}} */ -/* {{{ OCommonStatement::getInfoHelper() -I- */ ::cppu::IPropertyArrayHelper & OCommonStatement::getInfoHelper() { OSL_TRACE("OCommonStatement::getInfoHelper"); return(*const_cast(this)->getArrayHelper()); } -/* }}} */ -/* {{{ OCommonStatement::convertFastPropertyValue() -I- */ sal_Bool OCommonStatement::convertFastPropertyValue( Any & /* rConvertedValue */, Any & /* rOldValue */, sal_Int32 /* nHandle */, const Any& /* rValue */) @@ -387,10 +355,8 @@ sal_Bool OCommonStatement::convertFastPropertyValue( // here we have to try to convert return bConverted; } -/* }}} */ -/* {{{ OCommonStatement::setFastPropertyValue_NoBroadcast() -I- */ void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& /* rValue */) throw (Exception, std::exception) { @@ -411,10 +377,8 @@ void OCommonStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const ; } } -/* }}} */ -/* {{{ OCommonStatement::getFastPropertyValue() -I- */ void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) const { OSL_TRACE("OCommonStatement::getFastPropertyValue"); @@ -436,7 +400,6 @@ void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) con ; } } -/* }}} */ OUString OStatement::getImplementationName() throw (css::uno::RuntimeException, std::exception) { @@ -457,54 +420,44 @@ sal_Bool OStatement::supportsService(OUString const & ServiceName) return cppu::supportsService(this, ServiceName); } -/* {{{ OCommonStatement::acquire() -I- */ void SAL_CALL OCommonStatement::acquire() throw() { OSL_TRACE("OCommonStatement::acquire"); OCommonStatement_IBase::acquire(); } -/* }}} */ -/* {{{ OCommonStatement::release() -I- */ void SAL_CALL OCommonStatement::release() throw() { OSL_TRACE("OCommonStatement::release"); relase_ChildImpl(); } -/* }}} */ -/* {{{ OStatement::acquire() -I- */ void SAL_CALL OStatement::acquire() throw() { OSL_TRACE("OStatement::acquire"); OCommonStatement::acquire(); } -/* }}} */ -/* {{{ OStatement::release() -I- */ void SAL_CALL OStatement::release() throw() { OSL_TRACE("OStatement::release"); OCommonStatement::release(); } -/* }}} */ -/* {{{ OCommonStatement::getPropertySetInfo() -I- */ Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo() throw(RuntimeException, std::exception) { OSL_TRACE("OCommonStatement::getPropertySetInfo"); return(::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper())); } -/* }}} */ /* * Local variables: