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

Public メソッド

 _baseConvertResult ($value, $type, $rtrim=true)
 getTypeDeclaration ($field)
 _getIntegerDeclaration ($name, $field)
 _quoteCLOB ($value, $quote, $escape_wildcards)
 _quoteBLOB ($value, $quote, $escape_wildcards)
 _quoteBoolean ($value, $quote, $escape_wildcards)
 matchPattern ($pattern, $operator=null, $field=null)
 patternEscapeString ()
 _mapNativeDatatype ($field)
 mapPrepareDatatype ($type)

関数

_baseConvertResult ( value,
type,
rtrim = true 
)

General type conversion method

引数:
mixed$valuerefernce to a value to be converted
string$typespecifies which type to convert to
boolean$rtrim[optional] when TRUE [default], apply rtrim() to text
戻り値:
object a MDB2 error on failure 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.
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:

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を再定義しています。

_quoteBLOB ( value,
quote,
escape_wildcards 
)

Convert a text value into a DBMS specific format that is suitable to compose query statements.

引数:
string$valuetext string value that is intended to be converted.
bool$quotedetermines if the value should be quoted and escaped
bool$escape_wildcardsif to escape escape wildcards
戻り値:
string text string that represents the given argument value in a DBMS specific format. protected

MDB2_Driver_Datatype_Commonを再定義しています。

_quoteBoolean ( value,
quote,
escape_wildcards 
)

Convert a text value into a DBMS specific format that is suitable to compose query statements.

引数:
string$valuetext string value that is intended to be converted.
bool$quotedetermines if the value should be quoted and escaped
bool$escape_wildcardsif to escape escape wildcards
戻り値:
string text string that represents the given argument value in a DBMS specific format. protected

MDB2_Driver_Datatype_Commonを再定義しています。

_quoteCLOB ( value,
quote,
escape_wildcards 
)

Convert a text value into a DBMS specific format that is suitable to compose query statements.

引数:
string$valuetext string value that is intended to be converted.
bool$quotedetermines if the value should be quoted and escaped
bool$escape_wildcardsif to escape escape wildcards
戻り値:
string text string that represents the given argument value in a DBMS specific format. protected

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を再定義しています。

mapPrepareDatatype ( type)

Maps an mdb2 datatype to native prepare type

引数:
string$type
戻り値:
string 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を再定義しています。

build string to define escape pattern string

public

戻り値:
string define escape pattern

MDB2_Driver_Datatype_Commonを再定義しています。


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