Update ooo320-m1
[ooovba.git] / connectivity / source / drivers / evoab / LConnection.hxx
blob05191d923ae02790ccd53d231460ce3580c51f59
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: LConnection.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CONNECTIVITY_EVOAB_LCONNECTION_HXX_
32 #define _CONNECTIVITY_EVOAB_LCONNECTION_HXX_
34 #include "LDriver.hxx"
35 #include "file/FConnection.hxx"
36 #include "LColumnAlias.hxx"
38 namespace connectivity
40 namespace evoab
42 class OEvoabConnection : public file::OConnection
44 private:
45 OColumnAlias m_aColumnAlias;
46 sal_Bool m_bHeaderLine; // column names in first row
47 sal_Unicode m_cFieldDelimiter; // look at the name
48 sal_Unicode m_cStringDelimiter; // delimiter for strings m_cStringDelimiter blabla m_cStringDelimiter
49 sal_Unicode m_cDecimalDelimiter; // Dezimal-delimiter (Dezimalpoint)
50 sal_Unicode m_cThousandDelimiter; //
51 rtl::OUString m_aEvoFlatURI;
53 public:
54 OEvoabConnection(OEvoabDriver* _pDriver);
55 virtual ~OEvoabConnection();
57 virtual void construct(const ::rtl::OUString& _rUrl,const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rInfo ) throw( ::com::sun::star::sdbc::SQLException);
59 // own methods
60 inline const OEvoabDriver* getDriver() const { return static_cast< const OEvoabDriver* >( m_pDriver ); }
61 inline sal_Bool isHeaderLine() const { return m_bHeaderLine; }
62 inline sal_Unicode getFieldDelimiter() const { return m_cFieldDelimiter; }
63 inline sal_Unicode getStringDelimiter() const { return m_cStringDelimiter; }
64 inline sal_Unicode getDecimalDelimiter() const { return m_cDecimalDelimiter; }
65 inline sal_Unicode getThousandDelimiter() const { return m_cThousandDelimiter;}
66 const OColumnAlias& getColumnAlias() const { return m_aColumnAlias; }
68 // XServiceInfo
69 DECLARE_SERVICE_INFO();
71 // XConnection
72 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
73 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XTablesSupplier > createCatalog();
74 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XStatement > SAL_CALL createStatement( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
75 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement > SAL_CALL prepareStatement( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
76 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XPreparedStatement > SAL_CALL prepareCall( const ::rtl::OUString& sql ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
81 #endif // _CONNECTIVITY_EVOAB_LCONNECTION_HXX_