Serializing objects


show more Serializing objects provides you with in-depth training on Developer. Taught by Daniel Short as part of the ColdFusion 9 New Features show less
please wait ...

Serializing objects

This next feature is to me one of the most exciting features in ColdFusion 9, but probably won't be talked about much. In this video, I am going to show you how a complex object can be serialized to a binary representation of that object and then save to disk or database, or any other persistent medium where it can then be picked up and used elsewhere. This has uses when you're dealing with objects that you only need to instantiate occasionally. You may have a long spin up time or when you need to save the state of something for use later on in an application. So, in the Chapter 4 folder, we'll open serialized.CFM.

Now the only thing I'm doing here is instantiating an instance of the person CFC and setting some data, the first name, last name, city and state. My person CFC here is the same one we worked with in another video, which just has a few getters and setters. We will go ahead at the accessors = "true" on here, so we have all of our getters and setters avail...

Serializing objects
Video duration: 6m 6s 2h 40m Intermediate

Viewers:

Serializing objects provides you with in-depth training on Developer. Taught by Daniel Short as part of the ColdFusion 9 New Features

Subjects:
Developer Web
Software:
ColdFusion
Author:
please wait ...