/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
using ::com::sun::star::uno::Reference; using ::com::sun::star::sdbc::XConnection; using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::sdbc::SQLException; using ::com::sun::star::sdbc::XDatabaseMetaData; using ::com::sun::star::container::XNameAccess; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::sdbcx::XTablesSupplier; using ::com::sun::star::sdb::XQueriesSupplier; using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::Any; using ::com::sun::star::uno::XComponentContext;
// NameCheckFactory class NameCheckFactory
{ public:
NameCheckFactory(const NameCheckFactory&) = delete; const NameCheckFactory& operator=(const NameCheckFactory&) = delete; /** creates an INameValidation instance which can be used to check the existence of query or table names
@param _nCommandType the type of objects (CommandType::TABLE or CommandType::QUERY) of which names shall be checked for existence
@param _rxConnection the connection relative to which the names are to be checked. Must be an SDB-level connection
@throws IllegalArgumentException if the given connection is no SDB-level connection
@throws IllegalArgumentException if the given command type is neither CommandType::TABLE or CommandType::QUERY
*/ static PNameValidation createExistenceCheck(
sal_Int32 _nCommandType, const Reference< XConnection >& _rxConnection
);
/** creates an INameValidation instance which can be used to check the validity of a query or table name
@param _nCommandType the type of objects (CommandType::TABLE or CommandType::QUERY) of which names shall be validated
@param _rxConnection the connection relative to which the names are to be checked. Must be an SDB-level connection
@throws IllegalArgumentException if the given connection is no SDB-level connection
@throws IllegalArgumentException if the given command type is neither CommandType::TABLE or CommandType::QUERY
*/ static PNameValidation createValidityCheck( const sal_Int32 _nCommandType, const Reference< XConnection >& _rxConnection
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.