Top Description Fields Constructors Methods
org.eclipse.persistence.queries

public Class FieldResult

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, org.eclipse.persistence.internal.helper.DatabaseField, org.eclipse.persistence.internal.localization.ExceptionLocalization, org.eclipse.persistence.sessions.DatabaseRecord

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.

Author
Gordon Yorke
Since
TopLink Java Essentials
See Also
EntityResult

Field Summary

Modifier and TypeField and Description
protected String
attributeName

Stores the name of the bean attribute

protected DatabaseField
column

Stores the Columns name from the result set that contains the attribute value

pack-priv Vector<FieldResult>
fieldResults

FieldResult now can contain multiple FieldResults in a collection if an attribute has multiple fields

protected String[]
multipleFieldIdentifiers

Stores passed in field name split on the '.' character

Constructor Summary

AccessConstructor and Description
public
FieldResult(String attributeName, String columnName)

public
FieldResult(String attributeName, DatabaseField column)

Method Summary

Modifier and TypeMethod and Description
public void
add(FieldResult newFieldResult)

INTERNAL: This method is used to support mapping multiple fields, fields are concatenated/added to one fieldResult.

public String
public DatabaseField
public Vector<FieldResult>
getFieldResults()

INTERNAL:

public String[]
public Object
getValueFromRecord(DatabaseRecord record)

INTERNAL: This method is a convenience method for extracting values from Results

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeNameback to summary
protected String attributeName

Stores the name of the bean attribute

columnback to summary
protected DatabaseField column

Stores the Columns name from the result set that contains the attribute value

fieldResultsback to summary
pack-priv Vector<FieldResult> fieldResults

FieldResult now can contain multiple FieldResults in a collection if an attribute has multiple fields

multipleFieldIdentifiersback to summary
protected String[] multipleFieldIdentifiers

Stores passed in field name split on the '.' character

Constructor Detail

FieldResultback to summary
public FieldResult(String attributeName, String columnName)
FieldResultback to summary
public FieldResult(String attributeName, DatabaseField column)

Method Detail

addback to summary
public void add(FieldResult newFieldResult)

INTERNAL: This method is used to support mapping multiple fields, fields are concatenated/added to one fieldResult.

getAttributeNameback to summary
public String getAttributeName()
getColumnback to summary
public DatabaseField getColumn()
getFieldResultsback to summary
public Vector<FieldResult> getFieldResults()

INTERNAL:

getMultipleFieldIdentifiersback to summary
public String[] getMultipleFieldIdentifiers()

INTERNAL:

getValueFromRecordback to summary
public Object getValueFromRecord(DatabaseRecord record)

INTERNAL: This method is a convenience method for extracting values from Results