Query on Design

Hi,
I have a class namely MyClass. This has three overloaded public methods namely addNode(), addNode(String) and addNode(int).
Requirement:
I need a specialized class namely PrintMyClass derived from MyClass which will support the following:
1. It should provide an extra overloaded method namely addNode(Object). Now, this method will inturn invoke the addNode() in the super and do something extra as well - say printing 'Hi' on console (It does something with the argument Object as well, so this overloaded method needs to be provided). This printing on the console is not provided by methods in the base class.
Query:
Is there any means by which we can hide the addNode(), addNode(String) and addNode(int) methods in the base class?
Here is what I mean:
PrintMyClass class = new PrintMyClass();
class.addNode("new String instance");
Now, this will invoke the addNode from base class and then print 'Hi' on the console. This is expected behavior.
Now when I do the following:
class.addNode();
This will invoke the method from the base class and nothing will be printed in the console. This is not correct.
One way is that we override all the addNode() methods in the base class and ensure that something is printed in the console. This is tiresome as there can be many such overloaded methods of addNode()?
Other way is to hide the addNode() methods inthe base class somehow... I am not sure how to go about in this case... This is against OOPS principles. Is there any design pattern or technique by which this can be achieved? We can get a somewhat similar effect by using Composition; however this is not acceptable.
Please guide.
Regards,
Jay

