diff options
Diffstat (limited to 'framework/Data/Common')
24 files changed, 81 insertions, 0 deletions
diff --git a/framework/Data/Common/Mssql/TMssqlCommandBuilder.php b/framework/Data/Common/Mssql/TMssqlCommandBuilder.php index d2273d72..498c8177 100644 --- a/framework/Data/Common/Mssql/TMssqlCommandBuilder.php +++ b/framework/Data/Common/Mssql/TMssqlCommandBuilder.php @@ -11,6 +11,9 @@ namespace Prado\Data\Common\Mssql; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Prado; + Prado::using('System.Data.Common.TDbCommandBuilder'); /** diff --git a/framework/Data/Common/Mssql/TMssqlMetaData.php b/framework/Data/Common/Mssql/TMssqlMetaData.php index d5581ed0..5c4ec036 100644 --- a/framework/Data/Common/Mssql/TMssqlMetaData.php +++ b/framework/Data/Common/Mssql/TMssqlMetaData.php @@ -14,6 +14,10 @@ namespace Prado\Data\Common\Mssql; /** * Load the base TDbMetaData class. */ +use Prado\Data\Common\TDbMetaData; +use Prado\Exceptions\TDbException; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Mssql.TMssqlTableInfo'); diff --git a/framework/Data/Common/Mssql/TMssqlTableColumn.php b/framework/Data/Common/Mssql/TMssqlTableColumn.php index 9ce0cc1d..2f75b5be 100644 --- a/framework/Data/Common/Mssql/TMssqlTableColumn.php +++ b/framework/Data/Common/Mssql/TMssqlTableColumn.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Mssql; /** * Load common TDbTableCommon class. */ +use Prado\Data\Common\TDbTableColumn; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableColumn'); /** diff --git a/framework/Data/Common/Mssql/TMssqlTableInfo.php b/framework/Data/Common/Mssql/TMssqlTableInfo.php index 005b767f..187eac78 100644 --- a/framework/Data/Common/Mssql/TMssqlTableInfo.php +++ b/framework/Data/Common/Mssql/TMssqlTableInfo.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Mssql; /** * Loads the base TDbTableInfo class and TMssqlTableColumn class. */ +use Prado\Data\Common\TDbTableInfo; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableInfo'); Prado::using('System.Data.Common.Mssql.TMssqlTableColumn'); diff --git a/framework/Data/Common/Mysql/TMysqlCommandBuilder.php b/framework/Data/Common/Mysql/TMysqlCommandBuilder.php index fd9f9aef..a4f717e0 100644 --- a/framework/Data/Common/Mysql/TMysqlCommandBuilder.php +++ b/framework/Data/Common/Mysql/TMysqlCommandBuilder.php @@ -11,6 +11,9 @@ namespace Prado\Data\Common\Mysql; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Prado; + Prado::using('System.Data.Common.TDbCommandBuilder'); /** diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php index 668c8413..f2754181 100644 --- a/framework/Data/Common/Mysql/TMysqlMetaData.php +++ b/framework/Data/Common/Mysql/TMysqlMetaData.php @@ -14,6 +14,12 @@ namespace Prado\Data\Common\Mysql; /** * Load the base TDbMetaData class. */ +use PDO; +use Prado\Data\Common\TDbMetaData; +use Prado\Data\TDbColumnCaseMode; +use Prado\Exceptions\TDbException; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Mysql.TMysqlTableInfo'); diff --git a/framework/Data/Common/Mysql/TMysqlTableColumn.php b/framework/Data/Common/Mysql/TMysqlTableColumn.php index 4ad936f5..ef1e35c9 100644 --- a/framework/Data/Common/Mysql/TMysqlTableColumn.php +++ b/framework/Data/Common/Mysql/TMysqlTableColumn.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Mysql; /** * Load common TDbTableCommon class. */ +use Prado\Data\Common\TDbTableColumn; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableColumn'); /** diff --git a/framework/Data/Common/Mysql/TMysqlTableInfo.php b/framework/Data/Common/Mysql/TMysqlTableInfo.php index 041b12ff..896f4e59 100644 --- a/framework/Data/Common/Mysql/TMysqlTableInfo.php +++ b/framework/Data/Common/Mysql/TMysqlTableInfo.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Mysql; /** * Loads the base TDbTableInfo class and TMysqlTableColumn class. */ +use Prado\Data\Common\TDbTableInfo; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableInfo'); Prado::using('System.Data.Common.Mysql.TMysqlTableColumn'); diff --git a/framework/Data/Common/Oracle/TOracleCommandBuilder.php b/framework/Data/Common/Oracle/TOracleCommandBuilder.php index 139ecc78..d9b2b274 100644 --- a/framework/Data/Common/Oracle/TOracleCommandBuilder.php +++ b/framework/Data/Common/Oracle/TOracleCommandBuilder.php @@ -12,6 +12,9 @@ namespace Prado\Data\Common\Oracle; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Prado; + Prado::using('System.Data.Common.TDbCommandBuilder'); /** diff --git a/framework/Data/Common/Oracle/TOracleMetaData.php b/framework/Data/Common/Oracle/TOracleMetaData.php index 2b6e9774..043bf151 100644 --- a/framework/Data/Common/Oracle/TOracleMetaData.php +++ b/framework/Data/Common/Oracle/TOracleMetaData.php @@ -14,6 +14,11 @@ namespace Prado\Data\Common\Oracle; /** * Load the base TDbMetaData class. */ +use PDO; +use Prado\Data\Common\TDbMetaData; +use Prado\Exceptions\TDbException; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Oracle.TOracleTableInfo'); Prado::using('System.Data.Common.Oracle.TOracleTableColumn'); diff --git a/framework/Data/Common/Oracle/TOracleTableColumn.php b/framework/Data/Common/Oracle/TOracleTableColumn.php index 7b978336..9b9c0ce0 100644 --- a/framework/Data/Common/Oracle/TOracleTableColumn.php +++ b/framework/Data/Common/Oracle/TOracleTableColumn.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Oracle; /** * Load common TDbTableCommon class. */ +use Prado\Data\Common\TDbTableColumn; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableColumn'); /** diff --git a/framework/Data/Common/Oracle/TOracleTableInfo.php b/framework/Data/Common/Oracle/TOracleTableInfo.php index d5c66ab8..4f163024 100644 --- a/framework/Data/Common/Oracle/TOracleTableInfo.php +++ b/framework/Data/Common/Oracle/TOracleTableInfo.php @@ -11,6 +11,9 @@ */ namespace Prado\Data\Common\Oracle; +use Prado\Collections\TMap; +use Prado\Exceptions\TDbException; +use Prado\Prado; /** * TDbTableInfo class describes the meta data of a database table. diff --git a/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php b/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php index d9d0c987..10905a4b 100644 --- a/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php +++ b/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php @@ -11,6 +11,9 @@ namespace Prado\Data\Common\Pgsql; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Prado; + Prado::using('System.Data.Common.TDbCommandBuilder'); /** diff --git a/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/framework/Data/Common/Pgsql/TPgsqlMetaData.php index 96f2e091..e848d6af 100644 --- a/framework/Data/Common/Pgsql/TPgsqlMetaData.php +++ b/framework/Data/Common/Pgsql/TPgsqlMetaData.php @@ -14,6 +14,10 @@ namespace Prado\Data\Common\Pgsql; /** * Load the base TDbMetaData class. */ +use Prado\Data\Common\TDbMetaData; +use Prado\Exceptions\TDbException; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Pgsql.TPgsqlTableInfo'); diff --git a/framework/Data/Common/Pgsql/TPgsqlTableColumn.php b/framework/Data/Common/Pgsql/TPgsqlTableColumn.php index 75bd2aac..98b1f296 100644 --- a/framework/Data/Common/Pgsql/TPgsqlTableColumn.php +++ b/framework/Data/Common/Pgsql/TPgsqlTableColumn.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Pgsql; /** * Load common TDbTableCommon class. */ +use Prado\Data\Common\TDbTableColumn; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableColumn'); /** diff --git a/framework/Data/Common/Pgsql/TPgsqlTableInfo.php b/framework/Data/Common/Pgsql/TPgsqlTableInfo.php index bc27a6d5..475b737f 100644 --- a/framework/Data/Common/Pgsql/TPgsqlTableInfo.php +++ b/framework/Data/Common/Pgsql/TPgsqlTableInfo.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Pgsql; /** * Loads the base TDbTableInfo class and TPgsqlTableColumn class. */ +use Prado\Data\Common\TDbTableInfo; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableInfo'); Prado::using('System.Data.Common.Pgsql.TPgsqlTableColumn'); diff --git a/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php b/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php index fe890a31..8b840207 100644 --- a/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php +++ b/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php @@ -11,6 +11,9 @@ namespace Prado\Data\Common\Sqlite; +use Prado\Data\Common\TDbCommandBuilder; +use Prado\Prado; + Prado::using('System.Data.Common.TDbCommandBuilder'); /** diff --git a/framework/Data/Common/Sqlite/TSqliteMetaData.php b/framework/Data/Common/Sqlite/TSqliteMetaData.php index 0985305f..4e0fdaed 100644 --- a/framework/Data/Common/Sqlite/TSqliteMetaData.php +++ b/framework/Data/Common/Sqlite/TSqliteMetaData.php @@ -14,6 +14,10 @@ namespace Prado\Data\Common\Sqlite; /** * Load the base TDbMetaData class. */ +use Prado\Data\Common\TDbMetaData; +use Prado\Exceptions\TDbException; +use Prado\Prado; + Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Sqlite.TSqliteTableInfo'); diff --git a/framework/Data/Common/Sqlite/TSqliteTableColumn.php b/framework/Data/Common/Sqlite/TSqliteTableColumn.php index ba33b591..daf427f7 100644 --- a/framework/Data/Common/Sqlite/TSqliteTableColumn.php +++ b/framework/Data/Common/Sqlite/TSqliteTableColumn.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Sqlite; /** * Load common TDbTableCommon class. */ +use Prado\Data\Common\TDbTableColumn; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableColumn'); /** diff --git a/framework/Data/Common/Sqlite/TSqliteTableInfo.php b/framework/Data/Common/Sqlite/TSqliteTableInfo.php index f08c8229..f0143810 100644 --- a/framework/Data/Common/Sqlite/TSqliteTableInfo.php +++ b/framework/Data/Common/Sqlite/TSqliteTableInfo.php @@ -14,6 +14,9 @@ namespace Prado\Data\Common\Sqlite; /** * Loads the base TDbTableInfo class and TSqliteTableColumn class. */ +use Prado\Data\Common\TDbTableInfo; +use Prado\Prado; + Prado::using('System.Data.Common.TDbTableInfo'); Prado::using('System.Data.Common.Sqlite.TSqliteTableColumn'); diff --git a/framework/Data/Common/TDbCommandBuilder.php b/framework/Data/Common/TDbCommandBuilder.php index eacc4ad4..3d37238b 100644 --- a/framework/Data/Common/TDbCommandBuilder.php +++ b/framework/Data/Common/TDbCommandBuilder.php @@ -10,6 +10,8 @@ */ namespace Prado\Data\Common; +use PDO; +use Traversable; /** * TDbCommandBuilder provides basic methods to create query commands for tables diff --git a/framework/Data/Common/TDbMetaData.php b/framework/Data/Common/TDbMetaData.php index 4b289b1c..4f20397c 100644 --- a/framework/Data/Common/TDbMetaData.php +++ b/framework/Data/Common/TDbMetaData.php @@ -10,6 +10,13 @@ */ namespace Prado\Data\Common; +use Prado\Data\Common\Mssql\TMssqlMetaData; +use Prado\Data\Common\Mysql\TMysqlMetaData; +use Prado\Data\Common\Oracle\TOracleMetaData; +use Prado\Data\Common\Pgsql\TPgsqlMetaData; +use Prado\Data\Common\Sqlite\TSqliteMetaData; +use Prado\Exceptions\TDbException; +use Prado\Prado; /** * TDbMetaData is the base class for retrieving metadata information, such as diff --git a/framework/Data/Common/TDbTableColumn.php b/framework/Data/Common/TDbTableColumn.php index f7c83ace..04fcd3e5 100644 --- a/framework/Data/Common/TDbTableColumn.php +++ b/framework/Data/Common/TDbTableColumn.php @@ -10,6 +10,7 @@ */ namespace Prado\Data\Common; +use PDO; /** * TDbTableColumn class describes the column meta data of the schema for a database table. diff --git a/framework/Data/Common/TDbTableInfo.php b/framework/Data/Common/TDbTableInfo.php index a46a1b58..69fa50f0 100644 --- a/framework/Data/Common/TDbTableInfo.php +++ b/framework/Data/Common/TDbTableInfo.php @@ -10,6 +10,9 @@ */ namespace Prado\Data\Common; +use Prado\Collections\TMap; +use Prado\Exceptions\TDbException; +use Prado\Prado; /** * TDbTableInfo class describes the meta data of a database table. |