org.apache.cayenne.query
Class SQLResultSetMapping
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
columnResults
protected List columnResults
SQLResultSetMapping
public SQLResultSetMapping()
SQLResultSetMapping
public SQLResultSetMapping(String name)
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.