Package org.eclipse.persistence.queries
Class FieldResult
- java.lang.Object
-
- org.eclipse.persistence.queries.FieldResult
-
- All Implemented Interfaces:
java.io.Serializable
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.
- See Also:
EntityResult
, Serialized Form- Author:
- Gordon Yorke
- Since:
- TopLink Java Essentials
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
attributeName
Stores the name of the bean attributeprotected org.eclipse.persistence.internal.helper.DatabaseField
column
Stores the Columns name from the result set that contains the attribute valueprotected java.lang.String[]
multipleFieldIdentifiers
Stores passed in field name split on the '.' character
-
Constructor Summary
Constructors Constructor Description FieldResult(java.lang.String attributeName, java.lang.String columnName)
FieldResult(java.lang.String attributeName, org.eclipse.persistence.internal.helper.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.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
-
-
-
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
-
column
protected org.eclipse.persistence.internal.helper.DatabaseField column
Stores the Columns name from the result set that contains the attribute value
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
-
getColumn
public org.eclipse.persistence.internal.helper.DatabaseField getColumn()
-
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<FieldResult> 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.
-
-