Package org.eclipse.persistence.queries
Class FieldResult
- java.lang.Object
-
- org.eclipse.persistence.queries.FieldResult
-
- All Implemented Interfaces:
Serializable
public class FieldResult extends Object implements 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.
- Since:
- TopLink Java Essentials
- Author:
- Gordon Yorke
- See Also:
EntityResult
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
attributeName
Stores the name of the bean attributeprotected DatabaseField
column
Stores the Columns name from the result set that contains the attribute valueprotected String[]
multipleFieldIdentifiers
Stores passed in field name split on the '.' character
-
Constructor Summary
Constructors Constructor Description FieldResult(String attributeName, String columnName)
FieldResult(String attributeName, DatabaseField column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FieldResult newFieldResult)
INTERNAL: This method is used to support mapping multiple fields, fields are concatenated/added to one fieldResult.String
getAttributeName()
DatabaseField
getColumn()
Vector<FieldResult>
getFieldResults()
INTERNAL:String[]
getMultipleFieldIdentifiers()
INTERNAL:Object
getValueFromRecord(DatabaseRecord record)
INTERNAL: This method is a convenience method for extracting values from Results
-
-
-
Field Detail
-
attributeName
protected String attributeName
Stores the name of the bean attribute
-
multipleFieldIdentifiers
protected String[] multipleFieldIdentifiers
Stores passed in field name split on the '.' character
-
column
protected DatabaseField column
Stores the Columns name from the result set that contains the attribute value
-
-
Constructor Detail
-
FieldResult
public FieldResult(String attributeName, DatabaseField column)
-
-
Method Detail
-
getAttributeName
public String getAttributeName()
-
getColumn
public DatabaseField getColumn()
-
getValueFromRecord
public Object getValueFromRecord(DatabaseRecord record)
INTERNAL: This method is a convenience method for extracting values from Results
-
getFieldResults
public Vector<FieldResult> getFieldResults()
INTERNAL:
-
getMultipleFieldIdentifiers
public 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.
-
-