PHP Class Prado\Data\SqlMap\Configuration\TSqlMapXmlMappingConfiguration

description
Since: 3.1
Inheritance: extends TSqlMapXmlConfigBuilder
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( TSqlMapXmlConfiguration $xmlConfig )
configure ( $filename ) Configure an XML mapping.

Protected Methods

Method Description
applyInlineParameterMap ( $statement, $sqlStatement, $node ) Extract inline parameter maps.
createInsertStatement ( $node ) : TSqlMapInsert Create new insert statement from xml node.
createParameterMap ( $node ) : TParameterMap Create a new parameter map from xml node.
createResultMap ( $node ) : TResultMap Create a new result map and its associated result properties, disciminiator and sub maps.
getConfigFile ( )
loadCacheModel ( $node ) Load cache models from xml mapping.
loadDeleteTag ( $node ) Load delete statement from xml mapping.
loadFlushInterval ( $cacheModel, $node ) Load the flush interval
loadFlushOnCache ( $cacheModel, $parent, $node ) Load the flush on cache properties.
loadInsertTag ( $node ) Load insert statement from xml mapping.
loadParameterMap ( $node ) Load parameter map from xml.
loadProcedureTag ( $node ) Load procedure statement from xml mapping.
loadResultMap ( $node ) Load the result maps.
loadSelectKeyTag ( $insert, $node ) Load the selectKey statement from xml mapping.
loadSelectTag ( $node ) Load select statement from xml mapping.
loadStatementTag ( $node ) Load statement mapping from xml configuration file.
loadUpdateTag ( $node ) Load update statement from xml mapping.
prepareSql ( $statement, $sqlStatement, $node ) Prepare the sql text (may extend to dynamic sql).
processSqlStatement ( $statement, $node ) Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.
registerCacheTriggers ( ) Attach CacheModel to statement and register trigger statements for cache models

Method Details

__construct() public method

public __construct ( TSqlMapXmlConfiguration $xmlConfig )
$xmlConfig TSqlMapXmlConfiguration

applyInlineParameterMap() protected method

Extract inline parameter maps.
protected applyInlineParameterMap ( $statement, $sqlStatement, $node )

configure() public method

Configure an XML mapping.
public configure ( $filename )

createInsertStatement() protected method

Create new insert statement from xml node.
protected createInsertStatement ( $node ) : TSqlMapInsert
return TSqlMapInsert insert statement.

createParameterMap() protected method

Create a new parameter map from xml node.
protected createParameterMap ( $node ) : TParameterMap
return TParameterMap new parameter mapping.

createResultMap() protected method

Create a new result map and its associated result properties, disciminiator and sub maps.
protected createResultMap ( $node ) : TResultMap
return TResultMap SqlMap result mapping.

getConfigFile() protected method

protected getConfigFile ( )

loadCacheModel() protected method

Load cache models from xml mapping.
protected loadCacheModel ( $node )

loadDeleteTag() protected method

Load delete statement from xml mapping.
protected loadDeleteTag ( $node )

loadFlushInterval() protected method

Load the flush interval
protected loadFlushInterval ( $cacheModel, $node )

loadFlushOnCache() protected method

Load the flush on cache properties.
protected loadFlushOnCache ( $cacheModel, $parent, $node )

loadInsertTag() protected method

Load insert statement from xml mapping.
protected loadInsertTag ( $node )

loadParameterMap() protected method

Load parameter map from xml.
protected loadParameterMap ( $node )

loadProcedureTag() protected method

Load procedure statement from xml mapping.
protected loadProcedureTag ( $node )

loadResultMap() protected method

Load the result maps.
protected loadResultMap ( $node )

loadSelectKeyTag() protected method

Load the selectKey statement from xml mapping.
protected loadSelectKeyTag ( $insert, $node )

loadSelectTag() protected method

Load select statement from xml mapping.
protected loadSelectTag ( $node )

loadStatementTag() protected method

Load statement mapping from xml configuration file.
protected loadStatementTag ( $node )

loadUpdateTag() protected method

Load update statement from xml mapping.
protected loadUpdateTag ( $node )

prepareSql() protected method

Prepare the sql text (may extend to dynamic sql).
protected prepareSql ( $statement, $sqlStatement, $node )

processSqlStatement() protected method

Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.
protected processSqlStatement ( $statement, $node )

registerCacheTriggers() protected method

Attach CacheModel to statement and register trigger statements for cache models
protected registerCacheTriggers ( )