Top Description Fields Constructors Methods
org.eclipse.persistence.queries

public abstract Class SQLResult

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.eclipse.persistence.queries.ColumnResult, org.eclipse.persistence.queries.ConstructorResult, org.eclipse.persistence.queries.EntityResult
Imports
java.io.Serializable, org.eclipse.persistence.sessions.DatabaseRecord

Purpose: An abstract superclass that represents the commonalities between the main result types of the SQLResultSetMapping

Author
Gordon Yorke
Since
TopLink Java Essentials
See Also
EntityResult, ColumnResult, ConstructorResult

Field Summary

Modifier and TypeField and Description
protected SQLResultSetMapping

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
convertClassNamesToClasses(ClassLoader classLoader)

INTERNAL: Convert all the class-name-based settings in this SQLResult to actual class-based settings.

public SQLResultSetMapping
getSQLResultMapping()

INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.

public abstract Object
getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)

INTERNAL: This method is a convenience method for extracting values from Results

public boolean
isColumnResult()

Return true if this is a column result.

public boolean
isConstructorResult()

Return true if this is a constructor result.

public boolean
isEntityResult()

Return true if this is an entity result.

public void
setSQLResultMapping(SQLResultSetMapping mapping)

INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sqlResultSetMappingback to summary
protected SQLResultSetMapping sqlResultSetMapping

Constructor Detail

SQLResultback to summary
public SQLResult()

Method Detail

convertClassNamesToClassesback to summary
public void convertClassNamesToClasses(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.

getSQLResultMappingback to summary
public SQLResultSetMapping getSQLResultMapping()

INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.

getValueFromRecordback to summary
public abstract Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)

INTERNAL: This method is a convenience method for extracting values from Results

isColumnResultback to summary
public boolean isColumnResult()

Return true if this is a column result.

isConstructorResultback to summary
public boolean isConstructorResult()

Return true if this is a constructor result.

isEntityResultback to summary
public boolean isEntityResult()

Return true if this is an entity result.

setSQLResultMappingback to summary
public void setSQLResultMapping(SQLResultSetMapping mapping)

INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.