public class ResultDesc extends Object
| Constructor and Description |
|---|
ResultDesc(ClassDesc config,
int aggregateResultType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(LocalFieldDesc fieldDesc,
ColumnRef columnRef,
boolean projection)
Create and add a ResultFieldDesc for the given fieldDesc and columnRef.
|
void |
doJoin(ResultDesc foreignResult,
ForeignFieldDesc parentField)
Joins foreignResult with this resultDesc
|
Object |
getResult(PersistenceManager pm,
ResultSet resultData)
Materialize data from the result set into objects.
|
void |
setParentField(ForeignFieldDesc parentField)
Set the field that is the recipient of the result of this ResultDesc.
|
void |
setPrefetching() |
public ResultDesc(ClassDesc config, int aggregateResultType)
public void addField(LocalFieldDesc fieldDesc, ColumnRef columnRef, boolean projection)
fieldDesc - - the field descriptor for the field that is the recipient of
the result value indicated by the columnRef.columnRef - - indicates which column in the resultset contains the value.projection - - indicates whether the column is a projectionpublic void setPrefetching()
public void setParentField(ForeignFieldDesc parentField)
parentField - - field descriptor for the recipient field of the value
of this ResultDesc.public Object getResult(PersistenceManager pm, ResultSet resultData) throws SQLException
pm - - the PersistenceManager responsible for instantiating objectsresultData - - JDBC ResultSet containing the data to be materializedSQLExceptionpublic void doJoin(ResultDesc foreignResult, ForeignFieldDesc parentField)
foreignResult - the foreign ResultDescparentField - parentField for the foreind ResultDescCopyright © 2017. All rights reserved.