diff options
Diffstat (limited to 'framework/Data/SqlMap/DataMapper')
17 files changed, 70 insertions, 32 deletions
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 © 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 © 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 © 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 © 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 © 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 © 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 © 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 © 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 © 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 © 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 © 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 |