Grid Data Type

Generic grid data structure. The data structure is mostly adapted to the jQgrid json format, but it can be adapted to any reasonable grid library, with a little effort. The optimal way to handle this would be with generics, just passing in the domain object name into an . . . . But Wait! JaxB doesn't really know what to do with generic declarations on its xml elements, so we do the next best thing. Every time we want to create a new grid instance, we create a new subclass and reimplement nearly identical functionality, but with a few small changes. Those changes being the pojo class we use for the rows property, and the buildRows function that we use to populate rows, That really should be the only change in the subclasses. If somewhere down the road, someone finds a way to easily mashall generics through Jaxb, the buildrows functionality could easily be promoted up here.

Abstract Type
HelpdeskGrid, GdsScriptGrid, ItinerarySavingsGrid, TravelerGrid, PlannerGroupGrid, ProfileAnalyticGrid
name data type description
total number The total number of pages returned
page number The current page
records number The total number of records
rowIds array of number Row ids of every row on every page


This data type is abstract. The example below may be incomplete. More accurate examples can be found in subtypes pages.
  "total" : 12345,
  "page" : 12345,
  "records" : 12345,
  "rowIds" : [ 12345, 12345 ]