FileDocCategorySizeDatePackage
SQLResultSetMapping.javaAPI DocGlassfish v2 API4159Tue May 22 16:54:50 BST 2007oracle.toplink.essentials.queryframework

SQLResultSetMapping

public class SQLResultSetMapping extends Object

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 TopLink Project

see
oracle.toplink.essentials.sessions.Project
author
Gordon Yorke
since
TopLink Java Essentials

Fields Summary
protected String
name
Stores the name of this SQLResultSetMapping. This name is unique within The project.
protected List
results
Stores the list of SQLResult in the order they were added to the Mapping
Constructors Summary
public SQLResultSetMapping(String name)

        this.name = name;
        if (this.name == null){
            throw new IllegalArgumentException(ExceptionLocalization.buildMessage("null_value_in_sqlresultsetmapping"));
        }
    
Methods Summary
public voidaddResult(oracle.toplink.essentials.queryframework.SQLResult result)

        if (result == null){
            return;
        }
        getResults().add(result);
    
public voidconvertClassNamesToClasses(java.lang.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.

param
classLoader

        Iterator iterator = getResults().iterator();
        while (iterator.hasNext()){
            ((SQLResult)iterator.next()).convertClassNamesToClasses(classLoader);
        }
    
public java.lang.StringgetName()

        return this.name;
    
public java.util.ListgetResults()
Accessor for the internally stored list of ColumnResult. Calling this method will result in a collection being created to store the ColumnResult

        if (this.results == null){
            this.results = new ArrayList();
        }
        return this.results;