Files
libreoffice/connectivity/source/drivers/flat/ETables.cxx

65 lines
2.6 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2000-10-05 13:47:22 +00:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-10-05 13:47:22 +00:00
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
2000-10-05 13:47:22 +00:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-10-05 13:47:22 +00:00
*
* This file is part of OpenOffice.org.
2000-10-05 13:47:22 +00:00
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
2000-10-05 13:47:22 +00:00
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
2000-10-05 13:47:22 +00:00
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
2000-10-05 13:47:22 +00:00
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_connectivity.hxx"
2000-10-05 13:47:22 +00:00
#include "flat/ETables.hxx"
#include "flat/ETable.hxx"
#include <com/sun/star/sdbc/XRow.hpp>
#include <com/sun/star/sdbc/XResultSet.hpp>
#include <com/sun/star/sdbc/ColumnValue.hpp>
#include <com/sun/star/sdbc/KeyRule.hpp>
#include <com/sun/star/sdbcx/KeyType.hpp>
#include "file/FCatalog.hxx"
#include "file/FConnection.hxx"
2001-05-18 07:33:49 +00:00
#include <comphelper/types.hxx>
using namespace connectivity;
2001-05-18 07:33:49 +00:00
using namespace ::comphelper;
2000-10-05 13:47:22 +00:00
using namespace connectivity::flat;
using namespace connectivity::file;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
namespace starutil = ::com::sun::star::util;
sdbcx::ObjectType OFlatTables::createObject(const ::rtl::OUString& _rName)
2000-10-05 13:47:22 +00:00
{
2002-10-08 07:26:17 +00:00
OFlatTable* pRet = new OFlatTable(this,(OFlatConnection*)static_cast<OFileCatalog&>(m_rParent).getConnection(),
2000-10-05 13:47:22 +00:00
_rName,::rtl::OUString::createFromAscii("TABLE"));
sdbcx::ObjectType xRet = pRet;
2002-10-08 07:26:17 +00:00
pRet->construct();
return xRet;
2000-10-05 13:47:22 +00:00
}
// -------------------------------------------------------------------------
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */