cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Closed: (CAY-1136) "Compiled" EntityResult ; Switch SelectQuery processing to use EntityResult
Date Mon, 01 Dec 2008 10:01:11 GMT


Andrus Adamchik closed CAY-1136.

    Resolution: Won't Fix

per CAY-1140 JDBCResultIterator produces rows that map 1:1 to an ObjEntity with an entity
name attached. We just need to extend that to horizontal inheritance processing.

> "Compiled" EntityResult ; Switch SelectQuery processing to use EntityResult
> ---------------------------------------------------------------------------
>                 Key: CAY-1136
>                 URL:
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
> Related to the inheritance tasks (CAY-795)... We need a way to process all different
forms of DataRows that inheritance select queries require. Till now Cayenne worked with DataRows
that represented a single entity and used DbAttribute names as keys to the values. 
> There were a few exceptions that were handled by "normalization" process during object
creation. I want this to exception to become a rule, and abstract normalization process via
EntityResult, "compiled" in the ClassDescriptor. So for the old style rows , normalization
will be a noop (encapsulated in an EntityResult), and for the rows using special column naming
and extra meta-columns (such as in case of horizontal inheritance), there will be a conversion
process involved.
> Also the plan is to use EntityResult in SELECT ... clause column name generation, including
UNION queries under horizontal inheritance.
> [Finally going forward (will not be done under this Jira, or maybe not even in 3.0),
we may migrate to array-based positional DataRows instead of a current Map-based. Per CAY-999
this should provide huge memory savings, and preclude the need for "normalization".] 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message