Data object

The AIR application represents the managed data in an ActionScript object that corresponds to the ColdFusion-side data CFC. For example, in the Employee example, the AIR application has an Employee.as file containing an Employee ActionScript class that corresponds to ColdFusion employee.cfc:

package test.basic 
    { 
        [Bindable] 
        [RemoteClass(alias="AIRIntegration.employee")] 
        [Entity] 
        public class Employee 
        { 
        /** The user id of the employee **/ 
        [Id] 
        public var id:int; 
        public var firstName : String; 
        public var lastName : String; 
        public var displayName : String; 
        .... 
        public var countryCode : String = 'US'; 
        .... 
        } 
Note: You do not need to create any SQLite databases or tables; they are created automatically. For example, once the Employee class is defined as above, the first time you invoke the class, the equivalent SQLite table is created for server data persistence.