org.apache.cayenne.query
Class SQLResultSetMapping

java.lang.Object
  extended by org.apache.cayenne.query.SQLResultSetMapping

public class SQLResultSetMapping
extends Object

A metadata object that defines how a DataRow can be converted to result objects. This object provides mapping in a JPA-compilant manner, i.e. the DataRow is mapped either to a single Object or an Object[]. Each object (single result object or an array element object) can be a scalar or a Persistent object.

Since:
3.0
Author:
Andrus Adamchik

Field Summary
protected  List columnResults
           
protected  String name
           
 
Constructor Summary
SQLResultSetMapping()
           
SQLResultSetMapping(String name)
           
 
Method Summary
 void addColumnResult(String column)
          Adds a result set column name to the mapping.
 List getColumnResults()
          Returns a collection of mapped columns.
 String getName()
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

columnResults

protected List columnResults
Constructor Detail

SQLResultSetMapping

public SQLResultSetMapping()

SQLResultSetMapping

public SQLResultSetMapping(String name)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getColumnResults

public List getColumnResults()
Returns a collection of mapped columns.


addColumnResult

public void addColumnResult(String column)
Adds a result set column name to the mapping.



Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.