<br><font size=2 face="sans-serif">Hi all,</font>
<br>
<br><font size=2 face="sans-serif">I need to implement (and hopefully contribute)
a custom MemberReader that generates a time dimension using a calendar.
The customer wants to see all dates even if they do not appear in the database.
The generated time members must behave as if they came from the database,
for example, if such a generated member is in the slicer, its key must
be part of the SQL where-clause when the cells (Segments) are loaded.</font>
<br>
<br><font size=2 face="sans-serif">So I sat the attribute memberReaderClass
of the hierarchy in the schema and wrote a class that implements MemberSource.
But my class was not instantiated, instead I got a NPE in RolapHierarchy.getUniqueTable()
where the relation member is null. I have not yet found the reason for
this.</font>
<br>
<br><font size=2 face="sans-serif">When browsing through the code I found
another weird thing. The class RolapCubeSqlMemberSource extends SqlMemberSource
and is instantiated directly from (No)CacheRolapCubeHierarchyMemberReader
in RolapCubeHierarchy, without checking if a custom MemberReader exists.
This code seems to be quite new (not in version 2.2.x). I dont think I
understand how/why everything (RolapMember, RolapHierarchy etc) gets wrapped
by a corresponding RolapCubeXyz version.</font>
<br>
<br><font size=2 face="sans-serif">Also probably the native crossjoin code
must be examined, if a custom member reader is involved then the native
code can not be used.<br>
</font>
<br><font size=2 face="sans-serif">Currently I'm quite lost. Is a custom
MemberReader the right way to implement the requirement? Or is it a &nbsp;relict
from long ago that won't work any more? Are there other glitches in the
code that could prevent it from function? And I dont understand the RolapCubeXyz
wrapping - should the MemberSource wrap its members or are they wrapped
later? Lots of questions ...</font>
<br>
<br><font size=2 face="sans-serif">An example of a custom MemberReader
would be great ;-) </font>
<br>
<br><font size=2 face="sans-serif">Thanks for any hints,</font>
<br><font size=2 face="sans-serif">Andreas</font>
<br>
<br>
<div style="font-family:sans-serif;font-size:10pt;">
<p><b>TONBELLER AG</b><br>
Werner-von-Siemens-Str. 2<br>
D-64625 Bensheim <br>
Germany</p>

<a href="http://www.tonbeller.com" target="_blank">www.tonbeller.com</a>

<p>Register Court: District Court Darmstadt<br>
Registration: HRB 21474<br>
Managing Board: Rutger Hetzler (CEO), Sebastian Hetzler, Torsten Mayer<br>
Chairman of the Supervisory Board: R&uuml;diger Brand</p>

<hr noshade="noshade" size="1" style="margin:20px 0px;">

<p>This message is for the designated recipient only and may contain
privileged,
proprietary, or otherwise private information. If you have received it
in error,
please notify the sender immediately and delete the original. Any
unauthorised copying or
dissemination of this message is strictly prohibited.</p>

<p>Diese E-Mail enth&auml;lt vertrauliche und/oder rechtlich
gesch&uuml;tzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrt&uuml;mlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese E-Mail.
Das unerlaubte Kopieren sowie die Weitergabe dieser E-Mail ist nicht
gestattet.</p>

</div><br>