Class CFW_Data_DataSource

Description

データソース基本機能

  • author: okada

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


	
			
Direct descendents
Class Description
CFW_Data_SqlServer_DataSource SQLサーバー用データソース.
Variable Summary
static string $createdAtField
static string $modifiedAtField
string $countQuery
string $deleteQuery
CFW_Models_EntityPropery $entityProperty
string $insertQuery
string $selectQuery
string $tableName
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 61)
static string $modifiedAtField = "modified_at" (line 65)
CFW_Data_Connection $connection (line 18)
string $countQuery (line 35)
string $deleteQuery (line 47)
CFW_Models_EntityPropery $entityProperty = null (line 22)
string $insertQuery (line 39)
array $selectFields = array() (line 52)
string $selectQuery (line 31)
string $tableName = "" (line 26)
array $updateFields = array() (line 56)
string $updateQuery (line 43)
Methods
Constructor __construct (line 67)
  • access: public
CFW_Data_DataSource __construct ( $connection, [ $property = null])
  • $connection
  • $property
buildCountQuery (line 488)

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

  • access: public
unknown_type buildCountQuery (CFW_Data_Criteria $c)
buildDeleteQuery (line 604)

削除クエリー組み立て

  • access: public
unknown_type buildDeleteQuery (unknown_type $criteria)
  • unknown_type $criteria
buildInsertQuery (line 578)

挿入クエリー組み立て

  • access: public
unknown_type buildInsertQuery (unknown_type $fields)
  • unknown_type $fields
buildSelectQuery (line 424)

選択クエリー組み立て

  • access: public
unknown_type buildSelectQuery (CFW_Data_Criteria $c,  $fields)

Redefined in descendants as:
buildUpdateQuery (line 548)

更新クエリー組み立て

  • access: public
unknown_type buildUpdateQuery ($criteria $criteria, $fields $fields)
  • $criteria $criteria
  • $fields $fields
connect (line 76)

接続オープン

  • access: public
unknown_type connect ()
createPrimaryKeyCriteria (line 162)

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

CFW_Data_Criteria createPrimaryKeyCriteria (unknown_type $primaryKeys, unknown_type $entity)
  • unknown_type $primaryKeys
  • unknown_type $entity
delete (line 326)

データの削除

  • access: public
unknown_type delete ($criteria $criteria)
  • $criteria $criteria
disconnect (line 83)

接続解除

  • access: public
unknown_type disconnect ()
find (line 339)

データの検索

  • access: public
unknown_type find ([$criteria $criteria = null], [$fields $fields = array()])
  • $criteria $criteria
  • $fields $fields
findByPk (line 368)

主キーによる検索

  • access: public
unknown_type findByPk ($entity $entity)
  • $entity $entity
getCount (line 354)

件数取得

  • access: public
unknown_type getCount ([unknown_type $criteria = null])
  • unknown_type $criteria
getSelectFields (line 410)

選択列取得

unknown_type getSelectFields ()
insert (line 278)

データの追加

  • access: public
unknown_type insert (unknown_type $data, [unknown_type $fields = array()])
  • unknown_type $data
  • unknown_type $fields
save (line 110)

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

  • access: public
number save (unknown_type $data, [unknown_type $fields = array()])
  • unknown_type $data
  • unknown_type $fields
setConnection (line 101)

既存の接続を設定する.

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

  • access: public
unknown_type setConnection (unknown_type $connection)
  • unknown_type $connection
setProperty (line 91)

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

  • access: public
unknown_type setProperty (unknown_type $property)
  • unknown_type $property
setupProperty (line 385)

プロパティ構築

  • access: public
unknown_type setupProperty ([$fields $fields = array()])
  • $fields $fields
update (line 301)

データの更新

  • 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 22:44:39 +0900 by phpDocumentor 1.4.3