XmlContainer::addIndex API Ref

#include <DbXml.hpp>

void XmlContainer::addIndex( const std::string &uri, const std::string &name, const std::string &index, XmlUpdateContext &context)

XmlContainer::addIndex( XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &index, XmlUpdateContext &context)

XmlContainer::addIndex( const std::string &uri, const std::string &name, XmlIndexSpecification::Type type, XmlValue::Type syntax, XmlUpdateContext &context)

XmlContainer::addIndex( XmlTransaction &txn, const std::string &uri, const std::string &name, XmlIndexSpecification::Type type, XmlValue::Type syntax, XmlUpdateContext &context)


Description: XmlContainer::addIndex

Adds an index of the specified type for the named document node. These method are for convenience -- see XmlIndexSpecification::addIndex for more information.


Description: XmlContainer::addIndex(XmlTransaction &txn, const std::string &uri, const std::string &name, const std::string &index, XmlUpdateContext &context)

Identifies one or more indexing strategies to set for the identified node. The strategies are identified as a space-separated listing of strings.

Parameters
txn uri name index context

Errors

The XmlContainer::addIndex method may fail and throw XmlException, encapsulating one of the following non-zero errors:


DATABASE_ERROR

UNKNOWN_INDEX

Description: XmlContainer::addIndex(XmlTransaction &txn, const std::string &uri, const std::string &name, XmlIndexSpecification::Type type, XmlValue::Type syntax, XmlUpdateContext &context)

Identifies an indexing strategy to set for the identified node. The strategy is set using enumeration values for the index and the syntax.

Parameters
txn uri name type syntax context

Errors

The XmlContainer::addIndex method may fail and throw XmlException, encapsulating one of the following non-zero errors:


DATABASE_ERROR

UNKNOWN_INDEX

APIRef

Copyright (c) 1996-2009 Oracle. All rights reserved.