PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TSqlMapXmlMappingConfiguration

Loads the statements, result maps, parameters maps from xml configuration.

description

TSqlMapXmlConfigBuilder
Extended by TSqlMapXmlMappingConfiguration
Package: System\Data\SqlMap\Configuration
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php
Methods summary
public
# __construct( TSqlMapXmlConfiguration $xmlConfig )

Parameters

$xmlConfig
TSqlMapXmlConfiguration
parent xml configuration.
protected string
# getConfigFile( )

Returns

string
configuration file.
public
# configure( string $filename )

Configure an XML mapping.

Configure an XML mapping.

Parameters

$filename
string
xml mapping filename.
protected
# loadResultMap( SimpleXmlElement $node )

Load the result maps.

Load the result maps.

Parameters

$node
SimpleXmlElement
result map node.
protected TResultMap
# createResultMap( SimpleXmlElement $node )

Create a new result map and its associated result properties, disciminiator and sub maps.

Create a new result map and its associated result properties, disciminiator and sub maps.

Parameters

$node
SimpleXmlElement
result map node

Returns

TResultMap
SqlMap result mapping.
protected
# loadParameterMap( SimpleXmlElement $node )

Load parameter map from xml.

Load parameter map from xml.

Parameters

$node
SimpleXmlElement
parameter map node.
protected TParameterMap
# createParameterMap( SimpleXmlElement $node )

Create a new parameter map from xml node.

Create a new parameter map from xml node.

Parameters

$node
SimpleXmlElement
parameter map node.

Returns

TParameterMap
new parameter mapping.
protected
# loadStatementTag( SimpleXmlElement $node )

Load statement mapping from xml configuration file.

Load statement mapping from xml configuration file.

Parameters

$node
SimpleXmlElement
statement node.
protected
# processSqlStatement( TSqlMapStatement $statement, SimpleXmlElement $node )

Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.

Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.

Parameters

$statement
TSqlMapStatement
mapped statement.
$node
SimpleXmlElement
statement node.
protected
# applyInlineParameterMap( TSqlMapStatement $statement, string $sqlStatement, SimpleXmlElement $node )

Extract inline parameter maps.

Extract inline parameter maps.

Parameters

$statement
TSqlMapStatement
statement object.
$sqlStatement
string
sql text
$node
SimpleXmlElement
statement node.
protected
# prepareSql( TSqlMapStatement $statement, string $sqlStatement, SimpleXmlElement $node )

Prepare the sql text (may extend to dynamic sql).

Prepare the sql text (may extend to dynamic sql).

Parameters

$statement
TSqlMapStatement
mapped statement.
$sqlStatement
string
sql text.
$node
SimpleXmlElement
statement node.

Todo

Extend to dynamic sql.
protected
# loadSelectTag( SimpleXmlElement $node )

Load select statement from xml mapping.

Load select statement from xml mapping.

Parameters

$node
SimpleXmlElement
select node.
protected
# loadInsertTag( SimpleXmlElement $node )

Load insert statement from xml mapping.

Load insert statement from xml mapping.

Parameters

$node
SimpleXmlElement
insert node.
protected TSqlMapInsert
# createInsertStatement( SimpleXmlElement $node )

Create new insert statement from xml node.

Create new insert statement from xml node.

Parameters

$node
SimpleXmlElement
insert node.

Returns

TSqlMapInsert
insert statement.
protected
# loadSelectKeyTag( SimpleXmlElement $insert, mixed $node )

Load the selectKey statement from xml mapping.

Load the selectKey statement from xml mapping.

Parameters

$insert
SimpleXmlElement
selectkey node
$node
protected
# loadUpdateTag( SimpleXmlElement $node )

Load update statement from xml mapping.

Load update statement from xml mapping.

Parameters

$node
SimpleXmlElement
update node.
protected
# loadDeleteTag( SimpleXmlElement $node )

Load delete statement from xml mapping.

Load delete statement from xml mapping.

Parameters

$node
SimpleXmlElement
delete node.
protected
# loadProcedureTag( SimpleXmlElement $node )

Load procedure statement from xml mapping.

Load procedure statement from xml mapping.

Parameters

$node
SimpleXmlElement
procedure node

Todo

Implement loading procedure
protected
# loadCacheModel( SimpleXmlElement $node )

Load cache models from xml mapping.

Load cache models from xml mapping.

Parameters

$node
SimpleXmlElement
cache node.
protected
# loadFlushInterval( TSqlMapCacheModel $cacheModel, SimpleXmlElement $node )

Load the flush interval

Load the flush interval

Parameters

$cacheModel
TSqlMapCacheModel
cache model
$node
SimpleXmlElement
cache node
protected
# loadFlushOnCache( TSqlMapCacheModel $cacheModel, SimpleXmlElement $parent, SimpleXmlElement $node )

Load the flush on cache properties.

Load the flush on cache properties.

Parameters

$cacheModel
TSqlMapCacheModel
cache model
$parent
SimpleXmlElement
parent node.
$node
SimpleXmlElement
flush node.
protected
# registerCacheTriggers( )

Attach CacheModel to statement and register trigger statements for cache models

Attach CacheModel to statement and register trigger statements for cache models

Methods inherited from TSqlMapXmlConfigBuilder
createObjectFromNode(), getAbsoluteFilePath(), getElementByIdValue(), loadXmlDocument(), setObjectPropFromNode()
Constants summary
string SIMPLE_MARK '$'
#

Regular expressions for escaping simple/inline parameter symbols

Regular expressions for escaping simple/inline parameter symbols

string INLINE_SYMBOL '#'
#
string ESCAPED_SIMPLE_MARK_REGEXP '/\$\$/'
#
string ESCAPED_INLINE_SYMBOL_REGEXP '/\#\#/'
#
string SIMPLE_PLACEHOLDER '`!!`'
#
string INLINE_PLACEHOLDER '`!!!`'
#
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO