5 TSPN_Write Apex and Visualforce Using Re-usable Patterns
-
Upload
terrasky -
Category
Technology
-
view
688 -
download
4
description
Transcript of 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns
![Page 1: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/1.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved. Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
TerraSky Power Night -Dreamforce Feedback-
Write Apex and Visualforce Using Re-usable Patterns
ソリューション本部 第1ソリューション部
渕上 善一
![Page 2: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/2.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
名前:渕上 善一
生年月日:1979年1月26日
出身地:福岡県
前職:映像制作会社勤務
入社日:2009年8月
最初に
2009年12月 Salesforce認定アドミニストレーター
2010年7月 Salesforce認定デベロッパー
2012年2月 上級認定デベロッパー一次
2013年1月認定SalesCloudコンサルタント
認定ServiceCloudコンサルタント
保有資格
2
![Page 3: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/3.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Hands-on Training: Write Apex and Visualforce Using Re-usable Patterns
日時:11/19: 10:00 am - 12:30 pm
場所:Hilton San Francisco Union Square - Continental Parlor 4
特記:
セッションが申込可能になって、序盤で満席になった人気のセッション
受講人数はおよそ200人程度
配布テキストに実施内容が記載されているので、心と英語の弱い人も安心!
アカウント情報がどこにあるのか分からず最初からつまづく‥
セッション概要
3
![Page 4: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/4.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
セッション概要
4
ココ
![Page 5: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/5.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
トレーニングの流れ
1. 提供されたSFのDeveloper環境にログイン
1. 使用した環境は自分のものとして使用可(多分)
2. ドキュメントから、ソースコードがまとめられたzipファイルのダウンロード
3. スライドと配布テキストで各パターンの説明と実装
1. テキストには、目標・シナリオ・タスク・時間・手順が記載
2. コード内のTodo部分(コメントアウト箇所)を修正し、各処理の理解を深める
4. 動作検証
セッション概要
5
![Page 6: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/6.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
セッション概要
6
![Page 7: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/7.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Caching
7
![Page 8: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/8.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Caching
8
数百レコードの引き当て処理が可能なトリガーを作る
ガバナ制限
:Set にトリガーのキーを収集
:キーのセットのIN句で一回のSOQLで問合せ
:結果をMapに保持
:Mapのキーで引き当て
![Page 9: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/9.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Caching
9
![Page 10: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/10.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Caching
10
![Page 11: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/11.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Summary Rollup for Lookup Relationships
11
![Page 12: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/12.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Summary Rollup for Lookup Relationships
参照関係の子レコードから親レコードへ集計する必要がある
参照関係を集計する為の宣言的なオプションはない
変化した子レコードが参照する親レコードIDを識別
子レコードに集計クエリを実行
IDSetを使用して親レコードを更新
12
![Page 13: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/13.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Summary Rollup for Lookup Relationships
13
![Page 14: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/14.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Summary Rollup for Lookup Relationships
14
![Page 15: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/15.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Search,Sort,and Pagenation
15
![Page 16: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/16.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Search,Sort,and Pagenation
16
1度で1ページに複数レコードを表示させる
パフォーマンスとメンテナンス性
![Page 17: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/17.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Search,Sort,and Pagenation
17
![Page 18: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/18.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
Search,Sort,and Pagenation
18
![Page 19: 5 TSPN_Write Apex and Visualforce Using Re-usable Patterns](https://reader033.fdocument.pub/reader033/viewer/2022042623/54b7471f4a7959012f8b4597/html5/thumbnails/19.jpg)
Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved. Copyright © 2011 TerraSky Co.,Ltd. All Rights Reserved.
ご清聴ありがとうございました
19