DB
[ class tree: DB ] [ index: DB ] [ all elements ]

Class: SC_DB_DBFactory_MYSQL

Source Location: /db/dbfactory/SC_DB_DBFactory_MYSQL.php

Class Overview

SC_DB_DBFactory
   |
   --SC_DB_DBFactory_MYSQL

MySQL 固有の処理をするクラス.


Author(s):

  • LOCKON CO.,LTD.

Version:

  • $Id:SC_DB_DBFactory_MYSQL.php 15267 2007-08-09 12:31:52Z nanasess $

Methods


Inherited Methods

Class: SC_DB_DBFactory

SC_DB_DBFactory::createTableIndex()
インデックスを作成する.
SC_DB_DBFactory::findTableNames()
テーブルを検索する.
SC_DB_DBFactory::getDSN()
データソース名を取得する.
SC_DB_DBFactory::getInstance()
DB_TYPE に応じた DBFactory インスタンスを生成する.
SC_DB_DBFactory::getTableExistsSql()
テーブルの存在チェックを行う SQL 文を返す.
SC_DB_DBFactory::getTableIndex()
インデックスの検索結果を配列で返す.
SC_DB_DBFactory::sfChangeMySQL()
MySQL 用の SQL 文に変更する.
SC_DB_DBFactory::sfGetColumnList()
テーブルのカラム一覧を取得する.
SC_DB_DBFactory::sfGetDBVersion()
DBのバージョンを取得する.

Class Details

[line 38]
MySQL 固有の処理をするクラス.

このクラスを直接インスタンス化しないこと. 必ず SC_DB_DBFactory クラスを経由してインスタンス化する. また, SC_DB_DBFactory クラスの関数を必ずオーバーライドしている必要がある.




Tags:

author:  LOCKON CO.,LTD.
version:  $Id:SC_DB_DBFactory_MYSQL.php 15267 2007-08-09 12:31:52Z nanasess $


[ Top ]


Class Methods


method createTableIndex [line 116]

void createTableIndex( string $index_name, string $table_name, string $col_name, [integer $length = 0])

インデックスを作成する.



Overrides SC_DB_DBFactory::createTableIndex() (インデックスを作成する.)

Parameters:

string   $index_name   インデックス名
string   $table_name   テーブル名
string   $col_name   カラム名
integer   $length   作成するインデックスのバイト長

[ Top ]

method findTableNames [line 143]

array findTableNames( [string $expression = ""])

テーブルを検索する.

引数に部分一致するテーブル名を配列で返す.




Tags:

return:  テーブル名の配列


Overrides SC_DB_DBFactory::findTableNames() (テーブルを検索する.)

Parameters:

string   $expression   検索文字列

[ Top ]

method getCharSet [line 79]

array getCharSet( )

文字コード情報を取得する



Tags:

return:  文字コード情報


[ Top ]

method getTableExistsSql [line 90]

string getTableExistsSql( )

テーブルの存在チェックを行う SQL 文を返す.



Tags:

return:  テーブルの存在チェックを行う SQL 文


Overrides SC_DB_DBFactory::getTableExistsSql() (テーブルの存在チェックを行う SQL 文を返す.)

[ Top ]

method getTableIndex [line 101]

array getTableIndex( string $index_name, [string $table_name = ""])

インデックスの検索結果を配列で返す.



Tags:

return:  インデックスの検索結果の配列


Overrides SC_DB_DBFactory::getTableIndex() (インデックスの検索結果を配列で返す.)

Parameters:

string   $index_name   インデックス名
string   $table_name   テーブル名

[ Top ]

method sfGetColumnList [line 127]

array sfGetColumnList( string $table_name)

テーブルのカラム一覧を取得する.



Tags:

return:  テーブルのカラム一覧の配列


Overrides SC_DB_DBFactory::sfGetColumnList() (テーブルのカラム一覧を取得する.)

Parameters:

string   $table_name   テーブル名

[ Top ]

method sfGetDBVersion [line 46]

string sfGetDBVersion( [string $dsn = ""])

DBのバージョンを取得する.



Tags:

return:  データベースのバージョン


Overrides SC_DB_DBFactory::sfGetDBVersion() (DBのバージョンを取得する.)

Parameters:

string   $dsn   データソース名

[ Top ]

method sfViewWhere [line 160]

string sfViewWhere( string $target, [string $where = ""], [array $arrval = array()], [string $option = ""])

View の WHERE 句を置換する.



Tags:

return:  置換後の SQL 文


Parameters:

string   $target   置換対象の文字列
string   $where   置換する文字列
array   $arrval   WHERE 句の要素の配列
string   $option   SQL 文の追加文字列

[ Top ]


Documentation generated on Fri, 24 Feb 2012 14:00:05 +0900 by Seasoft