## Class CFW_Data_DataSource

Description

Located in /Data/DataSource.php (line 9)

Direct descendents

Class | Description
--- | ---
CFW_Data_SqlServer_DataSource | SQLサーバー用データソース.

Variable Summary
static string $createdAtField
static string $modifiedAtField
CFW_Data_Connection $connection
string $countQuery
string $deleteQuery
CFW_Models_EntityPropery $entityProperty
string $insertQuery
array $selectFields
string $selectQuery
string $tableName
array $updateFields
string $updateQuery
Method Summary
CFW_Data_DataSource __construct ( $connection, [ $property = null])
unknown_type buildCountQuery (CFW_Data_Criteria $c)
unknown_type buildDeleteQuery (unknown_type $criteria)
unknown_type buildInsertQuery (unknown_type $fields)
unknown_type buildSelectQuery (CFW_Data_Criteria $c, $fields)
unknown_type buildUpdateQuery ($criteria $criteria, $fields $fields)
unknown_type connect ()
CFW_Data_Criteria createPrimaryKeyCriteria (unknown_type $primaryKeys, unknown_type $entity)
unknown_type delete ($criteria $criteria)
unknown_type disconnect ()
unknown_type find ([$criteria $criteria = null], [$fields $fields = array()])
unknown_type findByPk ($entity $entity)
unknown_type getCount ([unknown_type $criteria = null])
unknown_type getSelectFields ()
unknown_type insert (unknown_type $data, [unknown_type $fields = array()])
number save (unknown_type $data, [unknown_type $fields = array()])
unknown_type setConnection (unknown_type $connection)
unknown_type setProperty (unknown_type $property)
unknown_type setupProperty ([$fields $fields = array()])
unknown_type update ($data $data, [$criteria $criteria = null], [$fields $fields = array()])
Variables
static string $createdAtField = "created_at" (line 56)
static string $modifiedAtField = "modified_at" (line 60)
CFW_Data_Connection $connection (line 13)
string $countQuery (line 30)
string $deleteQuery (line 42)
CFW_Models_EntityPropery $entityProperty = null (line 17)
string $insertQuery (line 34)
array $selectFields = array() (line 47)
string $selectQuery (line 26)
string $tableName = "" (line 21)
array $updateFields = array() (line 51)
string $updateQuery (line 38)
Methods
Constructor __construct (line 62)

- access: public

CFW_Data_DataSource __construct ( $connection, [ $property = null])

- $connection
- $property

buildCountQuery (line 483)

件数取得用選択クエリー組み立て

- access: public

unknown_type buildCountQuery (CFW_Data_Criteria $c)

- CFW_Data_Criteria $c

buildDeleteQuery (line 599)

削除クエリー組み立て

- access: public

unknown_type buildDeleteQuery (unknown_type $criteria)

- unknown_type $criteria

buildInsertQuery (line 573)

挿入クエリー組み立て

- access: public

unknown_type buildInsertQuery (unknown_type $fields)

- unknown_type $fields

buildSelectQuery (line 419)

選択クエリー組み立て

- access: public

unknown_type buildSelectQuery (CFW_Data_Criteria $c, $fields)

- CFW_Data_Criteria $c
- $fields

Redefined in descendants as:

- CFW_Data_SqlServer_DataSource::buildSelectQuery()

buildUpdateQuery (line 543)

更新クエリー組み立て

- access: public

unknown_type buildUpdateQuery ($criteria $criteria, $fields $fields)

- $criteria $criteria
- $fields $fields

connect (line 71)

接続オープン

- access: public

unknown_type connect ()
createPrimaryKeyCriteria (line 157)

主キーによる選択条件を作る

CFW_Data_Criteria createPrimaryKeyCriteria (unknown_type $primaryKeys, unknown_type $entity)

- unknown_type $primaryKeys
- unknown_type $entity

delete (line 321)

データの削除

- access: public

unknown_type delete ($criteria $criteria)

- $criteria $criteria

disconnect (line 78)

接続解除

- access: public

unknown_type disconnect ()
find (line 334)

データの検索

- access: public

unknown_type find ([$criteria $criteria = null], [$fields $fields = array()])

- $criteria $criteria
- $fields $fields

findByPk (line 363)

主キーによる検索

- access: public

unknown_type findByPk ($entity $entity)

- $entity $entity

getCount (line 349)

件数取得

- access: public

unknown_type getCount ([unknown_type $criteria = null])

- unknown_type $criteria

getSelectFields (line 405)

選択列取得

unknown_type getSelectFields ()
insert (line 273)

データの追加

- access: public

unknown_type insert (unknown_type $data, [unknown_type $fields = array()])

- unknown_type $data
- unknown_type $fields

save (line 105)

エンティティを保存する.

- access: public

number save (unknown_type $data, [unknown_type $fields = array()])

- unknown_type $data
- unknown_type $fields

setConnection (line 96)

既存の接続を設定する.

これを使う場合は呼び出し元が接続|接続解除を制御する

- access: public

unknown_type setConnection (unknown_type $connection)

- unknown_type $connection

setProperty (line 86)

既存のプロパティを設定する。

- access: public

unknown_type setProperty (unknown_type $property)

- unknown_type $property

setupProperty (line 380)

プロパティ構築

- access: public

unknown_type setupProperty ([$fields $fields = array()])

- $fields $fields

update (line 296)

データの更新

- access: public

unknown_type update ($data $data, [$criteria $criteria = null], [$fields $fields = array()])

- $data $data
- $criteria $criteria
- $fields $fields

Documentation generated on Fri, 25 Dec 2009 21:42:42 +0900 by phpDocumentor 1.4.3