EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.queries
Class FieldResult

java.lang.Object
  extended by org.eclipse.persistence.queries.FieldResult

public class FieldResult
extends java.lang.Object

Purpose: Concrete class to represent the FieldResult structure as defined by the EJB 3.0 Persistence specification. This class is a subcomponent of the EntityResult.

See Also:
EntityResult
Author:
Gordon Yorke
Since:
TopLink Java Essentials

Field Summary
protected  java.lang.String attributeName
          Stores the name of the bean attribute
protected  java.lang.String columnName
          Stores the Columns name from the result set that contains the attribute value
protected  java.lang.String[] multipleFieldIdentifiers
          Stores passed in field name split on the '.' character
 
Constructor Summary
FieldResult(java.lang.String attributeName, java.lang.String column)
           
 
Method Summary
 void add(FieldResult newFieldResult)
          INTERNAL: This method is used to support mapping multiple fields, fields are concatenated/added to one fieldResult.
 java.lang.String getAttributeName()
           
 java.lang.String getColumnName()
           
 java.util.Vector getFieldResults()
          INTERNAL:
 java.lang.String[] getMultipleFieldIdentifiers()
          INTERNAL:
 java.lang.Object getValueFromRecord(DatabaseRecord record)
          INTERNAL: This method is a convenience method for extracting values from Results
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeName

protected java.lang.String attributeName
Stores the name of the bean attribute


multipleFieldIdentifiers

protected java.lang.String[] multipleFieldIdentifiers
Stores passed in field name split on the '.' character


columnName

protected java.lang.String columnName
Stores the Columns name from the result set that contains the attribute value

Constructor Detail

FieldResult

public FieldResult(java.lang.String attributeName,
                   java.lang.String column)
Method Detail

getAttributeName

public java.lang.String getAttributeName()

getColumnName

public java.lang.String getColumnName()

getValueFromRecord

public java.lang.Object getValueFromRecord(DatabaseRecord record)
INTERNAL: This method is a convenience method for extracting values from Results


getFieldResults

public java.util.Vector getFieldResults()
INTERNAL:


getMultipleFieldIdentifiers

public java.lang.String[] getMultipleFieldIdentifiers()
INTERNAL:


add

public void add(FieldResult newFieldResult)
INTERNAL: This method is used to support mapping multiple fields, fields are concatenated/added to one fieldResult.


EclipseLink 1.2.0, build 'v20091016-r5565' API Reference