## Class TSubMap

Description

TSubMap class defines a submapping value and the corresponding <resultMap>

The Value property is used for comparison with the discriminator column value. When the Value matches that of the discriminator column value, the corresponding ResultMapping is used inplace of the current result map.

- since: 3.1
- version: $Id: TDiscriminator.php 2541 2008-10-21 15:05:13Z qiang.xue $
- author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/SqlMap/Configuration/TDiscriminator.php (line 194)

    TComponent
       |
       --TSubMap

Method Summary
string getResultMapping ()
string getValue ()
void setResultMapping (string $value)
void setValue (string $value)
Methods
getResultMapping (line 219)

The result map to use when the Value matches the discriminator column value.

- return: ID of a result map
- access: public

string getResultMapping ()
getValue (line 202)

- return: value for comparison with discriminator column value.
- access: public

string getValue ()
setResultMapping (line 227)

- access: public

void setResultMapping (string $value)

- string $value: ID of a result map

setValue (line 210)

- access: public

void setValue (string $value)

- string $value: value for comparison with discriminator column value.

#### Inherited Methods

Inherited From TComponent

> TComponent::addParsedObject()
> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::createdOnTemplate()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Mon, 22 Feb 2010 12:17:37 +0000 by phpDocumentor 1.3.0RC4