Package org.eclipse.persistence.queries
Class SQLResult
- java.lang.Object
-
- org.eclipse.persistence.queries.SQLResult
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ColumnResult,ConstructorResult,EntityResult
public abstract class SQLResult extends java.lang.Object implements java.io.SerializablePurpose: An abstract superclass that represents the commonalities between the main result types of the SQLResultSetMapping
- See Also:
EntityResult,ColumnResult,ConstructorResult, Serialized Form- Author:
- Gordon Yorke
- Since:
- TopLink Java Essentials
-
-
Field Summary
Fields Modifier and Type Field Description protected SQLResultSetMappingsqlResultSetMapping
-
Constructor Summary
Constructors Constructor Description SQLResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconvertClassNamesToClasses(java.lang.ClassLoader classLoader)INTERNAL: Convert all the class-name-based settings in this SQLResult to actual class-based settings.SQLResultSetMappinggetSQLResultMapping()INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.abstract java.lang.ObjectgetValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)INTERNAL: This method is a convenience method for extracting values from ResultsbooleanisColumnResult()Return true if this is a column result.booleanisConstructorResult()Return true if this is a constructor result.booleanisEntityResult()Return true if this is an entity result.voidsetSQLResultMapping(SQLResultSetMapping mapping)INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.
-
-
-
Field Detail
-
sqlResultSetMapping
protected SQLResultSetMapping sqlResultSetMapping
-
-
Method Detail
-
convertClassNamesToClasses
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this SQLResult 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.- Parameters:
classLoader-
-
getSQLResultMapping
public SQLResultSetMapping getSQLResultMapping()
INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.
-
isColumnResult
public boolean isColumnResult()
Return true if this is a column result.
-
isConstructorResult
public boolean isConstructorResult()
Return true if this is a constructor result.
-
isEntityResult
public boolean isEntityResult()
Return true if this is an entity result.
-
setSQLResultMapping
public void setSQLResultMapping(SQLResultSetMapping mapping)
INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.
-
getValueFromRecord
public abstract java.lang.Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
INTERNAL: This method is a convenience method for extracting values from Results
-
-