CFW_Data_DataSource
__construct
( $connection, [ $property = null])
削除クエリー組み立て
unknown_type
buildDeleteQuery
(unknown_type $criteria)
挿入クエリー組み立て
unknown_type
buildInsertQuery
(unknown_type $fields)
選択クエリー組み立て
Redefined in descendants as:
更新クエリー組み立て
unknown_type
buildUpdateQuery
($criteria $criteria, $fields $fields)
-
$criteria
$criteria
-
$fields
$fields
接続オープン
unknown_type
connect
()
主キーによる選択条件を作る
CFW_Data_Criteria
createPrimaryKeyCriteria
(
unknown_type $primaryKeys,
unknown_type $entity)
-
unknown_type
$primaryKeys
-
unknown_type
$entity
データの削除
unknown_type
delete
($criteria $criteria)
接続解除
unknown_type
disconnect
()
データの検索
unknown_type
find
([$criteria $criteria = null], [$fields $fields = array()])
-
$criteria
$criteria
-
$fields
$fields
主キーによる検索
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()])
-
unknown_type
$data
-
unknown_type
$fields
エンティティを保存する.
number
save
(unknown_type $data, [unknown_type $fields = array()])
-
unknown_type
$data
-
unknown_type
$fields
既存の接続を設定する.
これを使う場合は呼び出し元が接続|接続解除を制御する
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()])
-
$data
$data
-
$criteria
$criteria
-
$fields
$fields