## 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-2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /library/Zend/Db/Xml/Db2.php (line 43)

    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 (mixed $conn, [ $name = null])
void checkTable (mixed $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 57)

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 64)

Zend_Db_Xml_XmlContentStore_Db2 constructor

- access: public

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

- $name

Redefinition of:

Zend_Db_Xml_XmlContentStore::__construct()
  Zend_Db_Xml_XmlContentStore constructor

checkTable (line 134)

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 (mixed $e)
createTable (line 97)

Create the table if it does not exist

- access: protected

void createTable (string $name)

- string $name

delete (line 231)

- 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 248)

- 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 435)

- access: public

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

- $where
- $param

executeXPathPredicateQuery (line 462)

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 332)

- 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 297)

- access: public

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

- $strToFind
- $where
- $caseSensitive

findById (line 408)

- 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 364)

helper function

- access: protected

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

- $elementArr
- $where
- $options

insert (line 146)

- 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 75)

- access: public

void reset ()
selectAll (line 259)

- access: public

void selectAll ()

Redefinition of:

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

update (line 188)

- 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 47)
XML_SIZE = '64K' (line 46)

Documentation generated on Tue, 11 Jul 2006 12:24:17 -0500 by phpDocumentor 1.3.0RC6