
646
DEVELOPING
COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Las
t
upda
te
d 8/5/2010
<cfset EntityDelete(obj)>
</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[confli+] = 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
and
keepAllClientObjects
to ensure that the server updates are not retained
when ColdFusion server raises conflict.
•
The class
SessionToken
is dynamic and therefore, data can be stored on the token returned from the ORM APIs.
•
Supports autocommit mode
Auto-generating primary keys
This release supports primary key generation for the ActionScript ORM using the metadata tag
GeneratedValue
.
GeneratedValue
Description
Adding this tag on an ActionScript primary key file auto-generates primary key.
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...