com.scooterframework.orm.activerecord
Class ReferenceDataRecord

java.lang.Object
  extended by com.scooterframework.orm.activerecord.ReferenceDataRecord
All Implemented Interfaces:
ReferenceData, java.io.Serializable

public class ReferenceDataRecord
extends java.lang.Object
implements ReferenceData

ReferenceDataRecord class

See Also:
Serialized Form

Constructor Summary
ReferenceDataRecord(java.lang.String entity, java.lang.String keyFieldName, java.lang.String valueFieldName, ActiveRecord record)
           
ReferenceDataRecord(java.lang.String entity, java.lang.String keyFieldName, java.lang.String valueFieldName, RowData row)
           
 
Method Summary
 java.lang.Object getFieldData(java.lang.String fieldName)
          Returns data for a field
 java.lang.Object getKeyData()
          Returns key field data
 java.lang.String getKeyName()
          Returns key field name
 java.lang.Object getValueData()
          Returns value field data
 java.lang.String getValueName()
          Returns value field name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceDataRecord

public ReferenceDataRecord(java.lang.String entity,
                           java.lang.String keyFieldName,
                           java.lang.String valueFieldName,
                           ActiveRecord record)

ReferenceDataRecord

public ReferenceDataRecord(java.lang.String entity,
                           java.lang.String keyFieldName,
                           java.lang.String valueFieldName,
                           RowData row)
Method Detail

getFieldData

public java.lang.Object getFieldData(java.lang.String fieldName)
Returns data for a field

Specified by:
getFieldData in interface ReferenceData
Parameters:
fieldName - field name
Returns:
Object data for the field

getKeyName

public java.lang.String getKeyName()
Returns key field name

Specified by:
getKeyName in interface ReferenceData
Returns:
String key field name

getKeyData

public java.lang.Object getKeyData()
Returns key field data

Specified by:
getKeyData in interface ReferenceData
Returns:
Object key field data

getValueName

public java.lang.String getValueName()
Returns value field name

Specified by:
getValueName in interface ReferenceData
Returns:
String value field name

getValueData

public java.lang.Object getValueData()
Returns value field data

Specified by:
getValueData in interface ReferenceData
Returns:
Object value field data

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object