Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 651

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
</cfif>
<cfelse><!----Conflict--->
<cflog text = "is a conflict">
<cfset conflict = CreateObject("component","CFIDE.AIR.conflict")>
<cfset conflict.serverobject = serverobject>
<cfset conflict.clientobject = clientobject>
<cfset conflict.originalobject = originalobject>
<cfset conflict.operation = operation>
<cfset conflicts[conflictcount++] = conflict>
<cfcontinue>
</cfif>
</cfif>
</cfloop>
<cfif conflictcount gt 1>
<cfreturn conflicts>
</cfif>
</cffunction>
</cfcomponent>
Offline AIR application support in ColdFusion 9.0.1
The AIR integration feature introduced in ColdFusion 9 has an ActionScript ORM for persisting entities in the SQLite
database present within Adobe Integrated Runtime (AIR). This release has the following enhancements for this
ActionScript ORM:
• Support for auto-generating primary keys
• Support for encrypted database (introduced in AIR 1.5).
• Cache file used by ActionScript ORM to track the operations on SQLite database is now in the
applicationStoragedirectory instead of applicationDirectory. You can specify the location of the cahceDirectory in
openSession API on syncmanager.
• Supports Self Join relationships for one-to-one, one-to-many, and many-to-many database relationships.
• Supports both Array and ArrayCollection for use in ActionScript Entity to represent a collection in a database
relationship.
• ActionScript ORM logs all the SQL statements that ORM uses to persist entities into the SQLite database.
• New APIs
keepClientObject
when ColdFusion server raises conflict.
• The class
SessionToken
• Supports autocommit mode
Auto-generating primary keys
This release supports primary key generation for the ActionScript ORM using the metadata tag
GeneratedValue
Description
Adding this tag on an ActionScript primary key file auto-generates primary key.
<cfset EntityDelete(obj)>
and
keepAllClientObjects
is dynamic and therefore, data can be stored on the token returned from the ORM APIs.
Last updated 1/20/2012
to ensure that the server updates are not retained
646
.
GeneratedValue

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents