summaryrefslogtreecommitdiff
path: root/framework/Data/Common
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data/Common')
-rw-r--r--framework/Data/Common/Mssql/TMssqlCommandBuilder.php1
-rw-r--r--framework/Data/Common/Mssql/TMssqlMetaData.php2
-rw-r--r--framework/Data/Common/Mssql/TMssqlTableColumn.php1
-rw-r--r--framework/Data/Common/Mssql/TMssqlTableInfo.php3
-rw-r--r--framework/Data/Common/Mysql/TMysqlCommandBuilder.php1
-rw-r--r--framework/Data/Common/Mysql/TMysqlMetaData.php2
-rw-r--r--framework/Data/Common/Mysql/TMysqlTableColumn.php1
-rw-r--r--framework/Data/Common/Mysql/TMysqlTableInfo.php3
-rw-r--r--framework/Data/Common/Oracle/TOracleCommandBuilder.php1
-rw-r--r--framework/Data/Common/Oracle/TOracleMetaData.php3
-rw-r--r--framework/Data/Common/Oracle/TOracleTableColumn.php1
-rw-r--r--framework/Data/Common/Oracle/TOracleTableInfo.php1
-rw-r--r--framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php1
-rw-r--r--framework/Data/Common/Pgsql/TPgsqlMetaData.php2
-rw-r--r--framework/Data/Common/Pgsql/TPgsqlTableColumn.php1
-rw-r--r--framework/Data/Common/Pgsql/TPgsqlTableInfo.php3
-rw-r--r--framework/Data/Common/Sqlite/TSqliteCommandBuilder.php1
-rw-r--r--framework/Data/Common/Sqlite/TSqliteMetaData.php2
-rw-r--r--framework/Data/Common/Sqlite/TSqliteTableColumn.php1
-rw-r--r--framework/Data/Common/Sqlite/TSqliteTableInfo.php3
-rw-r--r--framework/Data/Common/TDbMetaData.php6
-rw-r--r--framework/Data/Common/TDbTableInfo.php1
22 files changed, 0 insertions, 41 deletions
diff --git a/framework/Data/Common/Mssql/TMssqlCommandBuilder.php b/framework/Data/Common/Mssql/TMssqlCommandBuilder.php
index 498c8177..03f41552 100644
--- a/framework/Data/Common/Mssql/TMssqlCommandBuilder.php
+++ b/framework/Data/Common/Mssql/TMssqlCommandBuilder.php
@@ -14,7 +14,6 @@ namespace Prado\Data\Common\Mssql;
use Prado\Data\Common\TDbCommandBuilder;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbCommandBuilder');
/**
* TMssqlCommandBuilder provides specifics methods to create limit/offset query commands
diff --git a/framework/Data/Common/Mssql/TMssqlMetaData.php b/framework/Data/Common/Mssql/TMssqlMetaData.php
index 5c4ec036..6899a604 100644
--- a/framework/Data/Common/Mssql/TMssqlMetaData.php
+++ b/framework/Data/Common/Mssql/TMssqlMetaData.php
@@ -18,8 +18,6 @@ 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');
/**
* TMssqlMetaData loads MSSQL database table and column information.
diff --git a/framework/Data/Common/Mssql/TMssqlTableColumn.php b/framework/Data/Common/Mssql/TMssqlTableColumn.php
index 2f75b5be..fbaddedf 100644
--- a/framework/Data/Common/Mssql/TMssqlTableColumn.php
+++ b/framework/Data/Common/Mssql/TMssqlTableColumn.php
@@ -17,7 +17,6 @@ namespace Prado\Data\Common\Mssql;
use Prado\Data\Common\TDbTableColumn;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableColumn');
/**
* Describes the column metadata of the schema for a Mssql database table.
diff --git a/framework/Data/Common/Mssql/TMssqlTableInfo.php b/framework/Data/Common/Mssql/TMssqlTableInfo.php
index 187eac78..93bef5bf 100644
--- a/framework/Data/Common/Mssql/TMssqlTableInfo.php
+++ b/framework/Data/Common/Mssql/TMssqlTableInfo.php
@@ -17,8 +17,6 @@ namespace Prado\Data\Common\Mssql;
use Prado\Data\Common\TDbTableInfo;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableInfo');
-Prado::using('System.Data.Common.Mssql.TMssqlTableColumn');
/**
* TMssqlTableInfo class provides additional table information for Mssql database.
@@ -60,7 +58,6 @@ class TMssqlTableInfo extends TDbTableInfo
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.Mssql.TMssqlCommandBuilder');
return new TMssqlCommandBuilder($connection,$this);
}
}
diff --git a/framework/Data/Common/Mysql/TMysqlCommandBuilder.php b/framework/Data/Common/Mysql/TMysqlCommandBuilder.php
index a4f717e0..f2b00e37 100644
--- a/framework/Data/Common/Mysql/TMysqlCommandBuilder.php
+++ b/framework/Data/Common/Mysql/TMysqlCommandBuilder.php
@@ -14,7 +14,6 @@ namespace Prado\Data\Common\Mysql;
use Prado\Data\Common\TDbCommandBuilder;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbCommandBuilder');
/**
* TMysqlCommandBuilder implements default TDbCommandBuilder
diff --git a/framework/Data/Common/Mysql/TMysqlMetaData.php b/framework/Data/Common/Mysql/TMysqlMetaData.php
index f2754181..55193a05 100644
--- a/framework/Data/Common/Mysql/TMysqlMetaData.php
+++ b/framework/Data/Common/Mysql/TMysqlMetaData.php
@@ -20,8 +20,6 @@ use Prado\Data\TDbColumnCaseMode;
use Prado\Exceptions\TDbException;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbMetaData');
-Prado::using('System.Data.Common.Mysql.TMysqlTableInfo');
/**
* TMysqlMetaData loads Mysql version 4.1.x and 5.x database table and column information.
diff --git a/framework/Data/Common/Mysql/TMysqlTableColumn.php b/framework/Data/Common/Mysql/TMysqlTableColumn.php
index ef1e35c9..3158cacf 100644
--- a/framework/Data/Common/Mysql/TMysqlTableColumn.php
+++ b/framework/Data/Common/Mysql/TMysqlTableColumn.php
@@ -17,7 +17,6 @@ namespace Prado\Data\Common\Mysql;
use Prado\Data\Common\TDbTableColumn;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableColumn');
/**
* Describes the column metadata of the schema for a Mysql database table.
diff --git a/framework/Data/Common/Mysql/TMysqlTableInfo.php b/framework/Data/Common/Mysql/TMysqlTableInfo.php
index 896f4e59..4be9fb62 100644
--- a/framework/Data/Common/Mysql/TMysqlTableInfo.php
+++ b/framework/Data/Common/Mysql/TMysqlTableInfo.php
@@ -17,8 +17,6 @@ namespace Prado\Data\Common\Mysql;
use Prado\Data\Common\TDbTableInfo;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableInfo');
-Prado::using('System.Data.Common.Mysql.TMysqlTableColumn');
/**
* TMysqlTableInfo class provides additional table information for MySQL database.
@@ -54,7 +52,6 @@ class TMysqlTableInfo extends TDbTableInfo
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.Mysql.TMysqlCommandBuilder');
return new TMysqlCommandBuilder($connection,$this);
}
}
diff --git a/framework/Data/Common/Oracle/TOracleCommandBuilder.php b/framework/Data/Common/Oracle/TOracleCommandBuilder.php
index d9b2b274..f307b46c 100644
--- a/framework/Data/Common/Oracle/TOracleCommandBuilder.php
+++ b/framework/Data/Common/Oracle/TOracleCommandBuilder.php
@@ -15,7 +15,6 @@ namespace Prado\Data\Common\Oracle;
use Prado\Data\Common\TDbCommandBuilder;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbCommandBuilder');
/**
* TOracleCommandBuilder provides specifics methods to create limit/offset query commands
diff --git a/framework/Data/Common/Oracle/TOracleMetaData.php b/framework/Data/Common/Oracle/TOracleMetaData.php
index 043bf151..fe8b5333 100644
--- a/framework/Data/Common/Oracle/TOracleMetaData.php
+++ b/framework/Data/Common/Oracle/TOracleMetaData.php
@@ -19,9 +19,6 @@ 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');
/**
* TOracleMetaData loads Oracle database table and column information.
diff --git a/framework/Data/Common/Oracle/TOracleTableColumn.php b/framework/Data/Common/Oracle/TOracleTableColumn.php
index 9b9c0ce0..4dc7e457 100644
--- a/framework/Data/Common/Oracle/TOracleTableColumn.php
+++ b/framework/Data/Common/Oracle/TOracleTableColumn.php
@@ -17,7 +17,6 @@ namespace Prado\Data\Common\Oracle;
use Prado\Data\Common\TDbTableColumn;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableColumn');
/**
* Describes the column metadata of the schema for a PostgreSQL database table.
diff --git a/framework/Data/Common/Oracle/TOracleTableInfo.php b/framework/Data/Common/Oracle/TOracleTableInfo.php
index 4f163024..72aba2d6 100644
--- a/framework/Data/Common/Oracle/TOracleTableInfo.php
+++ b/framework/Data/Common/Oracle/TOracleTableInfo.php
@@ -51,7 +51,6 @@ class TOracleTableInfo extends \Prado\TComponent
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.Oracle.TOracleCommandBuilder');
return new TOracleCommandBuilder($connection,$this);
}
diff --git a/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php b/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php
index 10905a4b..6c8ef7b9 100644
--- a/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php
+++ b/framework/Data/Common/Pgsql/TPgsqlCommandBuilder.php
@@ -14,7 +14,6 @@ namespace Prado\Data\Common\Pgsql;
use Prado\Data\Common\TDbCommandBuilder;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbCommandBuilder');
/**
* TPgsqlCommandBuilder provides specifics methods to create limit/offset query commands
diff --git a/framework/Data/Common/Pgsql/TPgsqlMetaData.php b/framework/Data/Common/Pgsql/TPgsqlMetaData.php
index e848d6af..82b073d1 100644
--- a/framework/Data/Common/Pgsql/TPgsqlMetaData.php
+++ b/framework/Data/Common/Pgsql/TPgsqlMetaData.php
@@ -18,8 +18,6 @@ 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');
/**
* TPgsqlMetaData loads PostgreSQL database table and column information.
diff --git a/framework/Data/Common/Pgsql/TPgsqlTableColumn.php b/framework/Data/Common/Pgsql/TPgsqlTableColumn.php
index 98b1f296..ab4497e5 100644
--- a/framework/Data/Common/Pgsql/TPgsqlTableColumn.php
+++ b/framework/Data/Common/Pgsql/TPgsqlTableColumn.php
@@ -17,7 +17,6 @@ namespace Prado\Data\Common\Pgsql;
use Prado\Data\Common\TDbTableColumn;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableColumn');
/**
* Describes the column metadata of the schema for a PostgreSQL database table.
diff --git a/framework/Data/Common/Pgsql/TPgsqlTableInfo.php b/framework/Data/Common/Pgsql/TPgsqlTableInfo.php
index 475b737f..60f0ef55 100644
--- a/framework/Data/Common/Pgsql/TPgsqlTableInfo.php
+++ b/framework/Data/Common/Pgsql/TPgsqlTableInfo.php
@@ -17,8 +17,6 @@ namespace Prado\Data\Common\Pgsql;
use Prado\Data\Common\TDbTableInfo;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableInfo');
-Prado::using('System.Data.Common.Pgsql.TPgsqlTableColumn');
/**
* TPgsqlTableInfo class provides additional table information for PostgreSQL database.
@@ -54,7 +52,6 @@ class TPgsqlTableInfo extends TDbTableInfo
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.Pgsql.TPgsqlCommandBuilder');
return new TPgsqlCommandBuilder($connection,$this);
}
}
diff --git a/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php b/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php
index 8b840207..7d7d931e 100644
--- a/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php
+++ b/framework/Data/Common/Sqlite/TSqliteCommandBuilder.php
@@ -14,7 +14,6 @@ namespace Prado\Data\Common\Sqlite;
use Prado\Data\Common\TDbCommandBuilder;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbCommandBuilder');
/**
* TSqliteCommandBuilder provides specifics methods to create limit/offset query commands
diff --git a/framework/Data/Common/Sqlite/TSqliteMetaData.php b/framework/Data/Common/Sqlite/TSqliteMetaData.php
index 4e0fdaed..ae1c043c 100644
--- a/framework/Data/Common/Sqlite/TSqliteMetaData.php
+++ b/framework/Data/Common/Sqlite/TSqliteMetaData.php
@@ -18,8 +18,6 @@ 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');
/**
* TSqliteMetaData loads SQLite database table and column information.
diff --git a/framework/Data/Common/Sqlite/TSqliteTableColumn.php b/framework/Data/Common/Sqlite/TSqliteTableColumn.php
index daf427f7..af6c4e91 100644
--- a/framework/Data/Common/Sqlite/TSqliteTableColumn.php
+++ b/framework/Data/Common/Sqlite/TSqliteTableColumn.php
@@ -17,7 +17,6 @@ namespace Prado\Data\Common\Sqlite;
use Prado\Data\Common\TDbTableColumn;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableColumn');
/**
* Describes the column metadata of the schema for a PostgreSQL database table.
diff --git a/framework/Data/Common/Sqlite/TSqliteTableInfo.php b/framework/Data/Common/Sqlite/TSqliteTableInfo.php
index f0143810..aa2272af 100644
--- a/framework/Data/Common/Sqlite/TSqliteTableInfo.php
+++ b/framework/Data/Common/Sqlite/TSqliteTableInfo.php
@@ -17,8 +17,6 @@ namespace Prado\Data\Common\Sqlite;
use Prado\Data\Common\TDbTableInfo;
use Prado\Prado;
-Prado::using('System.Data.Common.TDbTableInfo');
-Prado::using('System.Data.Common.Sqlite.TSqliteTableColumn');
/**
* TSqliteTableInfo class provides additional table information for PostgreSQL database.
@@ -35,7 +33,6 @@ class TSqliteTableInfo extends TDbTableInfo
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.Sqlite.TSqliteCommandBuilder');
return new TSqliteCommandBuilder($connection,$this);
}
diff --git a/framework/Data/Common/TDbMetaData.php b/framework/Data/Common/TDbMetaData.php
index 4f20397c..13839728 100644
--- a/framework/Data/Common/TDbMetaData.php
+++ b/framework/Data/Common/TDbMetaData.php
@@ -66,26 +66,20 @@ abstract class TDbMetaData extends \Prado\TComponent
switch(strtolower($driver))
{
case 'pgsql':
- Prado::using('System.Data.Common.Pgsql.TPgsqlMetaData');
return new TPgsqlMetaData($conn);
case 'mysqli':
case 'mysql':
- Prado::using('System.Data.Common.Mysql.TMysqlMetaData');
return new TMysqlMetaData($conn);
case 'sqlite': //sqlite 3
case 'sqlite2': //sqlite 2
- Prado::using('System.Data.Common.Sqlite.TSqliteMetaData');
return new TSqliteMetaData($conn);
case 'mssql': // Mssql driver on windows hosts
case 'sqlsrv': // sqlsrv driver on windows hosts
case 'dblib': // dblib drivers on linux (and maybe others os) hosts
- Prado::using('System.Data.Common.Mssql.TMssqlMetaData');
return new TMssqlMetaData($conn);
case 'oci':
- Prado::using('System.Data.Common.Oracle.TOracleMetaData');
return new TOracleMetaData($conn);
// case 'ibm':
-// Prado::using('System.Data.Common.IbmDb2.TIbmDb2MetaData');
// return new TIbmDb2MetaData($conn);
default:
throw new TDbException('ar_invalid_database_driver',$driver);
diff --git a/framework/Data/Common/TDbTableInfo.php b/framework/Data/Common/TDbTableInfo.php
index 69fa50f0..e9a16a65 100644
--- a/framework/Data/Common/TDbTableInfo.php
+++ b/framework/Data/Common/TDbTableInfo.php
@@ -56,7 +56,6 @@ class TDbTableInfo extends \Prado\TComponent
*/
public function createCommandBuilder($connection)
{
- Prado::using('System.Data.Common.TDbCommandBuilder');
return new TDbCommandBuilder($connection,$this);
}