So for instance
class Node {
     public Node() { ... }
     public Node(String s) { ... }
     public Node(int i ) { ... }
public Nodez0r extends Node {
     public Nodez0r(Object o) {
          super.node();
          // or
          super.node((String) o);
          //or
          super.node((Integer) o);
}Is this something like what you need

Similar Messages

  • Query layout designer

    i have generated a report in sap buisness one using query layout designer.now i want to deploy that report in another machine.
    how to deploy query layout designer?

    Hi Atasi,
    You can use Copy express add-on to copy the Query and the Query Print layout from one database to another.
    1. Install copy express on customer server
    2. Restore a copy of your database in the Customer Server as well.
    3. Copy from the restored database to the Live database of Customer using Copy Express.
    Copy Express is a very simple add-on and easy to use.
    Hope this helps.
    Regards,
    Hamsa

  • Create ShortCut  For Query Layout Design

    Hi All !!!
    I Designed a Report By Query Layout Design , so I want to Create ShortCut for it  , Because . If  I want to use This Report , I will do a lot Step .
    Please Help me.
    Thank alot .

    There is no specific SDK function for this, you could however write code to automate the manual steps:-
    - Launch Query Manager (ActivateMenuItem 4865)
    - Iterate through query groups in Item "6", and expand the group containing your query
    - Iterate through queries within the group, and use click method to highlight the required query
    - Call Print or Print Preview (ActivateMenuItem 520 / 519)
    John.

  • Error while opening query in designer

    Dear all,
    I have a problem i.e., when opening a query in the query designer, system throws the following error
    For characteristic 1FORMULA, enter value in a permitted format
    Message no. BRAIN599
    Subsequently - system does not allow me to correct the error also in designer.
    How to correct the formula and get the report operable in designer.
    Can any experts help.
    Regards,
    M.M

    Hi,
    Have you managed to fix this issue ? I have exactly the same problem after upgrading from 3.5 to BI 7
    " have a problem i.e., when opening a query in the query designer, system throws the following error
    For characteristic 1FORMULA, enter value in a permitted format
    Message no. BRAIN599"
    thanks

  • How to suppress the back-ground execution of a query in design mode

    hi guys,
    there is a bahaviour of the system, that I'd like to change. So, when we
    1. start EXCEL
    2. go to the designer mode to create a report
    3. first drop an InfoProvider (e query) into a cell,
    4. second - pull e.g a filter element into another cell, still being in the design mode.
    Just in this moment, the query itself has been already started in the back groud, aiming to fill the cache, I guess.
    Does anyone know how to suppress the back-ground execution? I'd like to control, when to start the reports execution.
    Thanks in advance.
    Neven

    Hello,
    There is no way to do that if you are creating thru BEx Analyzer.
    Instead use the BEx Analyzer, try to create using directly BEx Query Designer.
    In that way, the query will not be executed, until you want to...
    Thank you
    Edward John

  • Using BW Query in designing Universe

    Hello Experts,
    I want to create Universe from BW Query. Can anyone tell me what are the steps of using BW query in Universe designing?
    I successfully connected my BW Dev. server with BO Universe and able to select Cubes in designing universes but I was not able to select any queries.
    Regards,
    Nirav Shah

    Hi Nirav,
    in order to be able to select BW queries when building a universe you have to first allow external access on them. You can do this by opening the desired query with the SAP query designer (Business Explorer Tools) and navigate to the properties of your query. In the "advanced" tab just check the "Allow external access to this query" option.
    Regards,
    Stratos

  • How to order a query, in design mode?

    Hi,
    I work with the bex 3.x and I need to know how can I order a query by a ratio/s in the design mode (with the query designer)?
    Before running the query.
    Can anybody help me?
    Thanks in advance.
    Regards.

    Hi,
    refer below thread
    [http://help.sap.com/saphelp_nw70/helpdata/en/ba/45583ca544eb51e10000000a114084/content.htm]
    [http://help.sap.com/saphelp_nw70/helpdata/en/e7/47dd1613d14c449ce2a3f1461d8c87/content.htm]
    Thanks,

  • Query chart design: Help on design

    Hi,
    i have a query which has every information regarding sales and deliveries !
    Now i need to design a chart where in it can show the chart as columns for the sales documents delivered whether early, late or on time!
    I do have promised date as a char used in the selection in the query.
    i aslo need to differentiate the deliveries ( of how early or how late)
    range clusters  to deferentiate the results
    in other words, -5 to +2 is one range          ( on time range )
                           -8 to + 5 is one range
                           -11 to + 9 is one range like that
    Can any body help me of how can i build query chart ?
    Thanks,
    Ravi

    Hello VC,
        Thanks for your reply, and now the problem is in almost finished state, but im facing another problem.
          As you explained 100 Contract Account are selected based on the specific creteria.if i put the variable of defination (Count(1)) in column, instead of showing 100 in result it is showing more than that.
          And Here in my Cube Contract Account is a Dimension (you might be knowing, just mention for the sake of info).
          And my report looks like
    Contract Account(row) | Formula (Count(1)) (Col)| Contract Account selection creteria1 (Col) | Contract Account selection creteria2 (Col)|..............
    Hope this will give you clear picture. if no let me know.
    Thanks a lot,
    Umashankar

  • Creating a Universe on Bex Query --- Information Design Tool 4.0

    Hi,
    I am creating a Universe on a BeX Query, based on my understanding from the documentation i dont have to create a data foundation layer and i can directly call the connection in the Business Layer.
    when I create a business layer and select OLAP connection (BICS connection), I get an error "this connection is not supported".
    I was trying to look for a solution but i haven't found anything yet. Did anyone else encounter this issue. Please Share.
    Regards,
    Sheikh Hassan Ayub

    HI there,
    I read somewhere that the support for BEx Queries are done via Relational Connection.  However, the BICS connection is only available via OLAP connection.
    I was able to successfully create an OLAP Connection with BEx Queries.  However when I do a Business Layer with this OLAP connection it says ERROR, not supported.
    I havent tested creating a relational and thus having a Data Foundation yet as I am still have issues with my installation with ports.
    Anyway, let me know if you are able to create a relational connection.
    I'd be interested to hear your experience.
    Regards,
    Iris
    P.S. the connection needs to be published.
    Edited by: Iris Co on Nov 2, 2011 6:18 PM

  • Query on designing part

    Hi,
    In my scenario,my IDOC is having several segments.Each segment is having same fields,say FieldA,FieldB.
    I want to do in mapping in such a way that whenever the value of FieldA is 'Customer',I want to retrieve the corresponding value of FieldB and pass it to the target .
    Similarly,when the Value of fieldA is 'Vendor',I want to retrieve the corresponding value of FieldB and pass it to the target .
    Here,the IDOC may have 7-8 segments and each segment will have two fields and these fields may contain any value.But,I would like to pass the corresponding values of only those segments which contain 'Customer' and 'Vendor' which is coming as first instance to my target.
    My required value 'Customer' and 'vendor' may occur in any of the segements.
    Please give your ideas on how to do designing of this scenario.it would be great if I can get some screenshots .
    Regards,
    Alex.

    HI Alex,
    First thing that you could do this with Graphical mapping No Need of BPM the given UDF will 100% fulfiill your requirment.
    In Graphical mapping at left most-bottom corner you will get an icon to create the UDF.
    Click on it and give some name to it as TestUdf with proper description.
    Then click on add button to add import fields and give the name as filedA, filedB.
    Select the check box for cache parameter as "Queue" and save it.
    It will open one editor to write Java code.
    Copy the code mentioned in my above post and then in Graphical mapping API List select User Defined function as you did for other APIs such as Text, Date etc.
    You will get the API TestUdf and drag it for mapping.
    It will ask for the input parameters which you need to map it fieldA and fieldB,
    Then map response with target element.
    For Target end if you are expecting the value from FiledA then pass FieldA two times or else FieldA and FieldB as import parameters
    refer below link to create UDFs
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Thanks
    Swarup
    Edited by: Swarup Sawant on Feb 9, 2008 7:59 PM

  • Error while trying to Open and Delete a BEx Query in Query Designer.

    Hi Experts,
    I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
    I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
    Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
    "An error occurred while communicating with the BI server.
    As a result of this error, the system has been
    disconnected from the BI server.
    Detailed Description:
    STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
    Details text is as below:
    Diagnosis
    This internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
    I have tried with SAP Note 899572, but still it's the same.
    Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
    Your time is much appreciated.
    Thanks,
    Chandu

    Arun - Thanks a million. You saved me Nine. It worked.
    Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
    Points already assigned.
    Thanks,
    Chandu

  • Query Designer: Need help.

    Hi All,
    This is regarding query issue.
    Is this the right forum for this issue or is there a forum for that?
    Kindly tell me where should i post this kind of issue.
    BTW, below is my issue. I'm finding it hard resolving the defect.
    Needs advice on this issue.
    The user wants a record for a certain organization.
    He/she input all the required parameters.
    Let's say:
    Business leader ID: XXX01
    Begin date: 2010, 2011
    End date: 2010, 2011
    Status: Active
    After executing the report, it returns all of the necessary data records.
    But when he click on variable screen or change selection, then changes "ONLY" the Business leader ID.
    It goes:
    Business leader ID: XXY02
    Begin date: 2010, 2011
    End date: 2010, 2011
    Status: Active
    No Applicable Data were returned.
    User closes the report the reopen.
    He initially entered again with the second ID, parameters now are initially:
    Business leader ID: XXY02
    Begin date: 2010, 2011
    End date: 2010, 2011
    Status: Active
    Then necessary records were returned.
    Question: why is it not returning any data records when he/she change the Business leader ID?
    That problem arises only when Business Leader ID was being changed.
    But when he/she change selection and change the filter on Begin Date, End Date, Status, the report still provide the data.
    The report is not refreshing only when Business Leader ID was being changed.
    Thanks!

    Hi,
    You have to check it in your Bex Designer what kind of filter have given report.  I think the variable which are user entering the value in the initial screen which may for hard filter. 
    Open your query in designer and give the details of Variable screen would be very much easy to identify the issue. 
    Just try this
    V1 is the variable for  Business leader ID: XXX01  
    V2 is the variable for  Begin date: 2010, 2011
    V3 is the variable for  End date: 2010, 2011
    V4 is the variable for  Status: Active
    Except V1 variable all can be included in hard filter and Include V1 as restriction. 
    Hope this will help you to close the issue .. if you need any further assistance , please give the screen shot of your report in bex designer.
    Thanks
    BVR

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • Query Designer Issues Post System Copy

    Hi All -
    We have just performed a system copy from our production to our QA systems.  Now, when we trying to view a report from Query Designer in our QA environment, we are being prompted for a username and password - which is trying to log in to our production environment!  (I know this because I locked myself out of production trying to log in via our QA Query Designer).  We've done all the BDLS runs, updated the RSLOGSYSDEST table poer OSS note 524554, and also updated the tRFC port in WE20.  What do we need to do to be able to run a query out of the BW QA system?
    Thanks for the assistance.
    Abby

    Hi Abby,
    Once you execute the query from designer you will get one URL generated in the explorer address bar here you will have to change the name of your production app server with quality app server then report will be executed on quality server.
    But this is temporary solution, you will have to check with your basis team regarding this and they will have to change some setting in system table and next time onward the system will pick proper URL.
    Regards,
    Durgesh.

  • Build a query on runtime and not on design time

    Post Author: rchokler
    CA Forum: WebIntelligence Reporting
    When i build web Intelligence report the BO tool writes the Sql query includes all object I've picked up.
    I would like the TOOL not to build the hole SQL query on design time, I wand it to build the query includes only
    the objects the users picked up to display on the report (on runtime)
    Can i do it?
    BO XI  release 2 Enterprise edition

    Hi,
    As far as I know this can't be done at once because you have to consider :
    - Every Opportunity and their time-limited ProductRevenues
    AND
    - Time-limited Opportunities
    If you want to achieve this, you have to consider the 2 datasets separately and make your first query :
    ObjOpptyQueryPageInput.ListOfOpportunity.Opportunity.searchspec = "([ModifiedDate] >= '01/01/2013 00:00:00')";
    but also another query with the restriction on the ProductRevenue Searchspec.
    This shouldn't be too hard because the searchspec functionality is present at each level :
    - ListOfOpportunity -> Opportunity (the top-level that you used for your query)
    - ListOfOpportunity -> Opportunity -> ListOfProductRevenue -> ProductRevenue (the sub-level that you should use for the second query)
    Then in your C# code, you merge the 2 datasets and you end up with your expected result.
    Hope this helps,
    Charles.
    http://www.dubant.com

Maybe you are looking for

  • Selecting and deselecting desktop background images

    Can I select which Apple photos to use when setting desktop background to Change Picture? Put another way, can I deselect pictures I don't want to see? I hoped the "-" box at the bottom of the list would let me deselect folders or even specific image

  • Using AX as a wireless reciever for desktop

    Hello Apple World, I have an Airport Extreme (Purchased within last 3 mo.) and I was wondering if i can use it as a wireless receiver for my desktop that has no wireless card. My cable modem has wireless on it and my desktop is in another room. I wou

  • System Copy and BW Indexes

    Our Basis Admin reports errors on the "P" indexes (on the "E" fact table) while doing a refresh of our sandbox sysem from Dev. It complains about the indexes being redundant, and it does not create them, even though they're necessary. Has anyone else

  • Backup iPhoto library to cloud

    Hi I now use iPhoto to put all my photos in, treasured memories. I do use Time Machine on my iMac, and also manually backup the iPhoto library file manually to a separate external HDD as well, so that makes a copy on the iMac, copy in TM, and copy on

  • Creating a package body

    Hi Everybody, I'm trying to create a package body but i keep getting an error message saying package created with complication. What i am i missing? Thanks in advance. CREATE OR REPLACE PACKAGE BODY MY_PACK IS PROCEDURE MY_PROC(A NUMBER, B NUMBER) IS