Whatever message this page gives is out now! Go check it out!

ObjectEquals

Last update:
May 18, 2026

Description

Identifies any conflict between CFC instances on the client and the server.

Returns

Category

Function Syntax

objectEquals( Param1 ,Param2)

See Also

Conflict management in Developing ColdFusion Applications.

Parameters

Parameter
Description
param 1
New instance of the CFC on the client.
param 2
Original instance of the CFC.

Example

<cfset isNotConflict = ObjectEquals(originalobject, serverobject)> 
<cfif isNotConflict> 
<cfif operation eq "UPDATE"> 
<cfset obj = ORMGetSession().merge(clientobject)> 
<cfset EntitySave(obj)> 
<cfelseif operation eq "DELETE"> 
<cfset obj = ORMGetSession().merge(originalobject)> 
<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[conflictcount++] = conflict> 
<cfcontinue>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page