Method Summary |
protected
void
|
Extract inline parameter maps.
|
void
|
Configure an XML mapping.
|
protected
TSqlMapInsert
|
Create new insert statement from xml node.
|
protected
TParameterMap
|
Create a new parameter map from xml node.
|
protected
TResultMap
|
Create a new result map and its associated result properties, disciminiator and sub maps.
|
protected
void
|
|
protected
void
|
Load cache models from xml mapping.
|
protected
void
|
Load delete statement from xml mapping.
|
protected
void
|
Load the flush interval
|
protected
void
|
Load the flush on cache properties.
|
protected
void
|
Load insert statement from xml mapping.
|
protected
void
|
Load parameter map from xml.
|
protected
void
|
Load procedure statement from xml mapping.
|
protected
void
|
Load the result maps.
|
protected
void
|
Load the selectKey statement from xml mapping.
|
protected
void
|
Load select statement from xml mapping.
|
protected
void
|
Load statement mapping from xml configuration file.
|
protected
void
|
Load update statement from xml mapping.
|
protected
void
|
Prepare the sql text (may extend to dynamic sql).
|
protected
void
|
Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.
|
protected
void
|
Attach CacheModel to statement and register trigger statements for cache models
|
Method Details |
applyInlineParameterMap
protected void applyInlineParameterMap |
(TSqlMapStatement $statement , string $sqlStatement , SimpleXmlElement $node ) |
Extract inline parameter maps.
Input |
TSqlMapStatement | $statement | statement object. |
string | $sqlStatement | sql text |
SimpleXmlElement | $node | statement node. |
Output |
Exception |
|
configure
public void configure |
(string $filename ) |
Configure an XML mapping.
Input |
string | $filename | xml mapping filename. |
Output |
Exception |
|
createInsertStatement
protected TSqlMapInsert createInsertStatement |
(SimpleXmlElement $node ) |
Create new insert statement from xml node.
Input |
SimpleXmlElement | $node | insert node. |
Output |
TSqlMapInsert
| insert statement. |
Exception |
|
createParameterMap
protected TParameterMap createParameterMap |
(SimpleXmlElement $node ) |
Create a new parameter map from xml node.
Input |
SimpleXmlElement | $node | parameter map node. |
Output |
TParameterMap
| new parameter mapping. |
Exception |
|
createResultMap
protected TResultMap createResultMap |
(SimpleXmlElement $node ) |
Create a new result map and its associated result properties, disciminiator and sub maps.
Input |
SimpleXmlElement | $node | result map node |
Output |
TResultMap
| SqlMap result mapping. |
Exception |
|
getConfigFile
protected void getConfigFile |
() |
|
loadCacheModel
protected void loadCacheModel |
(SimpleXmlElement $node ) |
Load cache models from xml mapping.
Input |
SimpleXmlElement | $node | cache node. |
Output |
Exception |
|
loadDeleteTag
protected void loadDeleteTag |
(SimpleXmlElement $node ) |
Load delete statement from xml mapping.
Input |
SimpleXmlElement | $node | delete node. |
Output |
Exception |
|
loadFlushInterval
protected void loadFlushInterval |
(TSqlMapCacheModel $cacheModel , SimpleXmlElement $node ) |
Load the flush interval
Input |
TSqlMapCacheModel | $cacheModel | cache model |
SimpleXmlElement | $node | cache node |
Output |
Exception |
|
loadFlushOnCache
protected void loadFlushOnCache |
(TSqlMapCacheModel $cacheModel , SimpleXmlElement $parent , SimpleXmlElement $node ) |
Load the flush on cache properties.
Input |
TSqlMapCacheModel | $cacheModel | cache model |
SimpleXmlElement | $parent | parent node. |
SimpleXmlElement | $node | flush node. |
Output |
Exception |
|
loadInsertTag
protected void loadInsertTag |
(SimpleXmlElement $node ) |
Load insert statement from xml mapping.
Input |
SimpleXmlElement | $node | insert node. |
Output |
Exception |
|
loadParameterMap
protected void loadParameterMap |
(SimpleXmlElement $node ) |
Load parameter map from xml.
Input |
SimpleXmlElement | $node | parameter map node. |
Output |
Exception |
|
loadProcedureTag
protected void loadProcedureTag |
(SimpleXmlElement $node ) |
Load procedure statement from xml mapping.
Input |
SimpleXmlElement | $node | procedure node |
Output |
Exception |
|
loadResultMap
protected void loadResultMap |
(SimpleXmlElement $node ) |
Load the result maps.
Input |
SimpleXmlElement | $node | result map node. |
Output |
Exception |
|
loadSelectKeyTag
protected void loadSelectKeyTag |
(SimpleXmlElement $insert , mixed $node ) |
Load the selectKey statement from xml mapping.
Input |
SimpleXmlElement | $insert | selectkey node |
mixed | $node | |
Output |
Exception |
|
loadSelectTag
protected void loadSelectTag |
(SimpleXmlElement $node ) |
Load select statement from xml mapping.
Input |
SimpleXmlElement | $node | select node. |
Output |
Exception |
|
loadStatementTag
protected void loadStatementTag |
(SimpleXmlElement $node ) |
Load statement mapping from xml configuration file.
Input |
SimpleXmlElement | $node | statement node. |
Output |
Exception |
|
loadUpdateTag
protected void loadUpdateTag |
(SimpleXmlElement $node ) |
Load update statement from xml mapping.
Input |
SimpleXmlElement | $node | update node. |
Output |
Exception |
|
prepareSql
protected void prepareSql |
(TSqlMapStatement $statement , string $sqlStatement , SimpleXmlElement $node ) |
Prepare the sql text (may extend to dynamic sql).
Input |
TSqlMapStatement | $statement | mapped statement. |
string | $sqlStatement | sql text. |
SimpleXmlElement | $node | statement node. |
Output |
Exception |
|
processSqlStatement
protected void processSqlStatement |
(TSqlMapStatement $statement , SimpleXmlElement $node ) |
Load extended SQL statements if application. Replaces global properties in the sql text. Extracts inline parameter maps.
Input |
TSqlMapStatement | $statement | mapped statement. |
SimpleXmlElement | $node | statement node. |
Output |
Exception |
|
registerCacheTriggers
protected void registerCacheTriggers |
() |
Attach CacheModel to statement and register trigger statements for cache models
|