## Zend_Db_Xml_XmlContentStore_Db2

Description

The Zend_Db_Xml_XmlContentStore_Db2 represents a DB2 repository for XML Documents.

Xrnf_Xml_XmlContentStore abstracts database persistence via convenience methods. XML Data is represented by Zend_Db_Xml_XmlContent objects. Activities to and from the persistence layer are operated on these objects.

- author: Salvador Ledezma <ledezma@us.ibm.com>
- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Db/Xml/Db2.php (line 45)

    Zend_Db_Xml_XmlContentStore
       |
       --Zend_Db_Xml_XmlContentStore_Db2

Class Constant Summary
BLOB_SIZE = '100m'
XML_SIZE = '64K'
Variable Summary
string $_table
Method Summary
Zend_Db_Xml_XmlContentStore_Db2 __construct (Zend_Db_Adapter_Db2 $conn, [ $name = null])
void checkTable (Zend_Db_Statement_Db2_Exception $e)
void createTable (string $name)
void delete ( $doc)
void deleteById ( $param)
void executeSQLPredicateQuery ( $where, [ $param = null])
Zend_Db_Xml_XmlIterator executeXPathPredicateQuery ( $xpath, $xmlLoc, [ $param = null], string $xpath,, string $xmlLoc,, array $param,)
void find ( $searchParam, $where, $options)
void findAnywhere ( $strToFind, $where, $caseSensitive)
void findById ( $id)
void generateSearchString ( $elementArr, $where, $options)
void insert ( $doc)
void reset ()
void selectAll ()
void update ( $doc)
Variables
string $_table (line 59)

Table name

user-defined. If it doesn't exist, create it

- access: protected

#### Inherited Variables

Inherited from Zend_Db_Xml_XmlContentStore

> Zend_Db_Xml_XmlContentStore::$_conn

Methods
Constructor __construct (line 66)

Zend_Db_Xml_XmlContentStore_Db2 constructor

- access: public

Zend_Db_Xml_XmlContentStore_Db2 __construct (Zend_Db_Adapter_Db2 $conn, [ $name = null])

- Zend_Db_Adapter_Db2 $conn
- $name

Redefinition of:

Zend_Db_Xml_XmlContentStore::__construct()
  Zend_Db_Xml_XmlContentStore constructor

checkTable (line 136)

Helper function

Check the existence of the table. If the SQLCode == SQL0204N, this is a manageable error. Create the table and try again.

- access: protected

void checkTable (Zend_Db_Statement_Db2_Exception $e)

- Zend_Db_Statement_Db2_Exception $e

createTable (line 99)

Create the table if it does not exist

- access: protected

void createTable (string $name)

- string $name

delete (line 233)

- access: public

void delete ( $doc)

- $doc

Redefinition of:

Zend_Db_Xml_XmlContentStore::delete()
  Removes the XML data represented by an Zend_Db_Xml_XmlContent object from the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

deleteById (line 250)

- access: public

void deleteById ( $param)

- $param

Redefinition of:

Zend_Db_Xml_XmlContentStore::deleteById()
  Removes the XML data given the id of the XML document

executeSQLPredicateQuery (line 437)

- access: public

void executeSQLPredicateQuery ( $where, [ $param = null])

- $where
- $param

executeXPathPredicateQuery (line 464)

Execute a simple search using an XPath expression

- access: public

Zend_Db_Xml_XmlIterator executeXPathPredicateQuery ( $xpath, $xmlLoc, [ $param = null], string $xpath,, string $xmlLoc,, array $param,)

- string $xpath,
- string $xmlLoc,: DATA or ABOUT
- array $param,: associative array. NOTE: array keys must match xquery variables used in $xpath expression.
- $xpath
- $xmlLoc
- $param

find (line 334)

- access: public

void find ( $searchParam, $where, $options)

- $searchParam
- $where
- $options

Redefinition of:

Zend_Db_Xml_XmlContentStore::find()
  Finds Zend_Db_Xml_XmlContent documents that match items in array

findAnywhere (line 299)

- access: public

void findAnywhere ( $strToFind, $where, $caseSensitive)

- $strToFind
- $where
- $caseSensitive

findById (line 410)

- access: public

void findById ( $id)

- $id

Redefinition of:

Zend_Db_Xml_XmlContentStore::findById()
  Returns the Zend_Db_Xml_XmlContent object associated with given id

generateSearchString (line 366)

helper function

- access: protected

void generateSearchString ( $elementArr, $where, $options)

- $elementArr
- $where
- $options

insert (line 148)

- access: public

void insert ( $doc)

- $doc

Redefinition of:

Zend_Db_Xml_XmlContentStore::insert()
  Saves the XML data represented by an Zend_Db_Xml_XmlContent object into the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

reset (line 77)

- access: public

void reset ()
selectAll (line 261)

- access: public

void selectAll ()

Redefinition of:

Zend_Db_Xml_XmlContentStore::selectAll()
  Returns all documents in the content store

update (line 190)

- access: public

void update ( $doc)

- $doc

Redefinition of:

Zend_Db_Xml_XmlContentStore::update()
  Replaces existing XML data represented by an Zend_Db_Xml_XmlContent object in the persistence layer. An array of Zend_Db_Xml_XmlContent objects can also be passed in.

#### Inherited Methods

Inherited From Zend_Db_Xml_XmlContentStore

> Zend_Db_Xml_XmlContentStore::__construct()
> Zend_Db_Xml_XmlContentStore::delete()
> Zend_Db_Xml_XmlContentStore::deleteById()
> Zend_Db_Xml_XmlContentStore::find()
> Zend_Db_Xml_XmlContentStore::findById()
> Zend_Db_Xml_XmlContentStore::insert()
> Zend_Db_Xml_XmlContentStore::insertDOM()
> Zend_Db_Xml_XmlContentStore::selectAll()
> Zend_Db_Xml_XmlContentStore::update()

Class Constants
BLOB_SIZE = '100m' (line 49)
XML_SIZE = '64K' (line 48)

Documentation generated on Wed, 21 Feb 2007 12:02:23 -0800 by phpDocumentor 1.3.1