Package org.eclipse.persistence.queries
Class ColumnResult
- java.lang.Object
-
- org.eclipse.persistence.queries.SQLResult
-
- org.eclipse.persistence.queries.ColumnResult
-
- All Implemented Interfaces:
java.io.Serializable
public class ColumnResult extends SQLResult
Purpose: Concrete class to represent the ColumnResult 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 org.eclipse.persistence.internal.helper.DatabaseField
column
Stores the Columns name from the result set-
Fields inherited from class org.eclipse.persistence.queries.SQLResult
sqlResultSetMapping
-
-
Constructor Summary
Constructors Constructor Description ColumnResult(java.lang.String column)
ColumnResult(org.eclipse.persistence.internal.helper.DatabaseField column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this query to actual class-based settings.org.eclipse.persistence.internal.helper.DatabaseField
getColumn()
java.lang.Object
getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
INTERNAL: This method is a convenience method for extracting values from Resultsboolean
isColumnResult()
Return true if this is a column result.-
Methods inherited from class org.eclipse.persistence.queries.SQLResult
getSQLResultMapping, isConstructorResult, isEntityResult, setSQLResultMapping
-
-
-
-
Method Detail
-
convertClassNamesToClasses
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this query to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.- Overrides:
convertClassNamesToClasses
in classSQLResult
- Parameters:
classLoader
-
-
getColumn
public org.eclipse.persistence.internal.helper.DatabaseField getColumn()
-
getValueFromRecord
public java.lang.Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
INTERNAL: This method is a convenience method for extracting values from Results- Specified by:
getValueFromRecord
in classSQLResult
-
isColumnResult
public boolean isColumnResult()
Description copied from class:SQLResult
Return true if this is a column result.- Overrides:
isColumnResult
in classSQLResult
-
-