Tag: cws_src680_dba24c User: fs Date: 2007-09-18 12:59:17+0000 Modified: dba/connectivity/source/commontools/sqlerror.cxx
Log: class renamed File Changes: Directory: /dba/connectivity/source/commontools/ ================================================ File [changed]: sqlerror.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/sqlerror.cxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +35 -35 --------------------- --- sqlerror.cxx 2007-09-18 12:51:29+0000 1.1.2.1 +++ sqlerror.cxx 2007-09-18 12:59:15+0000 1.1.2.2 @@ -4,9 +4,9 @@ * * $RCSfile: sqlerror.cxx,v $ * - * $Revision: 1.1.2.1 $ + * $Revision: 1.1.2.2 $ * - * last change: $Author: fs $ $Date: 2007/09/18 12:51:29 $ + * last change: $Author: fs $ $Date: 2007/09/18 12:59:15 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -64,18 +64,18 @@ using ::com::sun::star::uno::Type; /** === end UNO using === **/ - using OOoSQLError::ParamValue; + using SQLError::ParamValue; //==================================================================== - //= OOoSQLError_Impl - declaration + //= SQLError_Impl - declaration //==================================================================== - class OOoSQLError_Impl + class SQLError_Impl { public: - OOoSQLError_Impl( const ::comphelper::ComponentContext& _rContext ); - ~OOoSQLError_Impl(); + SQLError_Impl( const ::comphelper::ComponentContext& _rContext ); + ~SQLError_Impl(); - // versions of the public OOoSQLError methods which are just delegated to this impl-class + // versions of the public SQLError methods which are just delegated to this impl-class static const ::rtl::OUString& getMessagePrefix(); ::rtl::OUString getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ); ::rtl::OUString getSQLState( const ErrorCondition _eCondition ); @@ -101,10 +101,10 @@ }; //==================================================================== - //= OOoSQLError_Impl - implementation + //= SQLError_Impl - implementation //==================================================================== //-------------------------------------------------------------------- - OOoSQLError_Impl::OOoSQLError_Impl( const ::comphelper::ComponentContext& _rContext ) + SQLError_Impl::SQLError_Impl( const ::comphelper::ComponentContext& _rContext ) :m_aContext( _rContext ) ,m_pResources( ) ,m_bAttemptedInit( false ) @@ -112,12 +112,12 @@ } //-------------------------------------------------------------------- - OOoSQLError_Impl::~OOoSQLError_Impl() + SQLError_Impl::~SQLError_Impl() { } //-------------------------------------------------------------------- - const ::rtl::OUString& OOoSQLError_Impl::getMessagePrefix() + const ::rtl::OUString& SQLError_Impl::getMessagePrefix() { static ::rtl::OUString s_sMessagePrefix( RTL_CONSTASCII_USTRINGPARAM( "[OOoBase]" ) ); return s_sMessagePrefix; @@ -152,7 +152,7 @@ } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError_Impl::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) + ::rtl::OUString SQLError_Impl::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) { ::rtl::OUString sErrorMessage( impl_getErrorMessage( _eCondition ) ); @@ -164,19 +164,19 @@ } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError_Impl::getSQLState( const ErrorCondition _eCondition ) + ::rtl::OUString SQLError_Impl::getSQLState( const ErrorCondition _eCondition ) { return impl_getSQLState( _eCondition ); } //-------------------------------------------------------------------- - ErrorCode OOoSQLError_Impl::getErrorCode( const ErrorCondition _eCondition ) + ErrorCode SQLError_Impl::getErrorCode( const ErrorCondition _eCondition ) { return 0 - ::sal::static_int_cast< ErrorCode, ErrorCondition >( _eCondition ); } //-------------------------------------------------------------------- - void OOoSQLError_Impl::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) + void SQLError_Impl::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) { raiseTypedException( _eCondition, @@ -189,7 +189,7 @@ } //-------------------------------------------------------------------- - void OOoSQLError_Impl::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) + void SQLError_Impl::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) { raiseTypedException( _eCondition, @@ -202,7 +202,7 @@ } //-------------------------------------------------------------------- - void OOoSQLError_Impl::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, + void SQLError_Impl::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const Type& _rExceptionType, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) { if ( !::cppu::UnoType< SQLException >::get().isAssignableFrom( _rExceptionType ) ) @@ -224,14 +224,14 @@ } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError_Impl::impl_getErrorMessage( const ErrorCondition& _eCondition ) + ::rtl::OUString SQLError_Impl::impl_getErrorMessage( const ErrorCondition& _eCondition ) { ::rtl::OUStringBuffer aMessage; if ( impl_initResources() ) { ::rtl::OUString sResMessage( m_pResources->loadString( lcl_getResourceID( _eCondition, false ) ) ); - OSL_ENSURE( sResMessage.getLength(), "OOoSQLError_Impl::impl_getErrorMessage: illegal error condition, or invalid resource!" ); + OSL_ENSURE( sResMessage.getLength(), "SQLError_Impl::impl_getErrorMessage: illegal error condition, or invalid resource!" ); aMessage.append( getMessagePrefix() ).append( sResMessage ); } @@ -239,7 +239,7 @@ } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError_Impl::impl_getSQLState( const ErrorCondition& _eCondition ) + ::rtl::OUString SQLError_Impl::impl_getSQLState( const ErrorCondition& _eCondition ) { ::rtl::OUString sState; @@ -257,7 +257,7 @@ } //-------------------------------------------------------------------- - bool OOoSQLError_Impl::impl_initResources() + bool SQLError_Impl::impl_initResources() { if ( m_pResources.get() ) return true; @@ -272,57 +272,57 @@ } //==================================================================== - //= OOoSQLError + //= SQLError //==================================================================== //-------------------------------------------------------------------- - OOoSQLError::OOoSQLError( const ::comphelper::ComponentContext& _rContext ) - :m_pImpl( new OOoSQLError_Impl( _rContext ) ) + SQLError::SQLError( const ::comphelper::ComponentContext& _rContext ) + :m_pImpl( new SQLError_Impl( _rContext ) ) { } //-------------------------------------------------------------------- - OOoSQLError::~OOoSQLError() + SQLError::~SQLError() { } //-------------------------------------------------------------------- - const ::rtl::OUString& OOoSQLError::getMessagePrefix() + const ::rtl::OUString& SQLError::getMessagePrefix() { - return OOoSQLError_Impl::getMessagePrefix(); + return SQLError_Impl::getMessagePrefix(); } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const + ::rtl::OUString SQLError::getErrorMessage( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const { return m_pImpl->getErrorMessage( _eCondition, _rParamValue1, _rParamValue2, _rParamValue3 ); } //-------------------------------------------------------------------- - ::rtl::OUString OOoSQLError::getSQLState( const ErrorCondition _eCondition ) const + ::rtl::OUString SQLError::getSQLState( const ErrorCondition _eCondition ) const { return m_pImpl->getSQLState( _eCondition ); } //-------------------------------------------------------------------- - ErrorCode OOoSQLError::getErrorCode( const ErrorCondition _eCondition ) const + ErrorCode SQLError::getErrorCode( const ErrorCondition _eCondition ) const { return m_pImpl->getErrorCode( _eCondition ); } //-------------------------------------------------------------------- - void OOoSQLError::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const + void SQLError::raiseException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const { m_pImpl->raiseException( _eCondition, _rxContext, _rParamValue1, _rParamValue2, _rParamValue3 ); } //-------------------------------------------------------------------- - void OOoSQLError::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const + void SQLError::raiseException( const ErrorCondition _eCondition, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const { m_pImpl->raiseException( _eCondition, _rParamValue1, _rParamValue2, _rParamValue3 ); } //-------------------------------------------------------------------- - void OOoSQLError::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, + void SQLError::raiseTypedException( const ErrorCondition _eCondition, const Reference< XInterface >& _rxContext, const Type& _rExceptionType, const ParamValue& _rParamValue1, const ParamValue& _rParamValue2, const ParamValue& _rParamValue3 ) const { m_pImpl->raiseTypedException( _eCondition, _rxContext, _rExceptionType, _rParamValue1, _rParamValue2, _rParamValue3 ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
