public class FieldResult
extends java.lang.Object
implements java.io.Serializable
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.
EntityResult
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.lang.String |
attributeName
Stores the name of the bean attribute
|
protected org.eclipse.persistence.internal.helper.DatabaseField |
column
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 and Description |
---|
FieldResult(java.lang.String attributeName,
org.eclipse.persistence.internal.helper.DatabaseField column) |
FieldResult(java.lang.String attributeName,
java.lang.String columnName) |
Modifier and Type | Method and Description |
---|---|
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() |
org.eclipse.persistence.internal.helper.DatabaseField |
getColumn() |
java.util.Vector<FieldResult> |
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
|
protected java.lang.String attributeName
protected java.lang.String[] multipleFieldIdentifiers
protected org.eclipse.persistence.internal.helper.DatabaseField column
public FieldResult(java.lang.String attributeName, java.lang.String columnName)
public FieldResult(java.lang.String attributeName, org.eclipse.persistence.internal.helper.DatabaseField column)
public java.lang.String getAttributeName()
public org.eclipse.persistence.internal.helper.DatabaseField getColumn()
public java.lang.Object getValueFromRecord(DatabaseRecord record)
public java.util.Vector<FieldResult> getFieldResults()
public java.lang.String[] getMultipleFieldIdentifiers()
public void add(FieldResult newFieldResult)