summaryrefslogtreecommitdiff
path: root/mysqlc/source/mysqlc_connection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mysqlc/source/mysqlc_connection.hxx')
-rw-r--r--mysqlc/source/mysqlc_connection.hxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx
index 20f9ffac141c..ac3c4ccd79a2 100644
--- a/mysqlc/source/mysqlc_connection.hxx
+++ b/mysqlc/source/mysqlc_connection.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
+*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,7 +79,7 @@ namespace connectivity
typedef ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > my_XNameAccessRef;
typedef ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > my_XDatabaseMetaDataRef;
- typedef ::cppu::WeakComponentImplHelper3< ::com::sun::star::sdbc::XConnection,
+ typedef ::cppu::WeakComponentImplHelper3< ::com::sun::star::sdbc::XConnection,
::com::sun::star::sdbc::XWarningsSupplier,
::com::sun::star::lang::XServiceInfo
> OMetaConnection_BASE;
@@ -112,33 +112,33 @@ namespace connectivity
::com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > m_typeMap;
::com::sun::star::uno::Reference< com::sun::star::util::XStringSubstitution > m_xParameterSubstitution;
protected:
-
+
//====================================================================
// Data attributes
//====================================================================
::com::sun::star::uno::WeakReference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
- OWeakRefArray m_aStatements; // vector containing a list
+ OWeakRefArray m_aStatements; // vector containing a list
// of all the Statement objects
// for this Connection
- SQLWarning m_aLastWarning; // Last SQLWarning generated by an operation
- OUString m_aURL; // URL of connection
- OUString m_sUser; // the user name
- MysqlCDriver& m_rDriver; // Pointer to the owning driver object
+ SQLWarning m_aLastWarning; // Last SQLWarning generated by an operation
+ OUString m_aURL; // URL of connection
+ OUString m_sUser; // the user name
+ MysqlCDriver& m_rDriver; // Pointer to the owning driver object
sql::Driver* cppDriver;
- sal_Bool m_bClosed;
- sal_Bool m_bUseCatalog; // should we use the catalog on filebased databases
- sal_Bool m_bUseOldDateFormat;
+ sal_Bool m_bClosed;
+ sal_Bool m_bUseCatalog; // should we use the catalog on filebased databases
+ sal_Bool m_bUseOldDateFormat;
- void buildTypeInfo() throw(SQLException);
+ void buildTypeInfo() throw(SQLException);
public:
OUString getMysqlVariable(const char *varname)
throw(SQLException, RuntimeException);
- sal_Int32 getMysqlVersion()
+ sal_Int32 getMysqlVersion()
throw(SQLException, RuntimeException);
virtual void construct(const OUString& url,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info)
@@ -147,7 +147,7 @@ namespace connectivity
OConnection(MysqlCDriver& _rDriver, sql::Driver * cppDriver);
virtual ~OConnection();
- void closeAllStatements () throw(SQLException);
+ void closeAllStatements () throw(SQLException);
rtl_TextEncoding getConnectionEncoding() { return m_settings.encoding; }
@@ -157,7 +157,7 @@ namespace connectivity
virtual void SAL_CALL disposing(void);
// XInterface
- virtual void SAL_CALL release() throw();
+ virtual void SAL_CALL release() throw();
// XServiceInfo
DECLARE_SERVICE_INFO();
@@ -228,12 +228,12 @@ namespace connectivity
//sal_Int32 sdbcColumnType(OUString typeName);
inline const ConnectionSettings& getConnectionSettings() const { return m_settings; }
::rtl::OUString transFormPreparedStatement(const ::rtl::OUString& _sSQL);
-
+
// should we use the catalog on filebased databases
- inline sal_Bool isCatalogUsed() const { return m_bUseCatalog; }
- inline OUString getUserName() const { return m_sUser; }
- inline const MysqlCDriver& getDriver() const { return m_rDriver;}
- inline rtl_TextEncoding getTextEncoding() const { return m_settings.encoding; }
+ inline sal_Bool isCatalogUsed() const { return m_bUseCatalog; }
+ inline OUString getUserName() const { return m_sUser; }
+ inline const MysqlCDriver& getDriver() const { return m_rDriver;}
+ inline rtl_TextEncoding getTextEncoding() const { return m_settings.encoding; }
}; /* OConnection */
// TODO: Not used.