フォトアルバム

2011年10月

            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

なかのひと

373news.com

google Search

  • Google
    blog.ganymean.org
    WWW

Google Analytics

« Reactorをはじめる-7 | メイン | Reactorをはじめる-9 »

Reactorをはじめる-8

Reactorの基本オブジェクトの各種メソッドをダンプ結果から確認しています。最初に、Gatewayオブジェクトに着目します。

■userGateway

configure ----------- Objectを初期化し、オブジェクトを返します。
getAll -------------- 全てのレコードセットを返します。
createQuery -------- クエリーオブジェクトを作成します。
getByFields --------- 指定されたフィールドの全てのレコードセットを返します。
getByQuery --------- クエリーオブジェクトの条件に合致するレコードセットを返します。
_getSignature -------- 依存するDBの署名を返します。
_getInstanceID ------- ObjectのインスタンスをUUID形式で返します。

以下のCFMLスクリプトを実行してみましょう。

<!--- create the reactorFactory --->
<cfset Reactor = CreateObject("Component", "reactor.reactorFactory").init(expandPath("reactor.xml")) />
<cfoutput>userGateway</cfoutput>
<!--- create an user Gateway --->
<cfset userGateway = Reactor.createGateway("user") />
<!--- dump the user gateway --->
<cfdump var="#userGateway#" />
<br />

<cfoutput>userDAO</cfoutput>
<!--- create an user Dao --->
<cfset userDao = Reactor.createDao("user") />
<!--- dump the user Dao --->
<cfdump var="#userDao#" />
<br />

ダンプ結果は、こちらで確認できます。

トラックバック

このページのトラックバックURL:
http://app.synapse-blog.jp/t/trackback/190195/6130092

Reactorをはじめる-8を参照しているブログ:

コメント

コメントを投稿

コメントは記事の投稿者が承認するまで表示されません。

ログイン

  • コントロールパネルへのログイン
    アカウント:

    パスワード:

更新ブログ

最近のトラックバック

Google

ブログ powered by TypePad
Member since 04/2005