Query.setRange() not available on standard javax.jdo.Query interface?

Hi Kodo people, I'm trying out Kodo 3.2.0, most specifically for the
spiffy new setRange() functionality. However, I'm somewhat confused
because while the docs clearly indicate that the setRange() method is
available on the standard javax.jdo.Query interface, it's not available
on the javax.jdo.Query class that ships with Kodo 3.2.0. I have to cast
my query to a KodoQuery in order for this to work. Is this expected?
Thanks,
-Mike
Michael Allen
Technical Lead
PGP Corporation

I think you missed the note at the beginning of the query chapter in the docs:
Much of the functionality we discuss in this chapter is new to JDO 2. Though
Kodo supports all of the features defined in the following sections, many JDO
implementations may not. Additionally, because official JDO 2 jars are not yet
available, you will have to cast your query objects to kodo.query.KodoQuery to
access any JDO 2 APIs. The UML diagram above depicts these APIs in bold. For
simplicity, casts have been left out of the example code throughout the chapter.

Similar Messages

  • The connection was recovered and rowcount in the first query is not available. Please execute another query to get a valid rowcount

    Since we've moved to SQL 2014 we see some of our jobs error with the message in the subject of this post.  What does it mean?  I've looked all over and haven't been able to find anything of value.
    Thanks in advance. 
    André

    What I found is
    This will be raise when client issues request right after the connection is recovered and the batch request contains @@RowCount or rowcount_big().  The request will
    fail but the connection won’t be closed.
    Do you have @@RowCount or rowcount within a job ?
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Unable to Transport Querys Object (ELEM) of type 'Query' is not available in version 'A'

    Hi,
    We need to transport some querys from production BW 7.3.1SP7 to synch with Dev.  I know, I know but had no choice but to created querys in PBW due to no data in DEV...
    In RSA1, we collect query and get errors for every object (ckf,rkf, vars etc) and when changing dsiplay from hiearchy to list, there are no objects included under the query element. 
    Opened the system in SCC4 for automatic recording of changes and changes to repository and cross clinet customization allowed and changed the client role to Test.
    Tried opening and resaving the query in query designer.
    Query is active in table RSRREPDIR
    Checked SCN and OSS have yet to find a solution
    http://scn.sap.com/thread/1758171
    http://scn.sap.com/thread/1623756
    Here are the error details
    Object '4T3M5JI7050ENPG6G336XWYNK' (ELEM) of type 'Query' is not available in version 'A'
    Message no. RSO252
    Diagnosis
    You wanted to generate an object with the name '4T3M5JI7050ENPG6G336XWYNK' (in transport request ELEM) of type 'Query' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    System Response
    The object was not taken into account in the next stage of processing.
    Thank you so much for your time!
    Lee Lewis

    This is an SAP BUG which is corrected by this note:
    > 1762785 - Object '!XYZ...' (ELEM) of type Query is not available.
    > 1816332 - Object 'XYZ...' (ELEM) cannot be collected (RSO296)
    Lee Lewis

  • Finder is not available for standard user

    Hi,
    I recently installed OS X (10.8.2) from app store. We created "Data" folder and created few admin and non admin users. Granted access to both users to same folder. When admin logged off and standard user logged in, he could not find Finder. Repeated this with 8 standard users and Finder is not available for all 8 standard users. For 2 admin users Finder is available.
    We did not change any settings whatsoever, so not sure this behavier is by design or I am missing something.
    Please help
    Thanks in advance.

    Are you running OS X 10.8 client or Server (is Server.app installed)? If you are using OS X Server, are these local accounts or network accounts?
    What do you mean by "could not find Finder?" As in could not log in? Could not access this 'Data' folder in Finder?

  • Filter by "Result from another query" option not available in Webi

    Hi all
    I am trying to filter one query by zipcode based on the results of a previously run query in the same report. However this option is not available on the drop down when I drag zipcode into the filter pane. I am restricted to the options: Constant, Value(s) from a list, Prompt or Object.
    I have "use subqueries enabled" within my universe and the data is held in an RMDBS (i.e. it is not an OLAP universe) so I expected this functionallity to be available.
    I am using XI 3.2 and Java version 1.6.0.15, i.e. up to date.
    Any help would be greatly appreciated.
    Thanks
    Sharon

    Sharon,
    Here is one method to achieve your objective, however, it involves the use of Merge Dimensions.  Here goes:
    In the Edit Query mode, build two queries, where the first query has all the objects, to include Zip code, and the second query has the zip code, filtered for the one at hand.  (you probably have done this portion already)
    In the Edit Report mode, think of your data set as Query1 (all the data objects you want) and Query2 (zip code and filtered on that zip code) and thus you'll have Query1.zip and Query2.zip.  If you build a grid containing all the data you want from Query1, then simply add Query2.zip to that grid, voila, the grid will be "filtered" due to the "merge" that occurs under the wire.  The 'problem' here is that you have two columns that are repetitive and there is no inherent way to "hide" a column in WebI other than masking the column with white on white (font/borders) or some folks sometimes apply Alterters to achieve the same.
    Best of luck in moving forward with your task.
    Thanks,
    John

  • Query Transported Successfully : But transported query is not available in PRD system

    Hi Gurus,
    I have transported one query yesterday. And transport got successful with out any errors.
    Now i am checking the same query in PRD system, but i am not able to find the query.
    Checked in RSRT and Query Designer in PRD System.
    Table RSZCOMPDIR is showing only M version of the query in PRD.
    Please help to fix this issue.
    Regards,
    PRK

    Hi,
    have you cheeked the STMS there showing return code - 0,4,8,15 means success or warning or red?
    have you transported successfully form dev to qav?
    are you seeing same query in qas?
    if not available same query on PRD please re import the one more time.
    check the RSRT giving the technical name of query and check the multi provider.
    Thanks,
    Phani.

  • Entry Variable not available in Free char in Query?

    Hi
    I have to remove one of the entry variable in a query, its costing date and is mandatory variable; but it is not visible in Free characteristic to remove it.
    Its one of the factory reports.
    Any idea how to remove it?
    Thanks in advance
    Ishi

    Hi Anup
    The InfoObject Costing date is used in column in one of the KF. But the variable is not used anywhere.
    I tried to create the same report in Query designer, and noticed that after creating the query, system automatically picks the variable as mandatory entry variable
    Regards
    Priti

  • Infocube 0PS_C01 not available in BW Business Content& query 0PS_C02_Q0005

    Hi
    In Project systems module, the Infocube 0PS_C01 not available in BW Business Content& also queries relevant to the infocube are alos not available.
    how to get the relevant infocube. Please let me know.

    Hi,
    Check the relevant Datasource for your Infocube in help.sap.com. Install from RSA5 and RSA6 in ECC side.
    Replicate in BW and Install your Cube from BI content.
    Actually you can check your cube in Meta data repository.
    Regards,
    Suman

  • Standard Query Variables not available in Q

    Hi All,
    We are not planning to transport the queries from DEV but create them in directly in Q and P. But I am unable to see any of the standard variables in Q or P. Do we need to transport the variables from DEV(even the standard ones)? If so, can we transport all the available standard variables into Q as a set or do I need to collect all of them in the transport connection and follow thw same process which we use to transport the normal objects?
    Best Rgds,
    Nene.

    Nene,
    If you have authorization you can do that in P or Q. Well, asking for a request can be suppressed by basis team. But the best practice to activate them in dev and transport them to QA and prod. And still if the prod and QA systems are opened and client has no problem you can do that in respective systems. Basis people can make it not to ask for transport request and can make it save by default as a local object.
    Activating and transporting them to target systems will no lead to inconsistencies in future transports related to these objects. Now its up to you to decide the mode....

  • Query View not available as DataProvider in Report Designer

    Hi experts,
    I am unable to find any query views when I tried to insert DataProvider in Report Designer. All that is available in InfoAreas view is only queries.
    When I tried to restrict type to only Query View, they are only visible in History view and not others (e.g. Find and InfoAreas)
    Is this the same case with everyone and why is that so?
    Thanks!

    Anyone who had experienced this?

  • Query Infoset not available in SQ01

    Hi all
    I have created an infoset in SQ02 and assigned it to a usergroup. If i look into the assigned Infosets in SQ03 or either from SQ02 itself, this infoset is being available in that assigned usergroup. But, when I go to SQ01 for creating a query and select the usergroup assigned, I am not able to find the infoset which I created. I have tried to extract it in several ways but of no use. Can someone please tell me the reason behind this behavior?
    Points assured.
    Thanks and Regards
    Chandra

    Hi,
    Check whether you have assigned a usergroup (create usergroup:SQ03) for the infoset.
    Go to SQ02, choose the button 'Role/User group Assignment', here select your usergroup and save.
    Generate infoset.
    Then go to SQ01 and create query, when you choose the 'Create' button, it will show the corresponding infoset.

  • Spool Error Monitoring through CCMS not available in Standard Delivered MTE

    Hi Everyone,
    My Client requirement is to monitor SPOOL Errors through CCMS. But Standard Monitoring Tree Elements (MTEs) does not capture the Spool Errors .
    Can anybody Please let me know , How Can I setup Spool Error Monitoring through CCMS.
    Thanks & Regards
    Deepak Gosain

    Deepak,
    Check this One...
    //help.sap.com/saphelp_nw70/helpdata/en/34/658a3b15566262e10000000a11402f/content.htm]
    Hope this Helps....
    Happy Learning
    Chander N Purna

  • Infoset Query is not available for generic Extractor

    Hi,
    I've created an infoset in SAP ECC with sq02. Then I've created an Infoset Query on top of this Infoset, because I wanted to exclude records with specific values. Now I want to use this Infoset Query (with the filter restrictions) in my generic DataSource. I can only chosse the Infoset, but not the InfoSet Query. Normally I use the filter in the InfoPackage, but neither IP nor DTP can exclude values with a pattern (f.e. exclude all record that contains a $ symbol in the string)
    Any suggestions?
    Thanks and regards,
    Sebastian

    I agree with Jen, that BW side routines would work just fine.
    If it is extractor performance you are worried about and that is why you want to build the $ exclusion in the select, then I would suggest just creating an extractor from scratch using a custom written function module.  It's actually very strait forward and provides many advantages over table/view/InfoSet based generic extractors.
    I am not a fan of using InfoSets for generic extractors.. but you can create InfoSets based on a data read program in which case you code all the selects and whatnot.  But if you go that far with the InfoSet, why not just write the FM...
    Thanks

  • Query Browser not available in Dashboards appl !?

    Hello,
    We installed SAP BO Dashboards 4.1 SP2 (14.1.2.1121) and want to use universe queries in the dashboard.
    The workspace feature "Query Browser" is empty.
    We don't get the icons to logon to BOXI (to universe).
    Is this an installation issue? What do we need to check?
    Thanks,
    Bernd

    Hi Bernd,
    Happy to hear that, but please be aware using excel 2013 with dashboard designer. Most of the time it make issue in integrating with the data. Lot of discussions are happened regarding this. Few are listed below.
    Excel 2013 and SAP BusinessObjects Dashboards 4.1 Support Pack1 version 14.1.1.1036
    SAP BO Dashboard 4.1 Support pack 1, exported swf file URL component problem - Office 2013
    Better to go with the Excel 2010. Just felt to highlight the issues before going deep into the design.
    --SumanT

  • Can JDO Query be extended

    Hi,
    Does KODO provide a hook to extend the javax.jdo.Query's implementation
    class from KODO, they way it supports extending PersistenceManagerImpl?
    Most of my objects need to be transferred over wire, and they should have
    their identity accessible from the object itself when it goes in a
    different jvm. If I can extend the Query's execute() methods to populate
    their id in the object itself, that would look like a cleaner and
    transparent solution.
    Suggestions?
    Regards,
    Manoj

    Manoj-
    JDO does a lazy fetching of objects A, when B.getA() is called. I need to
    have "id" member variable of A also populated before returning the
    collection.Hmm ... do you mean that you just want to populate an "id"
    field when you load an instance of A? If that is all you are trying to
    do, then I would suggest having your class implement
    javax.jdo.InstanceCallbacks and doing that work in jdoPostLoad().
    In article <[email protected]>, Manoj Prakash wrote:
    class A{
    int id
    // other primitive members
    Class B{
    int id
    HashSet a // collection of A
    public Collection getA(){
    return a;
    When I query objects of class B, I can use the FacadeQuery the way you
    suggested, to populate "id" member variable of B.
    JDO does a lazy fetching of objects A, when B.getA() is called. I need to
    have "id" member variable of A also populated before returning the
    collection.
    I wanted to know what method(s) if overridden in PersistenceManagerImpl
    would provide me hook to do that.
    Regards,
    Manoj
    Marc Prud'hommeaux wrote:
    Manoj-
    I'm not sure what you mean. Can you post some pesudo-code of what you
    are trying to accomplish?
    In article <[email protected]>, Manoj Prakash wrote:
    Great, thanks.
    What methods if overridden from PersistenceManagerImpl can take care of
    the case of populating Ids for the objects in a Collection, during lazy
    fetching?
    Marc Prud'hommeaux wrote:
    Manoj-
    You can't directly extend our Query implementation, but you could always
    extend PersistenceManagerImpl and extend all the methods that return
    queries to wrap them in a ManojQueryFacade class that just does what you
    want in the execute method before delegating the call to the internally
    held query. I think that should work OK (although I haven't actually
    tried it).
    In article <[email protected]>, Manoj Prakash wrote:
    Hi,
    Does KODO provide a hook to extend the javax.jdo.Query's implementation
    class from KODO, they way it supports extending PersistenceManagerImpl?
    Most of my objects need to be transferred over wire, and they should
    have
    their identity accessible from the object itself when it goes in a
    different jvm. If I can extend the Query's execute() methods to populate
    their id in the object itself, that would look like a cleaner and
    transparent solution.
    Suggestions?
    Regards,
    Manoj
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

Maybe you are looking for

  • Can I use a sata3 hard drive with a late 2009 imac

    Looks liker the hard drive in my five year old iMac is about to go belly up. Was getting hardware errors, very slow startup and Carbon Copy Cloner reported bad blocks during the backup. I want to buy a new HD at a local store and have the Apple store

  • Album display shows same album many times

    Just installed iTunes 8 and switched to Album display. Display now shows same album many times. Each time is for a different song. Occurs on compilation CD that has many artists, showing one for each artist. Example: Top Gun Soundtrack How do you con

  • Sales Order number is  not showing in MD04

    Hi Gurus  , I have got one case where  Sales order number is not showing  in MD04 screen  . This sales order , line item  has already delivered , PGI &  billing document also been generated  . Moreover accounting document is also been created .As che

  • Inspiron 20 3000 can I add a solid state drive to boot for speed ?

    I'm looking to purchase an inspiron 20 3000. I asked sales if I could get it configured with an SSD drive, and they said no. I'd have to purchase it and then the drive myself. But on Dell's web site I don't see any SSD drives, or hybrids listed as co

  • Using BADI ORDER_SAVE to implement order split?

    I'm working in a CRM 4.0 system in which I need to create an order split based on sales organizations. My initial idea was to create an implementation of the BADI ORDER_SAVE in which I call the method CHANGE_BEFORE_UPDATE where I want to read the ava