org.gusdb.wdk.model.jspwrap
Class RecordBean

java.lang.Object
  extended by org.gusdb.wdk.model.jspwrap.RecordBean

public class RecordBean
extends java.lang.Object

A wrapper on a RecordInstance that provides simplified access for consumption by a view


Constructor Summary
RecordBean(RecordInstance recordInstance)
           
 
Method Summary
 void assignPrimaryKey(java.lang.String projectID, java.lang.String key)
          used by the controller.
 java.util.Map getAttributes()
           
 java.util.Map getNestedRecordLists()
           
 java.util.Map getNestedRecords()
           
 PrimaryKeyValue getPrimaryKey()
          modified by Jerric
 RecordClassBean getRecordClass()
           
 java.lang.String[] getSummaryAttributeNames()
           
 java.util.Map getTables()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordBean

public RecordBean(RecordInstance recordInstance)
Method Detail

getPrimaryKey

public PrimaryKeyValue getPrimaryKey()
modified by Jerric

Returns:

getRecordClass

public RecordClassBean getRecordClass()

getSummaryAttributeNames

public java.lang.String[] getSummaryAttributeNames()

getNestedRecords

public java.util.Map getNestedRecords()

getNestedRecordLists

public java.util.Map getNestedRecordLists()

getAttributes

public java.util.Map getAttributes()
Returns:
Map of attributeName --> AttributeFieldValue

getTables

public java.util.Map getTables()
Returns:
Map of tableName --> TableFieldValue

assignPrimaryKey

public void assignPrimaryKey(java.lang.String projectID,
                             java.lang.String key)
                      throws WdkModelException
used by the controller. Modified by Jerric

Parameters:
projectID -
key -
Throws:
WdkModelException