summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/SqlMap')
-rw-r--r--framework/Data/SqlMap/Configuration/TDiscriminator.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TParameterMap.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TParameterProperty.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TResultMap.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TResultProperty.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSimpleDynamicParser.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapCacheKey.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapCacheTypes.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapDelete.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapInsert.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapSelect.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapStatement.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapUpdate.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php22
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php16
-rw-r--r--framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php6
-rw-r--r--framework/Data/SqlMap/Configuration/TSubMap.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TInvalidPropertyException.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TLazyLoadList.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TObjectProxy.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TPropertyAccess.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapCache.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapConfigurationException.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapDuplicateException.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapException.php5
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapExecutionException.php5
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapFifoCache.php7
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapLruCache.php7
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php6
-rw-r--r--framework/Data/SqlMap/DataMapper/TSqlMapUndefinedException.php6
-rw-r--r--framework/Data/SqlMap/Statements/IMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TCachingStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TDeleteMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TInsertMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TPostSelectBinding.php6
-rw-r--r--framework/Data/SqlMap/Statements/TPreparedCommand.php6
-rw-r--r--framework/Data/SqlMap/Statements/TPreparedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TPreparedStatementFactory.php6
-rw-r--r--framework/Data/SqlMap/Statements/TResultSetListItemParameter.php6
-rw-r--r--framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php6
-rw-r--r--framework/Data/SqlMap/Statements/TSelectMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/Statements/TSimpleDynamicSql.php6
-rw-r--r--framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php6
-rw-r--r--framework/Data/SqlMap/Statements/TStaticSql.php6
-rw-r--r--framework/Data/SqlMap/Statements/TUpdateMappedStatement.php6
-rw-r--r--framework/Data/SqlMap/TSqlMapConfig.php7
-rw-r--r--framework/Data/SqlMap/TSqlMapGateway.php6
-rw-r--r--framework/Data/SqlMap/TSqlMapManager.php6
56 files changed, 236 insertions, 127 deletions
diff --git a/framework/Data/SqlMap/Configuration/TDiscriminator.php b/framework/Data/SqlMap/Configuration/TDiscriminator.php
index 1c7f679f..100e1816 100644
--- a/framework/Data/SqlMap/Configuration/TDiscriminator.php
+++ b/framework/Data/SqlMap/Configuration/TDiscriminator.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* The TDiscriminator corresponds to the <discriminator> tag within a <resultMap>.
*
@@ -20,7 +22,7 @@
* the object data.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TDiscriminator extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php b/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php
index e8977b0d..26475901 100644
--- a/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php
+++ b/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TInlineParameterMapParser class.
*
@@ -17,7 +19,7 @@
* parametrized SQL statement.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TInlineParameterMapParser
diff --git a/framework/Data/SqlMap/Configuration/TParameterMap.php b/framework/Data/SqlMap/Configuration/TParameterMap.php
index 2eaad9a3..08ca6471 100644
--- a/framework/Data/SqlMap/Configuration/TParameterMap.php
+++ b/framework/Data/SqlMap/Configuration/TParameterMap.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TParameterMap corresponds to the <parameterMap> element.
*
@@ -25,7 +27,7 @@
* The <parameterMap> element accepts two attributes: id (required) and extends (optional).
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TParameterMap extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TParameterProperty.php b/framework/Data/SqlMap/Configuration/TParameterProperty.php
index 84007a28..d691d1f9 100644
--- a/framework/Data/SqlMap/Configuration/TParameterProperty.php
+++ b/framework/Data/SqlMap/Configuration/TParameterProperty.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TParameterProperty corresponds to the <property> tag and defines
* one object property for the <parameterMap>
@@ -24,7 +26,7 @@
* will be written to the database instead of the value.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TParameterProperty extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TResultMap.php b/framework/Data/SqlMap/Configuration/TResultMap.php
index e35faf28..d4707c5d 100644
--- a/framework/Data/SqlMap/Configuration/TResultMap.php
+++ b/framework/Data/SqlMap/Configuration/TResultMap.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TResultMap corresponds to <resultMap> mapping tag.
*
@@ -31,7 +33,7 @@
* from the "parent" <resultMap> are set before any values specified by this <resultMap>.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TResultMap extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php
index 796060ae..2404d2c9 100644
--- a/framework/Data/SqlMap/Configuration/TResultProperty.php
+++ b/framework/Data/SqlMap/Configuration/TResultProperty.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TResultProperty corresponds a <property> tags inside a <resultMap> tag.
*
@@ -28,7 +30,7 @@
* with the {@link Select setSelect()} .
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TResultProperty extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TSimpleDynamicParser.php b/framework/Data/SqlMap/Configuration/TSimpleDynamicParser.php
index 29260036..e9fd5ad5 100644
--- a/framework/Data/SqlMap/Configuration/TSimpleDynamicParser.php
+++ b/framework/Data/SqlMap/Configuration/TSimpleDynamicParser.php
@@ -6,15 +6,17 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSimpleDynamicParser finds place holders $name$ in the sql text and replaces
* it with a TSimpleDynamicParser::DYNAMIC_TOKEN.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSimpleDynamicParser
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheKey.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheKey.php
index 095f24d4..20ec6a0b 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapCacheKey.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheKey.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapCacheKey class.
*
* Provides a hash of the object to be cached.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapCacheKey
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
index 0021cad8..8f1aed63 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapCacheModel corresponds to the <cacheModel> sql mapping configuration tag.
*
@@ -27,7 +29,7 @@
* the current request.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapCacheModel extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheTypes.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheTypes.php
index c252151c..40eec553 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapCacheTypes.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheTypes.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapCacheTypes enumerable class.
*
* Implemented cache are 'Basic', 'FIFO' and 'LRU'.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapCacheTypes extends TEnumerable
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapDelete.php b/framework/Data/SqlMap/Configuration/TSqlMapDelete.php
index 90e1ab21..ddd0b55f 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapDelete.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapDelete.php
@@ -7,14 +7,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapDelete class corresponds to the <delete> element.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapDelete extends TSqlMapUpdate
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapInsert.php b/framework/Data/SqlMap/Configuration/TSqlMapInsert.php
index f269386f..8b1b36c4 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapInsert.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapInsert.php
@@ -7,9 +7,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapInsert class corresponds to the <insert> element.
*
@@ -17,7 +19,7 @@
* to generate a key to be used for the insert command.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapInsert extends TSqlMapStatement
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapSelect.php b/framework/Data/SqlMap/Configuration/TSqlMapSelect.php
index 098be9fb..64713af9 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapSelect.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapSelect.php
@@ -7,14 +7,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapSelect class file.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TSqlMapSelect extends TSqlMapStatement
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php b/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php
index 51299097..89afe545 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php
@@ -7,14 +7,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapSelect corresponds to the <selectKey> element.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapSelectKey extends TSqlMapStatement
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
index 3477e9cf..b631e1b0 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapStatement.php
@@ -7,9 +7,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapStatement class corresponds to <statement> element.
*
@@ -23,7 +25,7 @@
* statement can return a database-generated key.)
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapStatement extends TComponent
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapUpdate.php b/framework/Data/SqlMap/Configuration/TSqlMapUpdate.php
index 853e7e2a..6daf790b 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapUpdate.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapUpdate.php
@@ -7,14 +7,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSqlMapUpdate class corresponds to <update> element.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapUpdate extends TSqlMapStatement
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php
index 47982fca..b74340bd 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
Prado::using('System.Data.SqlMap.Configuration.TSqlMapStatement');
/**
* TSqlMapXmlConfig class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
abstract class TSqlMapXmlConfigBuilder
{
@@ -36,7 +38,6 @@ abstract class TSqlMapXmlConfigBuilder
throw new TSqlMapConfigurationException(
'sqlmap_node_class_undef', $node, $this->getConfigFile());
}
-
/**
* For each attributes (excluding attribute named in $except) set the
* property of the $obj given by the name of the attribute with the value
@@ -60,7 +61,6 @@ abstract class TSqlMapXmlConfigBuilder
}
}
}
-
/**
* Gets the filename relative to the basefile.
* @param string base filename
@@ -79,7 +79,6 @@ abstract class TSqlMapXmlConfigBuilder
throw new TSqlMapConfigurationException(
'sqlmap_unable_to_find_resource', $resource);
}
-
/**
* Load document using simple xml.
* @param string filename.
@@ -89,13 +88,11 @@ abstract class TSqlMapXmlConfigBuilder
{
if( strpos($filename, '${') !== false)
$filename = $config->replaceProperties($filename);
-
if(!is_file($filename))
throw new TSqlMapConfigurationException(
'sqlmap_unable_to_find_config', $filename);
return simplexml_load_string($config->replaceProperties(file_get_contents($filename)));
}
-
/**
* Get element node by ID value (try for attribute name ID as case insensitive).
* @param SimpleXmlDocument $document
@@ -108,4 +105,13 @@ abstract class TSqlMapXmlConfigBuilder
//hack to allow upper case and lower case attribute names.
foreach(array('id','ID','Id', 'iD') as $id)
{
- $xpath = "//{$tag}[@{$id}='{$value} \ No newline at end of file
+ $xpath = "//{$tag}[@{$id}='{$value}']";
+ foreach($document->xpath($xpath) as $node)
+ return $node;
+ }
+ }
+ /**
+ * @return string configuration file.
+ */
+ protected abstract function getConfigFile();
+} \ No newline at end of file
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php
index bd2070bb..91d9cbb3 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php
@@ -6,18 +6,10 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
- */']";
- foreach($document->xpath($xpath) as $node)
- return $node;
- }
- }
+ * @package Prado\Data\SqlMap\Configuration
+ */
- /**
- * @return string configuration file.
- */
- protected abstract function getConfigFile();
-}
+namespace Prado\Data\SqlMap\Configuration;
/**
* TSqlMapXmlConfig class.
@@ -25,7 +17,7 @@
* Configures the TSqlMapManager using xml configuration file.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapXmlConfiguration extends TSqlMapXmlConfigBuilder
diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php
index d677f6cd..ae2a454e 100644
--- a/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php
+++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* Loads the statements, result maps, parameters maps from xml configuration.
*
* description
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSqlMapXmlMappingConfiguration extends TSqlMapXmlConfigBuilder
diff --git a/framework/Data/SqlMap/Configuration/TSubMap.php b/framework/Data/SqlMap/Configuration/TSubMap.php
index 0a2e7614..c8ec3d64 100644
--- a/framework/Data/SqlMap/Configuration/TSubMap.php
+++ b/framework/Data/SqlMap/Configuration/TSubMap.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
*/
+namespace Prado\Data\SqlMap\Configuration;
+
/**
* TSubMap class defines a submapping value and the corresponding <resultMap>
*
@@ -18,7 +20,7 @@
* is used inplace of the current result map.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Configuration
+ * @package Prado\Data\SqlMap\Configuration
* @since 3.1
*/
class TSubMap extends TComponent
diff --git a/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php b/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php
index d2e3d014..d9e78c12 100644
--- a/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php
+++ b/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TFastSqlMapApplicationCache class file
*
* Fast SqlMap result cache class with minimal-concurrency get/set and atomic flush operations
*
* @author Berczi Gabor <gabor.berczi@devworx.hu>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.2
*/
diff --git a/framework/Data/SqlMap/DataMapper/TInvalidPropertyException.php b/framework/Data/SqlMap/DataMapper/TInvalidPropertyException.php
index 2defaf0f..277af3a8 100644
--- a/framework/Data/SqlMap/DataMapper/TInvalidPropertyException.php
+++ b/framework/Data/SqlMap/DataMapper/TInvalidPropertyException.php
@@ -3,15 +3,17 @@
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TInvalidPropertyException, raised when setting or getting an invalid property.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TInvalidPropertyException extends TSqlMapException
diff --git a/framework/Data/SqlMap/DataMapper/TLazyLoadList.php b/framework/Data/SqlMap/DataMapper/TLazyLoadList.php
index e0601e44..cc893053 100644
--- a/framework/Data/SqlMap/DataMapper/TLazyLoadList.php
+++ b/framework/Data/SqlMap/DataMapper/TLazyLoadList.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TLazyLoadList executes mapped statements when the proxy collection is first accessed.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TLazyLoadList
diff --git a/framework/Data/SqlMap/DataMapper/TObjectProxy.php b/framework/Data/SqlMap/DataMapper/TObjectProxy.php
index 957c8a8f..b31fb30d 100644
--- a/framework/Data/SqlMap/DataMapper/TObjectProxy.php
+++ b/framework/Data/SqlMap/DataMapper/TObjectProxy.php
@@ -6,15 +6,17 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TObjectProxy sets up a simple object that intercepts method calls to a
* particular object and relays the call to handler object.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TObjectProxy
diff --git a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
index c19b77ab..d5956d9d 100644
--- a/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
+++ b/framework/Data/SqlMap/DataMapper/TPropertyAccess.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TPropertyAccess class provides dot notation stype property access and setting.
*
@@ -36,7 +38,7 @@
* </code>
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TPropertyAccess
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php
index bb3cb6c0..0c52335f 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php
@@ -6,15 +6,17 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapApplicationCache uses the default Prado application cache for
* caching SqlMap results.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapApplicationCache implements ICache
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapCache.php
index 33a270cd..426126ad 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapCache.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapCache.php
@@ -6,16 +6,18 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* Allow different implementation of caching strategy. See <tt>TSqlMapFifoCache</tt>
* for a first-in-first-out implementation. See <tt>TSqlMapLruCache</tt> for
* a least-recently-used cache implementation.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
abstract class TSqlMapCache implements ICache
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapConfigurationException.php b/framework/Data/SqlMap/DataMapper/TSqlMapConfigurationException.php
index 8d5556c8..b2aab3f3 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapConfigurationException.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapConfigurationException.php
@@ -3,15 +3,17 @@
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapConfigurationException, raised during configuration file parsing.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapConfigurationException extends TSqlMapException
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapDuplicateException.php b/framework/Data/SqlMap/DataMapper/TSqlMapDuplicateException.php
index 008d8f08..292d89de 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapDuplicateException.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapDuplicateException.php
@@ -3,15 +3,17 @@
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapDuplicateException, raised when a duplicate mapped statement is found.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapDuplicateException extends TSqlMapException
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapException.php b/framework/Data/SqlMap/DataMapper/TSqlMapException.php
index 720ee7ee..0452237a 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapException.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapException.php
@@ -1,9 +1,12 @@
<?php
+
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapExecutionException.php b/framework/Data/SqlMap/DataMapper/TSqlMapExecutionException.php
index 90896c35..93fcbd65 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapExecutionException.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapExecutionException.php
@@ -1,9 +1,12 @@
<?php
+
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapFifoCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapFifoCache.php
index 3c036a97..75d0f6f0 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapFifoCache.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapFifoCache.php
@@ -1,4 +1,7 @@
<?php
+
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapCache class file contains FIFO, LRU, and GLOBAL cache implementations.
*
@@ -6,7 +9,7 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
/**
@@ -14,7 +17,7 @@
* object that was first added when the cache is full.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapFifoCache extends TSqlMapCache
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapLruCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapLruCache.php
index e34cad84..073ad1a8 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapLruCache.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapLruCache.php
@@ -1,4 +1,7 @@
<?php
+
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapCache class file contains FIFO, LRU, and GLOBAL cache implementations.
*
@@ -6,7 +9,7 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
/**
@@ -14,7 +17,7 @@
* object that was accessed last when the cache is full.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapLruCache extends TSqlMapCache
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php b/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php
index d789471d..9dad8d24 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
Prado::using('System.Collections.TPagedList');
/**
@@ -22,7 +24,7 @@ Prado::using('System.Collections.TPagedList');
* The paged list does not need to know about the total number of records.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapPagedList extends TPagedList
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
index a5d3f39c..1c5c33bf 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandler.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* A simple interface for implementing custom type handlers.
*
@@ -23,7 +25,7 @@
* booleans using "Y" and "N" instead of the more typical 0/1.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
abstract class TSqlMapTypeHandler extends TComponent
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php
index f6a22ee1..d3c3bd81 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php
@@ -6,15 +6,17 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TTypeHandlerFactory provides type handler classes to convert database field type
* to PHP types and vice versa.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapTypeHandlerRegistry
diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapUndefinedException.php b/framework/Data/SqlMap/DataMapper/TSqlMapUndefinedException.php
index 44e968ec..d5b22c1f 100644
--- a/framework/Data/SqlMap/DataMapper/TSqlMapUndefinedException.php
+++ b/framework/Data/SqlMap/DataMapper/TSqlMapUndefinedException.php
@@ -3,15 +3,17 @@
* TSqlMapException is the base exception class for all SqlMap exceptions.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
+namespace Prado\Data\SqlMap\DataMapper;
+
/**
* TSqlMapUndefinedException, raised when mapped statemented are undefined.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap\DataMapper
* @since 3.1
*/
class TSqlMapUndefinedException extends TSqlMapException
diff --git a/framework/Data/SqlMap/Statements/IMappedStatement.php b/framework/Data/SqlMap/Statements/IMappedStatement.php
index 859d2ee3..12054bae 100644
--- a/framework/Data/SqlMap/Statements/IMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/IMappedStatement.php
@@ -3,14 +3,16 @@
* IMappedStatement interface file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* Interface for all mapping statements.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
interface IMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TCachingStatement.php b/framework/Data/SqlMap/Statements/TCachingStatement.php
index ad22b84f..32dde2e7 100644
--- a/framework/Data/SqlMap/Statements/TCachingStatement.php
+++ b/framework/Data/SqlMap/Statements/TCachingStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TCacheingStatement class.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TCachingStatement extends TComponent implements IMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TDeleteMappedStatement.php b/framework/Data/SqlMap/Statements/TDeleteMappedStatement.php
index 119beb39..f4baff37 100644
--- a/framework/Data/SqlMap/Statements/TDeleteMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TDeleteMappedStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TDeleteMappedStatement class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TDeleteMappedStatement extends TUpdateMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TInsertMappedStatement.php b/framework/Data/SqlMap/Statements/TInsertMappedStatement.php
index de785b94..eac88d2d 100644
--- a/framework/Data/SqlMap/Statements/TInsertMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TInsertMappedStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TInsertMappedStatement class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TInsertMappedStatement extends TMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php
index 517127d3..db83f755 100644
--- a/framework/Data/SqlMap/Statements/TMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TMappedStatement.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TMappedStatement class executes SQL mapped statements. Mapped Statements can
* hold any SQL statement and use Parameter Maps and Result Maps for input and output.
@@ -16,7 +18,7 @@
* This class is usualy instantiated during SQLMap configuration by TSqlDomBuilder.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.0
*/
class TMappedStatement extends TComponent implements IMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TPostSelectBinding.php b/framework/Data/SqlMap/Statements/TPostSelectBinding.php
index 8180e73d..fdc7afbb 100644
--- a/framework/Data/SqlMap/Statements/TPostSelectBinding.php
+++ b/framework/Data/SqlMap/Statements/TPostSelectBinding.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TPostSelectBinding class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TPostSelectBinding
diff --git a/framework/Data/SqlMap/Statements/TPreparedCommand.php b/framework/Data/SqlMap/Statements/TPreparedCommand.php
index 8b4bdbcc..4f59f4c7 100644
--- a/framework/Data/SqlMap/Statements/TPreparedCommand.php
+++ b/framework/Data/SqlMap/Statements/TPreparedCommand.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
Prado::using('System.Data.Common.TDbMetaData');
Prado::using('System.Data.Common.TDbCommandBuilder');
@@ -16,7 +18,7 @@ Prado::using('System.Data.Common.TDbCommandBuilder');
* TPreparedCommand class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TPreparedCommand
diff --git a/framework/Data/SqlMap/Statements/TPreparedStatement.php b/framework/Data/SqlMap/Statements/TPreparedStatement.php
index 79f39aea..9084621a 100644
--- a/framework/Data/SqlMap/Statements/TPreparedStatement.php
+++ b/framework/Data/SqlMap/Statements/TPreparedStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TpreparedStatement class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TPreparedStatement extends TComponent
diff --git a/framework/Data/SqlMap/Statements/TPreparedStatementFactory.php b/framework/Data/SqlMap/Statements/TPreparedStatementFactory.php
index 6eef27c3..9f542ea6 100644
--- a/framework/Data/SqlMap/Statements/TPreparedStatementFactory.php
+++ b/framework/Data/SqlMap/Statements/TPreparedStatementFactory.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TPreparedStatementFactory class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TPreparedStatementFactory
diff --git a/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php b/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
index e330a5ae..ec580a5a 100644
--- a/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
+++ b/framework/Data/SqlMap/Statements/TResultSetListItemParameter.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TResultSetListItemParameter class
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TResultSetListItemParameter extends TComponent
diff --git a/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php b/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
index 363edb55..d44cd844 100644
--- a/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
+++ b/framework/Data/SqlMap/Statements/TResultSetMapItemParameter.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TResultSetMapItemParameter class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TResultSetMapItemParameter extends TComponent
diff --git a/framework/Data/SqlMap/Statements/TSelectMappedStatement.php b/framework/Data/SqlMap/Statements/TSelectMappedStatement.php
index 8e6ea75e..f97176e9 100644
--- a/framework/Data/SqlMap/Statements/TSelectMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TSelectMappedStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TSelectMappedStatment class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TSelectMappedStatement extends TMappedStatement
diff --git a/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php b/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php
index b2e0356d..147e5177 100644
--- a/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php
+++ b/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TSimpleDynamicSql class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TSimpleDynamicSql extends TStaticSql
diff --git a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
index 91fe3882..cc0c300b 100644
--- a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
+++ b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TSQLMapObjectCollectionTree class.
*
@@ -17,7 +19,7 @@
* build using the {@link collect} method.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TSqlMapObjectCollectionTree extends TComponent
diff --git a/framework/Data/SqlMap/Statements/TStaticSql.php b/framework/Data/SqlMap/Statements/TStaticSql.php
index f0110332..445461b3 100644
--- a/framework/Data/SqlMap/Statements/TStaticSql.php
+++ b/framework/Data/SqlMap/Statements/TStaticSql.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TStaticSql class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TStaticSql extends TComponent
diff --git a/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php b/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php
index 9ba2458d..265876f5 100644
--- a/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php
+++ b/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php
@@ -6,14 +6,16 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
*/
+namespace Prado\Data\SqlMap\Statements;
+
/**
* TUpdateMappedStatement class.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap.Statements
+ * @package Prado\Data\SqlMap\Statements
* @since 3.1
*/
class TUpdateMappedStatement extends TMappedStatement
diff --git a/framework/Data/SqlMap/TSqlMapConfig.php b/framework/Data/SqlMap/TSqlMapConfig.php
index d99b99d5..80636376 100644
--- a/framework/Data/SqlMap/TSqlMapConfig.php
+++ b/framework/Data/SqlMap/TSqlMapConfig.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
*/
+namespace Prado\Data\SqlMap;
+
Prado::using('System.Data.TDataSourceConfig');
/**
@@ -17,7 +19,7 @@ Prado::using('System.Data.TDataSourceConfig');
* Database connection and TSqlMapManager configuration.
*
* @author Wei Zhuo <weizho[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
* @since 3.1
*/
class TSqlMapConfig extends TDataSourceConfig
@@ -176,4 +178,3 @@ class TSqlMapConfig extends TDataSourceConfig
return $this->_sqlmap;
}
}
-
diff --git a/framework/Data/SqlMap/TSqlMapGateway.php b/framework/Data/SqlMap/TSqlMapGateway.php
index 8ce09ee4..6f548256 100644
--- a/framework/Data/SqlMap/TSqlMapGateway.php
+++ b/framework/Data/SqlMap/TSqlMapGateway.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
*/
+namespace Prado\Data\SqlMap;
+
Prado::using('System.Data.SqlMap.TSqlMapManager');
/**
@@ -22,7 +24,7 @@ Prado::using('System.Data.SqlMap.TSqlMapManager');
* This class should be instantiated from a TSqlMapManager instance.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
* @since 3.1
*/
class TSqlMapGateway extends TComponent
diff --git a/framework/Data/SqlMap/TSqlMapManager.php b/framework/Data/SqlMap/TSqlMapManager.php
index 0fa6fd57..0624c4a7 100644
--- a/framework/Data/SqlMap/TSqlMapManager.php
+++ b/framework/Data/SqlMap/TSqlMapManager.php
@@ -6,9 +6,11 @@
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2014 PradoSoft
* @license http://www.pradosoft.com/license/
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
*/
+namespace Prado\Data\SqlMap;
+
Prado::using('System.Data.SqlMap.TSqlMapGateway');
Prado::using('System.Data.SqlMap.DataMapper.TSqlMapException');
Prado::using('System.Data.SqlMap.DataMapper.TSqlMapTypeHandlerRegistry');
@@ -36,7 +38,7 @@ Prado::using('System.Caching.TCache');
* </code>
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
- * @package System.Data.SqlMap
+ * @package Prado\Data\SqlMap
* @since 3.1
*/
class TSqlMapManager extends TComponent