<cfcomponent hint="I am the base Gateway object for the object. I am generated. DO NOT EDIT ME (but feel free to delete me)." extends="reactor.base.abstractGateway" > <cfset variables.signature = "" /> <cffunction name="getAll" access="public" hint="I return all rows from the table." output="false" returntype="any" _returntype="query"> <cfargument name="sortByFieldList" hint="I am a comma sepeared list of fields to sort this query by." required="no" type="any" _type="string" default="" /> <cfreturn getByFields(sortByFieldList=arguments.sortByFieldList) /> </cffunction> <cffunction name="getByFields" access="public" hint="I return all matching rows from the table." output="false" returntype="any" _returntype="query"> <cfargument name="" hint="If provided, I match the provided value to the field in the object." required="no" type="any" _type="string" /> <cfargument name="" hint="If provided, I match the provided value to the read only field in the object." required="no" type="any" _type="string" /> <cfargument name="sortByFieldList" hint="I am a comma sepeared list of fields to sort this query by." required="no" type="any" _type="string" default="" /> <cfset var Query = createQuery() /> <cfset var Where = Query.getWhere() /> <cfset var x = 0 /> <cfif structKeyExists(arguments, '')> <cfset Where.isEqual(_getAlias(), "", arguments.) /> </cfif> <cfif structKeyExists(arguments, '')> <cfset Where.isEqual("ReactorReadOnly", "", arguments.) /> </cfif> <cfloop list="#arguments.sortByFieldList#" index="x"> <cfset Query.getOrder().setAsc("", trim(x)) /> </cfloop> <cfreturn getByQuery(Query,true) /> </cffunction> <!--- deleteByFields ---> <cffunction name="deleteByFields" access="public" hint="I delete all matching rows from the object." output="false" returntype="void"> <cfargument name="" hint="If provided, I match the provided value to the field in the object." required="no" type="any" _type="string" /> <cfset var Query = createQuery() /> <cfset var Where = Query.getWhere() /> <cfif structKeyExists(arguments, '')> <cfset Where.isEqual(_getAlias(), "", arguments.) /> </cfif> <cfset deleteByQuery(Query,true) /> <cfreturn /> </cffunction> </cfcomponent>