Order By on toplink queries.. how to?

Greetings
I use jdev 10.1.3 to create my apps. I also use toplink. I have the default findAll methods that I use to read an entire table into a list. I can then write a comparator and sort the list. My question is there a way to do effectively an order by? While i was googling around I saw an "order" tab on a graphic screen capture of toplink workbench. I dont have toplink workbench, is it better / different than what is in jdeveloper? Also, I tried looking for where to download it and wasn't able to find it.
Is there maybe some paramater I can put in the following line to specify and ordering?
(List<PlLoginPrefixes>)session.executeQuery("findAllPlLoginPrefixes", PlLoginPrefixes.class);
thanks
troy

depends on what you want do and what you're background is.
Business components are more datacentric:
- easier to start with from the point of view of a database developer
- when business rules are implemented in the database
- when there are multiple applications to work with the same data
Whereas Toplink is more focused on objects:
- easier to start with from the point of view of a java developer with less database knowledge
- when there are no business rules in the database
- when there is only one application to interact with your database
Toplink is also said to be faster in querying because of object caching, but the downside is a greater chance of corrupt data when the connection is unexpectedly lost( worst case is power failure).
So the best choice depends on your knowledge and the scope of your project.
Kind regards,
Nemata

Similar Messages

  • 3 queries, how to make it fixed number of rows

    Hi. I have the 3 queries with the following structure. Q1 customer, Q2 sales order, Q3 lines in the sales orders
    Q1
    Q2
    Q3
    Q3
    Q2
    Q1
    I followed the one suggested in thread: Can you limit returned rows in a loop?
    regarding value for each text form field as follows
    text1 = <xsl:variable name="lpp" select="number(5)"/>
    text2 = <?for-each@section:LIST?> <xsl:variable xdofo:ctx="incontext" name="group" select=".//LINES"/>
    <?for-each:$group?><?if:(position()-1) mod $lpp=0?><xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    text3 = <?for-each:$group?><?if:position()>=$start and position()<$start+$lpp?>
    text4 = <?LINE?>
    text5 = <?end if?><?end for-each?>
    text6 = <?sum($group[(position()>=$start) and (position()<($start+$lpp))]/LINE)?>
    text7 = <?if:not(count($group) mod $lpp=0) and ($start+$lpp>count($group))?>
    text8 = <?end if?><?end for-each?><?end if?>
    text9 = <?if:count($group)<$start+$lpp?>
    text10 = <?end if?>
    text11 = <xsl:if xdofo:ctx="inblock" test="$start+$lpp<=count($group)"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if>
    text12 = <?end if?><?end for-each?><?end for-each?>
    and it worked for me if i have only 2 queries. but now when im using it in 3 queries. how to apply the said format in involving 3 queries?
    Thanks.

    Hi,
    if method SET_FILTER_CRITERIA doesn´t help, I think that you must work with 2 internal tables, a counter and a loop for filtering the records to be displayed:
    case counter.
      when 1.
         loop at int_table1 from 1 to 500.      "<-- your table with all records
           move int_table1 to int_table2
        endloop.
      when 2.
         loop at int_table1 from 501 to 1000.     
           move int_table1 to int_table2
        endloop.
    etc, etc.
    Call grid-->SET_TABLE_FOR_FIRST_DISPLAY
       exporting
         IT_OUTTAB = int_table2                "<-- instead of your currently table int_table1

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • HT204053 i have two apple id's and id like to combine them to one of the accounts in order to not lose contacts. how do i do that? help...

    i have two apple id's and id like to combine them to one of the accounts in order to not lose contacts. how do i do that? help...

    It is not possible to merge AppleID accounts...once established they stay independent.

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

  • I created an album in iPhoto and every time I click on slideshow it plays the pictures backwards from the order in the album. How do I change that?

    I created an album in iPhoto and every time I click on slideshow it plays the pictures backwards from the order in the album. How do I change that?

    When running a slideshow from an album it will not run properly if the photos are sorted manually.  Sort them by any of the other options, title, date, rating, etc. and it will play correctly.
    Send a report of the problem to Apple via http://www.apple.com/feedback/iphoto.html.
    If you must sort them manually create the slideshow in the slideshow mode in iPhoto, not from an album.
    OT

  • While executing TCode F13 and F13E, purchase order number is not appearing.how it should be displayed into tcode f.13, please any one help me

    While executing TCode F13 and F13E, purchase order number is not appearing.how it should be displayed into tcode f.13, what are the requirements need to display into tcode f.13, please any one help me, i am facing this problem in  production server

    Hi Nattu,
    Please check it will show the PO no under Purchasing doc field
    Check which layout you are applied.
    its should be
    SAP&F124
    Without Specification of Crcy
    Regd,
    Khan.

  • I've just imported photos that are misdated and appear out of order in my events. How can I correct the dates on these events so they appear properly?

    I've just imported photos that are misdated and appear out of order in my events. How can I correct the dates on these events so they appear properly?

    The one iin the Photos ➙ Adjust Date and Time menu option:
    checkbox below:

  • Why we do we use TopLink Queries?

    We can make object-queries and data-queries using Java or SQL.
    Why we we invent TopLink Queries? What are the TopLink Queries used for?
    Are they used to replace of Java or SQL queries?
    Thank you

    Generaly i think that TopLink queries are much more specialized then Java queries. So you can use them to cover way more unusual cases. Probably you could do the same with JPA queries and Java postprocessing of results. But it would take more time to write and it wouldn't be as efficient as specialized TopLink queries. For example using ReadAllQuery and addBatchReadAttribute you can have 2 queries instead of 1+n.
    On the other hand you could do the same with SQL but then you would have to transform SQL results to objects with every query and that is not efficient.
    Take a look at javadoc's of *Query classes in oracle.toplink.queryframework there are many hints why different types of Queries exist.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I am desperate to transfer a file from my mac laptop to my ipad.I was told to use iphoto ,but it scrambles up the order I want the pictures ,how can I move the pictures to the sequence I want?Any help is greatly appreciated :)

    I am desperate to get my photos onto my ipad for a presentation tomorrow.The photos are from different times and dates.When I put the photos onto iphoto they all come out in a completely different order to what I want.How can I arrange this so that the pictures are in the correct order.Thank you for assistance .Delia

    Learn how things work
    files have no order at all  --  the program that views them sets the order  --  in iPhoto you can do this with a number of sorts on the photo data or manually  --  in a file viewer like the finder or windows explorer there are a number of sorts on the file data (not the photo data) that you control - so in the finder you can sort by alpha file name, date or file creation or last modification, size of file, etc
    So having the file sdisplay in your selected order first off involves understanding the difference between file data and photo data, then making a decision how you want them to display in the file system (and verifying that the file system you plan to use supports this) and then use the iPhoto export to create files that will match the sort you want if iPhoto supports this
    the most common way is to display the files in alpha file names order at the destination - so you need to export the files so their file names are in alpha sort order using the sequential numbering option of export
    LN

  • Will i be able to by a unlocked iphone 5s from the san francisco store on launch day? or if i order online on launch day how long does it take to be delivered?

    will i be able to by a unlocked iphone 5s from the san francisco store on launch day? or if i order online on launch day how long does it take to be delivered?

    DerykLane wrote:
    will i be able to by a unlocked iphone 5s from the san francisco store on launch day?
    Maybe. It all depends on how many people are in line ahead of you.
    or if i order online on launch day how long does it take to be delivered?
    When you go to order online, it wil tell you the expected delivery date.
    We are all just your fellow users. Just like you, all we can do is make a good guess.
    Best of luck.

  • What is Customer order Fill rate process and how we calculate that .

    Hi All,
    Please provide me idea of Customer order Fill rate process and how we calculate that .
    Thanks

    Quote
    Originally posted by WarLord
    I like this HD tool. i use it everyday now. the tempture readings are great Hd temp cpu temp and even the system temp nice added feature to the monitoring. And this is an alternative to enabling the SMART in the bios? Thats the way im understanding it. is that right Maesus ?Because i have disabled in bios. She went threw alot of trouble here. thank you  
    Well from my observation, whether SMART is disabled or enabled in the BIOS, SMART is always working within the HDD itself.
    Basically SMART is acting like a blackbox, monitoring and tabulating HDD condition from time to time and its attributes only fully revealable by the manufacturers. SpeedFan's SMART status only displays partial information that is displayable. Some attributes are hidden, ~OR~ the attributes' locations are different from one HDD to another brand, such that some values don't correspond to the attribute meaning at all.
    It is very doubtful to claim that enabling SMART in the BIOS will hog down the performance. Just like a transport bus (yeah real bus that fetch passenger :P ), with or without the black box installed can't help it if the driver wants to speeding. :P

  • Localized ordering in Toplink queries?

    Is there any way to define a language dependent query in Toplink?
    Thanks!

    TopLink does not directly provide any support for Oracle Databases localization API. You can, however, register for SessionEvents that will allow you to gain access to the connection after TopLink has acquired it and update the session properties to set the locale.
    If you would like to execute specific functions with localization, you can create a custom ExpressionOperator as explained here:
    http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10313/queries.htm#1127345
    If this is no help, please repost with more specifics and possibly an example of the query in SQL form.
    --Gordon

  • JPA / Toplink Essentials / How to set Table Qualifier?

    Hello!
    How can i set a table qualifier for toplink essentials (JPA)?
    Using toplink I can use setTableQualifier("...");
    regards
    Harald.

    If I add orm.xml along to persistence.xml in the META-INF directly, TopLink JPA obviously finds it regarding to its log output:
    Searching for default mapping file in file:/C:/<path_to_webapp>/WEB-INF/classes/
    Found a default mapping file at file:/C:/<path_to_webapp>/WEB-INF/classes/META-INF/orm.xml for root URL file:/C:/<path_to_webapp>/WEB-INF/classes/
    But it seems as the "schema" property I set under persistence-unit-defaults is ignored. The orm.xml file looks like this:
    <persistence-unit-metadata>
         <persistence-unit-defaults>
              <schema>schema_name</schema>     
         </persistence-unit-defaults>
    </persistence-unit-metadata>
    The queries logged by TopLink JPA to not add qualifiy table names with the schema_name configured above!!!
    Any idea?
    Hans

Maybe you are looking for