|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.cartridge.model.Record
public class Record
A generic data record that could represent a single record or an aggregate record.
A single record has attribute values and potentially a RecordAction to make a record detail request.
An aggregate record is composed of multiple single Records that have the
same roll-up key (a property or dimension name). Records in the aggregate record
can be accessed by getRecords()
. The "representative" record attributes and
details action can be accessed by getAttributes()
and getDetailsAction()
respectively.
RecordDetailsHandler
,
RecordSpotlightHandler
Constructor Summary | |
---|---|
Record()
|
Method Summary | |
---|---|
Map<String,Attribute> |
getAttributes()
Record attribute (property and dimension) values, indexed by name string. |
RecordAction |
getDetailsAction()
|
long |
getNumRecords()
If aggregate record is enabled, gets the total number of records in the aggregate. |
List<Record> |
getRecords()
If aggregate records is enabled, retrieves the list of Records in this aggregate. |
void |
setAttributes(Map<String,Attribute> attributes)
Sets the attributes for this record. |
void |
setDetailsAction(RecordAction detailsAction)
Sets the detail action of this record. |
void |
setNumRecords(long numRecsInAggregate)
Sets the number of aggregate records of this record. |
void |
setRecords(List<Record> records)
Sets the list containing the children of this record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Record()
Method Detail |
---|
public Map<String,Attribute> getAttributes()
ResultsListConfig.setSubRecordsPerAggregateRecord(com.endeca.infront.navigation.model.SubRecordsPerAggregateRecord)
),
then only derived attributes will be returned.
public void setAttributes(Map<String,Attribute> attributes)
attributes
- a map containing the attributes of this recordpublic RecordAction getDetailsAction()
public void setDetailsAction(RecordAction detailsAction)
detailsAction
- the details actionpublic List<Record> getRecords()
public void setRecords(List<Record> records)
records
- the list with the children of this recordpublic long getNumRecords()
getRecords()
depending
on query parameters.
public void setNumRecords(long numRecsInAggregate)
numRecsInAggregate
- the total number of records in the aggregate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |