1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tablename.hxx,v $
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 DBACCESS_SOURCE_SDBTOOLS_CONNECTION_TABLENAME_HXX
32 #define DBACCESS_SOURCE_SDBTOOLS_CONNECTION_TABLENAME_HXX
34 #ifndef DBACCESS_CONNECTION_DEPENDENT_HXX
35 #include "connectiondependent.hxx"
38 /** === begin UNO includes === **/
39 #ifndef _COM_SUN_STAR_SDB_TOOLS_XTABLENAME_HPP_
40 #include <com/sun/star/sdb/tools/XTableName.hpp>
42 /** === end UNO includes === **/
44 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
45 #include <cppuhelper/implbase1.hxx>
50 //........................................................................
53 //........................................................................
55 //====================================================================
57 //====================================================================
58 typedef ::cppu::WeakImplHelper1
< ::com::sun::star::sdb::tools::XTableName
60 struct TableName_Impl
;
61 /** default implementation for XTableName
63 class TableName
:public TableName_Base
64 ,public ConnectionDependentComponent
67 ::std::auto_ptr
< TableName_Impl
> m_pImpl
;
70 /** constructs the instance
73 the component's context
75 the connection to work with. Will be held weak. Must not be <NULL/>.
77 @throws ::com::sun::star::lang::NullPointerException
78 if _rxConnection is <NULL/>
81 const ::comphelper::ComponentContext
& _rContext
,
82 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
86 virtual ::rtl::OUString SAL_CALL
getCatalogName() throw (::com::sun::star::uno::RuntimeException
);
87 virtual void SAL_CALL
setCatalogName( const ::rtl::OUString
& _catalogname
) throw (::com::sun::star::uno::RuntimeException
);
88 virtual ::rtl::OUString SAL_CALL
getSchemaName() throw (::com::sun::star::uno::RuntimeException
);
89 virtual void SAL_CALL
setSchemaName( const ::rtl::OUString
& _schemaname
) throw (::com::sun::star::uno::RuntimeException
);
90 virtual ::rtl::OUString SAL_CALL
getTableName() throw (::com::sun::star::uno::RuntimeException
);
91 virtual void SAL_CALL
setTableName( const ::rtl::OUString
& _tablename
) throw (::com::sun::star::uno::RuntimeException
);
92 virtual ::rtl::OUString SAL_CALL
getNameForSelect() throw (::com::sun::star::uno::RuntimeException
);
93 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
> SAL_CALL
getTable() throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::uno::RuntimeException
);
94 virtual void SAL_CALL
setTable( const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>& _table
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
);
95 virtual ::rtl::OUString SAL_CALL
getComposedName( ::sal_Int32 Type
, ::sal_Bool _Quote
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
);
96 virtual void SAL_CALL
setComposedName( const ::rtl::OUString
& ComposedName
, ::sal_Int32 Type
) throw (::com::sun::star::uno::RuntimeException
);
102 TableName(); // never implemented
103 TableName( const TableName
& ); // never implemented
104 TableName
& operator=( const TableName
& ); // never implemented
107 //........................................................................
108 } // namespace sdbtools
109 //........................................................................
111 #endif // DBACCESS_SOURCE_SDBTOOLS_CONNECTION_TABLENAME_HXX