How To Handle NULL Values In Object Oriented Programming In ColdFusion

<cfcomponent>
 
	<!--- Store private varaible. --->
	<cfset VARIABLES.Value = "" />
 
 
	<cffunction
		name="Get"
		access="public"
		returntype="any"
		output="false"
		hint="Gets the property value.">
 
		<!---
			Check to see if the value exists. Since it can be
			NULL, then the value might have been erased.
		--->
		<cfif NOT StructKeyExists( VARIABLES, "Value" )>
 
			<!--- Return a NULL value. --->
			<cfreturn JavaCast( "null", 0 ) />
 
		<cfelse>
 
			<!--- Return stored value. --->
			<cfreturn VARIABLES.Value />
 
		</cfif>
	</cffunction>
 
 
	<cffunction
		name="Set"
		access="public"
		returntype="void"
		output="false"
		hint="Sets the property value.">
 
		<!--- Define arguments. --->
		<cfargument
			name="Value"
			type="any"
			required="false"
			/>
 
 
		<!---
			Check to see if the value exists. Since it can be
			NULL, then the value might have been erased.
		--->
		<cfif NOT StructKeyExists( ARGUMENTS, "Value" )>
 
			<!--- Store NULL into property. --->
			<cfset VARIABLES.Value = JavaCast( "null", 0 ) />
 
		<cfelse>
 
			<!--- Store passed in value. --->
			<cfset VARIABLES.Value = ARGUMENTS.Value />
 
		</cfif>
 
		<cfreturn />
	</cffunction>
 
</cfcomponent>

For Cut-and-Paste