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

public Class SQLResultSetMapping

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .List, .Iterator, org.eclipse.persistence.internal.localization.ExceptionLocalization

Purpose: Concrete class to represent the SQLResultSetMapping structure as defined by the EJB 3.0 Persistence specification. This class is used by the ResultSetMappingQuery and is a component of the EclipsepLink Project

Author
Gordon Yorke
Since
TopLink Java Essentials
See Also
org.eclipse.persistence.sessions.Project

Field Summary

Modifier and TypeField and Description
protected String
name

Stores the name of this SQLResultSetMapping.

protected List<SQLResult>
results

Stores the list of SQLResult in the order they were added to the Mapping

Constructor Summary

AccessConstructor and Description
public
SQLResultSetMapping(Class<?> resultClass)

Defaulting constructor.

public

Method Summary

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

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

public String
public List<SQLResult>
getResults()

Accessor for the internally stored list of ColumnResult.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
protected String name

Stores the name of this SQLResultSetMapping. This name is unique within The project.

resultsback to summary
protected List<SQLResult> results

Stores the list of SQLResult in the order they were added to the Mapping

Constructor Detail

SQLResultSetMappingback to summary
public SQLResultSetMapping(Class<?> resultClass)

Defaulting constructor. Will set the name to the result class name and add an EntityResult for the result class.

SQLResultSetMappingback to summary
public SQLResultSetMapping(String name)

Method Detail

addResultback to summary
public void addResult(SQLResult result)
convertClassNamesToClassesback to summary
public void convertClassNamesToClasses(ClassLoader classLoader)

INTERNAL: Convert all the class-name-based settings in this SQLResultSetMapping 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.

getNameback to summary
public String getName()
getResultsback to summary
public List<SQLResult> getResults()

Accessor for the internally stored list of ColumnResult. Calling this method will result in a collection being created to store the ColumnResult