- ColdFusion 9 Developer Tutorial
- John Farrar
- 187字
- 2021-08-05 16:16:36
Chapter 2. Basic CFCs and Database Interaction
All of the major software platforms have different forms of objects. In ColdFusion, these are called ColdFusion Components (CFCs). CFCs let us package up and reuse code in ways that will make our development much easier. Our approach in this book will be to learn by doing. In this chapter, we will learn by building the start of a simple shopping system. We will also learn to work with databases. Let's start learning the easier way to write software with CFCs. The following is a list of the contents that will be covered in this chapter:
- The ColdFusion object called CFC
- Making objects/CFCs come alive with methods
- The difference between a class and the objects created from the CFC
- Using an object constructor
- Protecting the inner characteristics of objects with getters and setters
- Connecting to a database through the internal methods of our object/CFCs
- A variable structure called a "query", which is used to hold query recordsets
- Controlling different types of variables returned from methods
- Keeping our CFCs thread-safe, when multiple users are running the same code segments
推薦閱讀
- AutoCAD 2010中文版基礎教程(第2版)
- Word-Excel-PowerPoint 2010三合一從新手到高手(超值版)
- Midjourney AI繪畫藝術創作教程:關鍵詞設置、藝術家與風格應用175例
- Excel 數據處理與分析實例教程(第2版)
- UG NX 9.0中文版 基礎教程 (UG工程師成才之路)
- Joomla! Social Networking with JomSocial
- After Effects CC 2018影視特效與合成案例教程
- 剪映視頻后期剪輯零基礎入門到精通
- Premiere CC視頻編輯入門與應用
- Photoshop CC入門與提高(超值版)
- Unity 3D游戲開發(第2版)
- 科技繪圖/科研論文圖/論文配圖設計與創作自學手冊:科研動畫篇
- 中文版Illustrator CC完全自學教程
- Flash with Drupal
- 中文版Photoshop CS6實用教程(第2版)