com.arsdigita.bebop.table
Interface TableModelBuilder

All Superinterfaces:
Lockable
All Known Implementing Classes:
AbstractTableModelBuilder, DataTable.DataBuilderAdapter

public interface TableModelBuilder
extends Lockable

Builds the request-specific table models. A table retrieves the data it displays by asking the table model builder for a table model. This is done for each request; the table does not cahce table models across requests. If such caching is desired, it has to be performed by the table model builder.

Typically, the table model builder will run a database query based on the information contained in the page state and return the result of the database query by wrapping it in a table model. The table will then traverse the table model during rendering.

The table model builder is automatically locked by the table to which it was added either through one of the Table constructors or with a call to Table.setModelBuilder(com.arsdigita.bebop.table.TableModelBuilder).

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/table/TableModelBuilder.java#7 $
Author:
David Lutterkort
See Also:
Table, TableModel

Field Summary
static String versionId
           
 
Method Summary
 TableModel makeModel(Table t, PageState s)
          Return a table model for the request represented by s.
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

makeModel

public TableModel makeModel(Table t,
                            PageState s)
Return a table model for the request represented by s. The table model contains all the data that is to be displayed in a table. The returned table model is used only during the duration of that request.

Parameters:
t - the table which will use this table model
s - represents the current request
Returns:
the data to be displayed in the table


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC