Changeset 430 for trunk/testDb.cfm

Show
Ignore:
Timestamp:
4/28/2008 9:09:50 PM (3 weeks ago)
Author:
dhughes
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/testDb.cfm

    r410 r430  
    11 
    2 <cfset reactorFactory = CreateObject("Component", "reactor.reactorFactory") /> 
    3 <cfset reactorFactory.init("/config/reactor.xml") /> 
     2<cfapplication name="reactorTest" /> 
    43 
    5 <cfset CustomerGateway = reactorFactory.createGateway("Customer") /> 
     4<cfif NOT StructKeyExists(application, "reactorFactory") OR StructKeyExists(url, "reload")> 
     5        <cfset application.reactorFactory = CreateObject("Component", "reactor.reactorFactory") /> 
     6        <cfset application.reactorFactory.init("/config/reactor.xml") /> 
     7        <h1>reload</h1> 
     8</cfif> 
    69 
    7 <cfset total = 0 /> 
    8 <cfloop from="1" to="30" index="x"> 
    9         <cfset tick = getTickCount() /> 
    10         <cfset CustomerGateway.test() /> 
    11         <cfset total = total + (getTickCount()-tick) /> 
    12 </cfloop> 
     10<cfset CustomerRecord = application.reactorFactory.createRecord("foo5").load(custId=37) /> 
     11<cfset CustomerRecord.validate() /> 
    1312 
    14 avg: <cfdump var="#total/30#" /> 
     13<cfdump var="#CustomerRecord#" />