2
* Copyright 2006-2012 The FLWOR Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
#include <zorba/empty_sequence.h>
18
#include <zorba/external_module.h>
19
#include <zorba/item_factory.h>
20
#include <zorba/zorba.h>
22
#include "JavaVMSingleton.h"
30
class TablesFunction : public ContextualExternalFunction
33
const ExternalModule* theModule;
34
ItemFactory* theFactory;
35
XmlDataManager* theDataManager;
38
TablesFunction(const ExternalModule* aModule) :
40
theFactory(Zorba::getInstance(0)->getItemFactory()),
41
theDataManager(Zorba::getInstance(0)->getXmlDataManager())
48
virtual String getURI() const
49
{ return theModule->getURI(); }
51
virtual String getLocalName() const
54
virtual ItemSequence_t
55
evaluate(const ExternalFunction::Arguments_t& args,
56
const zorba::StaticContext*,
57
const zorba::DynamicContext*) const;
62
}}; // namespace zorba, jdbc