EC-CUBE
Public メソッド
クラス MDB2_Driver_Datatype_mysql
MDB2_Driver_Datatype_mysqlに対する継承グラフ
Inheritance graph
[凡例]
MDB2_Driver_Datatype_mysqlのコラボレーション図
Collaboration graph
[凡例]

Public メソッド

 _getCharsetFieldDeclaration ($charset)
 _getCollationFieldDeclaration ($collation)
 getTypeDeclaration ($field)
 _getIntegerDeclaration ($name, $field)
 _getFloatDeclaration ($name, $field)
 _getDecimalDeclaration ($name, $field)
 matchPattern ($pattern, $operator=null, $field=null)
 _mapNativeDatatype ($field)

関数

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.

引数:
string$charsetname of the charset
戻り値:
string DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.

MDB2_Driver_Datatype_Commonを再定義しています。

Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.

引数:
string$collationname of the collation
戻り値:
string DBMS specific SQL code portion needed to set the COLLATION of a field declaration.

MDB2_Driver_Datatype_Commonを再定義しています。

_getDecimalDeclaration ( name,
field 
)

Obtain DBMS specific SQL code portion needed to declare an decimal type field to be used in statements like CREATE TABLE.

引数:
string$namename the field to be declared.
string$fieldassociative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.

default Decimal value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

戻り値:
string DBMS specific SQL code portion that should be used to declare the specified field. protected

MDB2_Driver_Datatype_Commonを再定義しています。

_getFloatDeclaration ( name,
field 
)

Obtain DBMS specific SQL code portion needed to declare an float type field to be used in statements like CREATE TABLE.

引数:
string$namename the field to be declared.
string$fieldassociative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned float if possible.

default float value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

戻り値:
string DBMS specific SQL code portion that should be used to declare the specified field. protected

MDB2_Driver_Datatype_Commonを再定義しています。

_getIntegerDeclaration ( name,
field 
)

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.

引数:
string$namename the field to be declared.
string$fieldassociative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.

default Integer value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

戻り値:
string DBMS specific SQL code portion that should be used to declare the specified field. protected

MDB2_Driver_Datatype_Commonを再定義しています。

_mapNativeDatatype ( field)

Maps a native array description of a field to a MDB2 datatype and length

引数:
array$fieldnative field description
戻り値:
array containing the various possible types, length, sign, fixed public

MDB2_Driver_Datatype_Commonを再定義しています。

getTypeDeclaration ( field)

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.

引数:
array$fieldassociative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

戻り値:
string DBMS specific SQL code portion that should be used to declare the specified field. public

MDB2_Driver_Datatype_Commonを再定義しています。

matchPattern ( pattern,
operator = null,
field = null 
)

build a pattern matching string

public

引数:
array$patterneven keys are strings, odd are patterns (% and _)
string$operatoroptional pattern operator (LIKE, ILIKE and maybe others in the future)
string$fieldoptional field name that is being matched against (might be required when emulating ILIKE)
戻り値:
string SQL pattern

MDB2_Driver_Datatype_Commonを再定義しています。


このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数