Class \Prado\Data\SqlMap\Configuration\TSqlMapXmlMappingConfiguration
Loads the statements, result maps, parameters maps from xml configuration.
description
Class hierarchy
- \Prado\Data\SqlMap\Configuration\TSqlMapXmlMappingConfiguration
- \Prado\Data\SqlMap\Configuration\TSqlMapXmlConfigBuilder
Since: 3.1
public
|
|
public
|
|
protected
|
applyInlineParameterMap(TSqlMapStatement $statement, string $sqlStatement, SimpleXmlElement $node) : mixed
Extract inline parameter maps.
|
protected
|
createInsertStatement(SimpleXmlElement $node) : TSqlMapInsert
Create new insert statement from xml node.
|
protected
|
createParameterMap(SimpleXmlElement $node) : TParameterMap
Create a new parameter map from xml node.
|
protected
|
createResultMap(SimpleXmlElement $node) : TResultMap
Create a new result map and its associated result properties,
disciminiator and sub maps.
|
protected
|
|
protected
|
|
protected
|
|
protected
|
loadFlushInterval(TSqlMapCacheModel $cacheModel, SimpleXmlElement $node) : mixed
Load the flush interval
|
protected
|
loadFlushOnCache(TSqlMapCacheModel $cacheModel, SimpleXmlElement $parent, SimpleXmlElement $node) : mixed
Load the flush on cache properties.
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
loadSelectKeyTag(mixed $insert, SimpleXmlElement $node) : mixed
Load the selectKey statement from xml mapping.
|
protected
|
|
protected
|
loadStatementTag(SimpleXmlElement $node) : mixed
Load statement mapping from xml configuration file.
|
protected
|
|
protected
|
prepareSql(TSqlMapStatement $statement, string $sqlStatement, SimpleXmlElement $node) : mixed
Prepare the sql text (may extend to dynamic sql).
|
protected
|
processSqlStatement(TSqlMapStatement $statement, SimpleXmlElement $node) : mixed
Load extended SQL statements if application. Replaces global properties
in the sql text. Extracts inline parameter maps.
|
protected
|
registerCacheTriggers() : mixed
Attach CacheModel to statement and register trigger statements for cache models
|
createObjectFromNode, getAbsoluteFilePath, getConfigFile, getElementByIdValue, loadXmlDocument, setObjectPropFromNode |
public
mixed
|
ESCAPED_INLINE_SYMBOL_REGEXP
|
'/\\#\\#/'
|
public
mixed
|
ESCAPED_SIMPLE_MARK_REGEXP
|
'/\\$\\$/'
|
public
mixed
|
INLINE_PLACEHOLDER
|
'`!!!`'
|
public
mixed
|
INLINE_SYMBOL
|
'#'
|
public
mixed
|
SIMPLE_MARK
Regular expressions for escaping simple/inline parameter symbols
|
'$'
|
public
mixed
|
SIMPLE_PLACEHOLDER
|
'`!!`'
|