diff options
Diffstat (limited to 'framework/Data/SqlMap')
28 files changed, 102 insertions, 0 deletions
diff --git a/framework/Data/SqlMap/Configuration/TDiscriminator.php b/framework/Data/SqlMap/Configuration/TDiscriminator.php index a5cbed30..90c32cbf 100644 --- a/framework/Data/SqlMap/Configuration/TDiscriminator.php +++ b/framework/Data/SqlMap/Configuration/TDiscriminator.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\TPropertyValue; /** * The TDiscriminator corresponds to the <discriminator> tag within a <resultMap>. diff --git a/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php b/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php index 26475901..5e433d98 100644 --- a/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php +++ b/framework/Data/SqlMap/Configuration/TInlineParameterMapParser.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Data\SqlMap\DataMapper\TSqlMapUndefinedException; /** * TInlineParameterMapParser class. diff --git a/framework/Data/SqlMap/Configuration/TParameterMap.php b/framework/Data/SqlMap/Configuration/TParameterMap.php index d1e78984..ee2ec375 100644 --- a/framework/Data/SqlMap/Configuration/TParameterMap.php +++ b/framework/Data/SqlMap/Configuration/TParameterMap.php @@ -10,6 +10,12 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Collections\TList; +use Prado\Collections\TMap; +use Prado\Data\SqlMap\DataMapper\TInvalidPropertyException; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; +use Prado\Data\SqlMap\DataMapper\TSqlMapException; +use Prado\Prado; /** * TParameterMap corresponds to the <parameterMap> element. diff --git a/framework/Data/SqlMap/Configuration/TResultMap.php b/framework/Data/SqlMap/Configuration/TResultMap.php index e183438f..c386b212 100644 --- a/framework/Data/SqlMap/Configuration/TResultMap.php +++ b/framework/Data/SqlMap/Configuration/TResultMap.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Collections\TMap; +use Prado\Data\SqlMap\DataMapper\TSqlMapException; /** * TResultMap corresponds to <resultMap> mapping tag. diff --git a/framework/Data/SqlMap/Configuration/TResultProperty.php b/framework/Data/SqlMap/Configuration/TResultProperty.php index 59ce44a9..e50b10ac 100644 --- a/framework/Data/SqlMap/Configuration/TResultProperty.php +++ b/framework/Data/SqlMap/Configuration/TResultProperty.php @@ -10,6 +10,11 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Collections\TList; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; +use Prado\Prado; +use Prado\TPropertyValue; +use ReflectionClass; /** * TResultProperty corresponds a <property> tags inside a <resultMap> tag. diff --git a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php index 393b61e6..264997c0 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Prado; +use Prado\TPropertyValue; /** * TSqlMapCacheModel corresponds to the <cacheModel> sql mapping configuration tag. diff --git a/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php b/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php index 89afe545..21eba3e7 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapSelectKey.php @@ -11,6 +11,7 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Data\SqlMap\DataMapper\TSqlMapConfigurationException; /** * TSqlMapSelect corresponds to the <selectKey> element. diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php index b74340bd..765e0d9f 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfigBuilder.php @@ -11,6 +11,9 @@ namespace Prado\Data\SqlMap\Configuration; +use Prado\Data\SqlMap\DataMapper\TSqlMapConfigurationException; +use Prado\Prado; + Prado::using('System.Data.SqlMap.Configuration.TSqlMapStatement'); /** diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php index 91d9cbb3..8d6a6939 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlConfiguration.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Data\SqlMap\DataMapper\TSqlMapConfigurationException; /** * TSqlMapXmlConfig class. diff --git a/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php b/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php index ae2a454e..d9d2666a 100644 --- a/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php +++ b/framework/Data/SqlMap/Configuration/TSqlMapXmlMappingConfiguration.php @@ -10,6 +10,18 @@ */ namespace Prado\Data\SqlMap\Configuration; +use Prado\Caching\TFileCacheDependency; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; +use Prado\Data\SqlMap\DataMapper\TSqlMapConfigurationException; +use Prado\Data\SqlMap\Statements\TCachingStatement; +use Prado\Data\SqlMap\Statements\TDeleteMappedStatement; +use Prado\Data\SqlMap\Statements\TInsertMappedStatement; +use Prado\Data\SqlMap\Statements\TMappedStatement; +use Prado\Data\SqlMap\Statements\TSimpleDynamicSql; +use Prado\Data\SqlMap\Statements\TStaticSql; +use Prado\Data\SqlMap\Statements\TUpdateMappedStatement; +use Prado\Prado; +use Prado\TApplicationMode; /** * Loads the statements, result maps, parameters maps from xml configuration. diff --git a/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php b/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php index d9e78c12..e1b77595 100644 --- a/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php +++ b/framework/Data/SqlMap/DataMapper/TFastSqlMapApplicationCache.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\SqlMap\DataMapper; +use Prado\Caching\ICache; +use Prado\Prado; /** * TFastSqlMapApplicationCache class file diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php index 0c52335f..ab156bfe 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapApplicationCache.php @@ -10,6 +10,10 @@ */ namespace Prado\Data\SqlMap\DataMapper; +use Prado\Caching\ICache; +use Prado\Collections\TList; +use Prado\Data\SqlMap\Configuration\TSqlMapCacheModel; +use Prado\Prado; /** * TSqlMapApplicationCache uses the default Prado application cache for diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapCache.php b/framework/Data/SqlMap/DataMapper/TSqlMapCache.php index 426126ad..aabff1bd 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapCache.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapCache.php @@ -10,6 +10,10 @@ */ namespace Prado\Data\SqlMap\DataMapper; +use Prado\Caching\ICache; +use Prado\Collections\TList; +use Prado\Collections\TMap; +use Prado\TPropertyValue; /** * Allow different implementation of caching strategy. See <tt>TSqlMapFifoCache</tt> diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapException.php b/framework/Data/SqlMap/DataMapper/TSqlMapException.php index 0452237a..65ee6d18 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapException.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapException.php @@ -1,6 +1,10 @@ <?php namespace Prado\Data\SqlMap\DataMapper; +use Prado\Exceptions\TException; +use Prado\Prado; +use Prado\TPropertyValue; +use SimpleXMLElement; /** * TSqlMapException is the base exception class for all SqlMap exceptions. diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php b/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php index 9dad8d24..248aaa9b 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapPagedList.php @@ -11,6 +11,11 @@ namespace Prado\Data\SqlMap\DataMapper; +use Prado\Collections\TList; +use Prado\Collections\TPagedList; +use Prado\Data\SqlMap\Statements\IMappedStatement; +use Prado\Prado; + Prado::using('System.Collections.TPagedList'); /** diff --git a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php index d3c3bd81..6d3bc81f 100644 --- a/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php +++ b/framework/Data/SqlMap/DataMapper/TSqlMapTypeHandlerRegistry.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\DataMapper; +use Prado\Prado; /** * TTypeHandlerFactory provides type handler classes to convert database field type diff --git a/framework/Data/SqlMap/Statements/TCachingStatement.php b/framework/Data/SqlMap/Statements/TCachingStatement.php index 745249e4..180a9375 100644 --- a/framework/Data/SqlMap/Statements/TCachingStatement.php +++ b/framework/Data/SqlMap/Statements/TCachingStatement.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\SqlMap\Configuration\TSqlMapCacheKey; /** * TCacheingStatement class. diff --git a/framework/Data/SqlMap/Statements/TInsertMappedStatement.php b/framework/Data/SqlMap/Statements/TInsertMappedStatement.php index eac88d2d..4b8a01d8 100644 --- a/framework/Data/SqlMap/Statements/TInsertMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TInsertMappedStatement.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; /** * TInsertMappedStatement class. diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index 2f7e8619..36375dd7 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -10,6 +10,16 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Collections\TList; +use Prado\Data\ActiveRecord\TActiveRecord; +use Prado\Data\SqlMap\Configuration\TResultProperty; +use Prado\Data\SqlMap\Configuration\TSqlMapInsert; +use Prado\Data\SqlMap\Configuration\TSqlMapStatement; +use Prado\Data\SqlMap\DataMapper\TLazyLoadList; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; +use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; +use Prado\Data\SqlMap\TSqlMapManager; +use Prado\Exceptions\TInvalidDataValueException; /** * TMappedStatement class executes SQL mapped statements. Mapped Statements can diff --git a/framework/Data/SqlMap/Statements/TPreparedCommand.php b/framework/Data/SqlMap/Statements/TPreparedCommand.php index 4f59f4c7..9ddfc67e 100644 --- a/framework/Data/SqlMap/Statements/TPreparedCommand.php +++ b/framework/Data/SqlMap/Statements/TPreparedCommand.php @@ -11,6 +11,11 @@ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Data\Common\TDbMetaData; +use Prado\Data\SqlMap\TSqlMapManager; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.TDbCommandBuilder'); diff --git a/framework/Data/SqlMap/Statements/TPreparedStatement.php b/framework/Data/SqlMap/Statements/TPreparedStatement.php index b978996e..30bccedd 100644 --- a/framework/Data/SqlMap/Statements/TPreparedStatement.php +++ b/framework/Data/SqlMap/Statements/TPreparedStatement.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Collections\TList; +use Prado\Collections\TMap; /** * TpreparedStatement class. diff --git a/framework/Data/SqlMap/Statements/TSelectMappedStatement.php b/framework/Data/SqlMap/Statements/TSelectMappedStatement.php index f97176e9..3c4aa376 100644 --- a/framework/Data/SqlMap/Statements/TSelectMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TSelectMappedStatement.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; /** * TSelectMappedStatment class. diff --git a/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php b/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php index 147e5177..9a7d6543 100644 --- a/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php +++ b/framework/Data/SqlMap/Statements/TSimpleDynamicSql.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\SqlMap\Configuration\TSimpleDynamicParser; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; /** * TSimpleDynamicSql class. diff --git a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php index 041eda6b..fa2bf1cd 100644 --- a/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php +++ b/framework/Data/SqlMap/Statements/TSqlMapObjectCollectionTree.php @@ -10,6 +10,9 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Collections\TList; +use Prado\Data\SqlMap\DataMapper\TPropertyAccess; +use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; /** * TSQLMapObjectCollectionTree class. diff --git a/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php b/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php index 265876f5..f64a0aa4 100644 --- a/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TUpdateMappedStatement.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\SqlMap\Statements; +use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; /** * TUpdateMappedStatement class. diff --git a/framework/Data/SqlMap/TSqlMapConfig.php b/framework/Data/SqlMap/TSqlMapConfig.php index 80636376..299c57ff 100644 --- a/framework/Data/SqlMap/TSqlMapConfig.php +++ b/framework/Data/SqlMap/TSqlMapConfig.php @@ -11,6 +11,12 @@ namespace Prado\Data\SqlMap; +use Prado\Data\TDataSourceConfig; +use Prado\Exceptions\TConfigurationException; +use Prado\Prado; +use Prado\TApplicationMode; +use Prado\TPropertyValue; + Prado::using('System.Data.TDataSourceConfig'); /** diff --git a/framework/Data/SqlMap/TSqlMapGateway.php b/framework/Data/SqlMap/TSqlMapGateway.php index 83f90572..b52fda86 100644 --- a/framework/Data/SqlMap/TSqlMapGateway.php +++ b/framework/Data/SqlMap/TSqlMapGateway.php @@ -11,6 +11,9 @@ namespace Prado\Data\SqlMap; +use Prado\Data\SqlMap\DataMapper\TSqlMapPagedList; +use Prado\Prado; + Prado::using('System.Data.SqlMap.TSqlMapManager'); /** diff --git a/framework/Data/SqlMap/TSqlMapManager.php b/framework/Data/SqlMap/TSqlMapManager.php index 55a15b72..e1331bef 100644 --- a/framework/Data/SqlMap/TSqlMapManager.php +++ b/framework/Data/SqlMap/TSqlMapManager.php @@ -11,6 +11,19 @@ namespace Prado\Data\SqlMap; +use Prado\Caching\TChainedCacheDependency; +use Prado\Collections\TMap; +use Prado\Data\SqlMap\Configuration\TParameterMap; +use Prado\Data\SqlMap\Configuration\TResultMap; +use Prado\Data\SqlMap\Configuration\TSqlMapCacheModel; +use Prado\Data\SqlMap\Configuration\TSqlMapXmlConfiguration; +use Prado\Data\SqlMap\DataMapper\TSqlMapConfigurationException; +use Prado\Data\SqlMap\DataMapper\TSqlMapDuplicateException; +use Prado\Data\SqlMap\DataMapper\TSqlMapTypeHandlerRegistry; +use Prado\Data\SqlMap\DataMapper\TSqlMapUndefinedException; +use Prado\Data\SqlMap\Statements\IMappedStatement; +use Prado\Prado; + Prado::using('System.Data.SqlMap.TSqlMapGateway'); Prado::using('System.Data.SqlMap.DataMapper.TSqlMapException'); Prado::using('System.Data.SqlMap.DataMapper.TSqlMapTypeHandlerRegistry'); |