ColdFusion 9.0 Resources |
EntityLoad with entityname, filtercriteria, and sortorderDescriptionLoads and returns an array of entities that satisfy the filtercriteria that is sorted as specified by the sortorder parameter. ReturnsArray (by default) CategoryFunction Syntaxentityload(entityname, filtercriteria, sortorder [, options]) See AlsoEntityLoad with entityname, EntityLoad with entityname and ID, EntityLoad with entityname and filtercritieria Parameters
UsageOptions available with the sortorder parameter are:
Note: Maxresults and timeout are
used for pagination.
ExamplesTo retrieve objects whose country is UK, and sorted by Department ascending and Age descending: <cfset employeesInUKSorted = EntityLoad('employee', {country="UK"}, "Department Asc, Age Desc")> |