Determining size of objects

hi , is there any way we can determine the size of objects in java ,like we have sizeof() in C. because till now I have only found functions in runtime class to determie the mem. as total OR max. OR free

In Java 1.5 is the Instrumentation package which can provide something like Object sizes. Never used it myself, though.

Similar Messages

  • How to change Font Size of Object Explorer in "SQL Server Management Studio"

    Dear Team,
    "SQL Server Management Studio" is a fantastic IDE for the database.
    There are so many customization options available but one thing many users missing is that " How to change Font Size of Object Explorer?"
    Can you please accumulate this feature in IDE ASAP?
    Many Thanks,
    Bhavesh

    Its there
    Go to Tools -> Options
    Then under Environment you've fonts and colors tab where you can specify a higher font size.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • RE: Size of Objects

    Try the Forte trace flag, trc:os:5:5.
    It will tell you the size and number of objects in memory.
    (Note: I don't think it well put together your entire object graph
    for you.
    (e.g. If you have pointers to other complex objects hanging
    off of your object, I don't believe they are reflected in the
    object size.)
    Hope this helps!
    -----Original Message-----
    From: [email protected]
    [<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of
    [email protected]
    Sent: Thursday, October 01, 1998 12:55 PM
    To: [email protected]
    Subject: Size of Objects
    I am trying to find the size of an object in memory. Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size() method return the
    total bytes in the stream, but
    does this correspond to the size of the object in memory?
    Regards,
    Peter Kelly
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
    >
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:<a href=
    "http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>

    I used to serialize the object and inspect the size of
    the file.
    This way it worked fine for me.
    Hope this helps!
    Ajith Kallambella M
    Forte Systems Engineer,
    International Business Corporation.
    I am trying to find the size of an object in memory.Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size()method return the
    total bytes in the stream, but
    does this correspond to the size of the object inmemory?
    Regards,
    Peter Kelly-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • How to view the physical size of objects

    Hi
    Please advise how to view the physical size of objects like tables, indexes, materialize views etc.
    Wishes
    Jawad

    To see the physical size of objects like tables, indexes, use
    USER_SEGMENTS where SEGMENT_TYPE=table/index/partition etc.
    But for views/packages/java/trigger, you can only see rough estimate in USER_OBJECT_SIZE

  • Determine size of pdf from spool

    All,
    does anyone know how to determine size of pdf from spool.
    i'm using RSPO_RETURN_ABAP_SPOOLJOB to get pdf file, but i want to know its size.
    any idea?

    Assume the PDF data is in internal table gt_messg_att.
    MOVE p_spoolno TO lv_spoolno.
    * CONVERT THE SPOOL TO PDF
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid                    = lv_spoolno
          no_dialog                      = lc_no_dialog
    *     DST_DEVICE                     =
    *     PDF_DESTINATION                =
       IMPORTING
         pdf_bytecount                  = lv_bytecount
    *     PDF_SPOOLID                    =
    *     OTF_PAGECOUNT                  =
    *     BTC_JOBNAME                    =
    *     BTC_JOBCOUNT                   =
       TABLES
         pdf                            = gt_pdf_output
       EXCEPTIONS
         err_no_otf_spooljob            = 1
         err_no_spooljob                = 2
         err_no_permission              = 3
         err_conv_not_possible          = 4
         err_bad_dstdevice              = 5
         user_cancelled                 = 6
         err_spoolerror                 = 7
         err_temseerror                 = 8
         err_btcjob_open_failed         = 9
         err_btcjob_submit_failed       = 10
         err_btcjob_close_failed        = 11
         OTHERS                         = 12
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
    * Transfer the 132-long strings to 255-long strings
        LOOP AT gt_pdf_output INTO wa_pdf_output.
          TRANSLATE wa_pdf_output USING ' ~'.
          CONCATENATE v_buffer wa_pdf_output INTO v_buffer.
          MODIFY gt_pdf_output FROM wa_pdf_output.
          CLEAR wa_pdf_output.
        ENDLOOP.
    * TO CONVERT THE DATA INTO PDF FORMAT ELSE THE PDF FILE
    * WON'T OPEN & REPORT WOULD GIVE A MESSAGE THAT
    * THE FILE IS DAMAGED & COULD NOT BE OPENED
        TRANSLATE v_buffer USING '~ '.
        CLEAR : wa_messg_att,
                gt_messg_att.
        DO.
          wa_messg_att = v_buffer.
          APPEND wa_messg_att TO gt_messg_att.
          SHIFT v_buffer LEFT BY 255 PLACES.
          IF v_buffer IS INITIAL.
            EXIT.
          ENDIF.
          CLEAR wa_messg_att.
        ENDDO.
      ENDIF.
    * Get size of attachment
      DESCRIBE TABLE gt_messg_att LINES lv_cnt.
      READ TABLE gt_messg_att INTO wa_messg_att INDEX lv_cnt.
      lwa_doc_data-doc_size =  ( lv_cnt - 1 ) * 255 + STRLEN( wa_messg_att ).

  • Still not supporting relative size of objects?

    Hi everybody!
    Am I blind? Just downloaded and installed iWork '09, hoping they added the possibility to adjust the size of objects like pictures in a relative manner, finally.
    Let's say, you have some screenshots for creating a documentary. All of different sizes. You want all of them to appear in your Pages document at 50 % of their original size. How can you manage this? I still didn't find a way for this simple task.
    Have I really to use Word for Pages can't help me with this?
    Regards,
    Olaf

    Apple deliver with the operating system several scripts allowing us to manipulate our pictures.
    Here is one of them edited to divide the pictures dimensions by two.
    --[SCRIPT Half_size}
    property done_foldername : "Reduced Images"
    property originals_foldername : "Original Images"
    property newimage_extension : "jpg"
    -- the list of file types which will be processed
    -- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
    property type_list : {"TIFF", "GIFf", "PNGf", "PICT", "JPEG"}
    -- since file types are optional in Mac OS X,
    -- check the name extension if there is no file type
    -- NOTE: do not use periods (.) with the items in the name extensions list
    -- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
    property extension_list : {"tif", "tiff", "gif", "png", "pict", "pct", "jpeg", "jpg"}
    on adding folder items to this_folder after receiving these_items
    tell application "Finder"
    if not (exists folder done_foldername of this_folder) then
    make new folder at this_folder with properties {name:done_foldername}
    end if
    set the results_folder to (folder done_foldername of this_folder) as alias
    if not (exists folder originals_foldername of this_folder) then
    make new folder at this_folder with properties {name:originals_foldername}
    set current view of container window of this_folder to list view
    end if
    set the originals_folder to folder originals_foldername of this_folder
    end tell
    try
    repeat with i from 1 to number of items in these_items
    set this_item to item i of these_items
    set the item_info to the info for this_item
    if (alias of the item_info is false and the file type of the item_info is in the type_list) or (the name extension of the item_info is in the extension_list) then
    tell application "Finder"
    --set name of this_item to "YK#" & (text -4 thru -1 of ("0000" & i))
    my resolveconflicts(thisitem, originals_folder, "")
    set the new_name to my resolveconflicts(thisitem, results_folder, newimage_extension)
    set the source_file to (move this_item to the originals_folder with replacing) as alias
    end tell
    processitem(sourcefile, new_name, results_folder)
    end if
    end repeat
    on error error_message number error_number
    if the error_number is not -128 then
    tell application "Finder"
    activate
    display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
    end tell
    end if
    end try
    end adding folder items to
    on resolveconflicts(thisitem, target_folder, new_extension)
    tell application "Finder"
    set the file_name to the name of this_item
    set file_extension to the name extension of this_item
    if the file_extension is "" then
    set the trimmed_name to the file_name
    else
    set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
    end if
    if the new_extension is "" then
    set target_name to file_name
    set target_extension to file_extension
    else
    set target_extension to new_extension
    set target_name to (the trimmed_name & "." & target_extension) as string
    end if
    if (exists document file target_name of target_folder) then
    set the name_increment to 1
    repeat
    set the new_name to (the trimmed_name & "." & (name_increment as string) & "." & target_extension) as string
    if not (exists document file new_name of the target_folder) then
    -- rename to conflicting file
    set the name of document file target_name of the target_folder to the new_name
    exit repeat
    else
    set the name_increment to the name_increment + 1
    end if
    end repeat
    end if
    end tell
    return the target_name
    end resolve_conflicts
    -- this sub-routine processes files
    on processitem(sourcefile, new_name, results_folder)
    -- NOTE that the variable this_item is a file reference in alias format
    -- FILE PROCESSING STATEMENTS GOES HERE
    try
    -- the target path is the destination folder and the new file name
    set the target_path to ((results_folder as string) & new_name) as string
    with timeout of 900 seconds
    tell application "Image Events"
    launch -- always use with Folder Actions
    set this_image to open file (source_file as string)
    scale this_image by factor 0.5
    save this_image as JPEG in file target_path with icon
    close this_image
    end tell
    end timeout
    on error error_message
    tell application "Finder"
    activate
    display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
    end tell
    end try
    end process_item
    --[/SCRIPT]
    If you don't know the way we use that, enter the Finder's Help and search for "folder action".
    Yvan KOENIG (from FRANCE vendredi 16 janvier 2009 20:26:11)

  • RE: RE : Size of Objects

    According to Forte, the size of serialized object is smaller that object
    size in the memory (in particular due to overhead necessary to support
    garbage collector).
    There is a way to calculate object size more or less precisely, but it
    fairly complex and definitely undocumented. I'm not sure that I will
    remember everything correctly (it was 1.5 years ago), so if somebody has
    more up-to-date knowledge, please correct any errors.
    There is, special flag cfg:?? (I do not remember it exactly), which
    allows you to invoke so-called INTERNAL methods. One of such methods is
    method getSize() on class Object. You can use it to receive object size
    in the memory. After that you need to add all memory taken by object
    simple type attributes, including implicit ones (e.g. for TextData
    object you need execute getSize() and add result of getAllocatedSize(),
    because string itself stored as separate entity). Result must be rounded
    by modulo 8 and after that you need add another 8 bytes for garbage
    collector information. After that you need calculate such size for all
    complex attributes which are objects themselves.
    Hope this will help.
    WBR,
    Nick Sakharov
    CBSI
    From: Ajith Kallambella M[SMTP:[email protected]]
    Reply To: Ajith Kallambella M
    Sent: Thursday, October 01, 1998 2:34 PM
    To: [email protected]; ForteUsers
    Subject: RE : Size of Objects
    I used to serialize the object and inspect the size of
    the file.
    This way it worked fine for me.
    Hope this helps!
    Ajith Kallambella M
    Forte Systems Engineer,
    International Business Corporation.
    I am trying to find the size of an object in memory.Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size()method return the
    total bytes in the stream, but
    does this correspond to the size of the object inmemory?
    Regards,
    Peter Kelly-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    I used to serialize the object and inspect the size of
    the file.
    This way it worked fine for me.
    Hope this helps!
    Ajith Kallambella M
    Forte Systems Engineer,
    International Business Corporation.
    I am trying to find the size of an object in memory.Can someone tell me
    what the best way is?
    If I store the object in a MemoryStream, the Size()method return the
    total bytes in the stream, but
    does this correspond to the size of the object inmemory?
    Regards,
    Peter Kelly-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • EEWB :  how to determine the business object and the extension type ?

    Hi,
    I ask myself how to determine the business object and the extension type to use to add new fields in a new tab of a specific transaction ? what means each business object, does that correspond to a specific transaction ?
    I need to add a new tab in the ‘BaMI’ business activity in transaction CRMD_ORDER just after the tab 'Actions' at header level.
    Could you help me please to determine which business object and extension type I have to select during creation of the project and which business object category I have to select during creation of the extension (wizard) ?
    Thanks for your help,
    Marie

    Marie,
    In order to determine what type of transaction you are extending, you will need to look at the customizing for the transaction.
    In the IMG:
    Goto:
    Customer Relationship Management->Transactions->Basic Settings->Define Transaction Types.
    You will then choose the transaction defined that you want to extend.  If you display the details of the transaction you will find an attribute called:
    "Leading Transaction Category".  This tells you the general context in which the transaction is used.  The other item to view is the assignment of business transaction categories found in the maintenance screen.
    This information general corresponds to one of the options that the EEWB will give you on the transaction type.
    As far as extensions go, my recommendation is the following:
    - Use CUSTOMER_H Customer Header Extensions for any new fields at the header level.
    - Use CUSTOMER_I Customer Item Extensions for any new fields at the item level.
    Unless you have a specific requirement to extend a segment of the transaction, I recommend placing all new fields in these segments.  The CUSTOMER_H & CUSTOMER_I segments are considered "standard" segments, that are already built into all the necessary API structures. 
    Let me know if you have any further questions.
    Good luck,
    Stephen

  • How to determine a View Object Type (read only or Updatable) ADF B.C 10.1.3

    Hi all,
    in scott Schema by ADF B.C 10.1.3, I created an entity object like emp
    and created view object EmpView from emp and dept entities
    and Application Module
    and when draging EmpView and dropping it in jspx
    while running I got an error :
    JB0-25003 your EmpView View Object has no Type
    How to determine a View Object Type (read only or updatable) in B.C ?
    Thanks

    Hi,
    this should not require any manual confiuration. Can you select the ApplicationModule in the model, right click on it and run the ADf BC tester ? Check if he ViewObject runs if not added to JSF
    Frank

  • # of objects, not the size of the objects, determine size of a Collection

    There are objects, and references to objects.
    Do, List / Set / Map , etc. just maintain a list of 32-bit addresses for their contained objects? What more does a Collection need, memory-wise, to add an element? The size of the objects in a Collection should not matter?
    listA.add(new Integer(2));  // listA size grows by 32-bits
    listB.add(new GiantSizedClass());  // listB size grows by 32-bitsI started thinking about Collections being able to dynamically grow in runtime. I heard this is complex, but it "looks" like all you do is append a memory address and incriment a counter? This sounds quick, easy, and incorrect. I don't understand. Thanks.

    jverd, ejp: you have always been there with quick responses to help me. ejp, i purchased your book "Fundamental Networking in Java". When I start programming again, your book about RMI is on my list. that said.
    with all sincerity. i belived that serliazing objects in byte[] allows for storing objects in objects, not object references in objects. here is my test code (just cut/paste):
    My idea seems similars to me as cryogenics and so that is the theme of my test code (and it is my favourite movie). note: this code is "proof of concept" and is exetremely hacked together.
    public class Test {
      private static HashMap<String, byte[]> barracks = new HashMap<String, byte[]>();
      public static void main(String[] args) {
        try {  new Test().go();  }   catch(Exception e) {  e.printStackTrace();  }
      public void go() throws Exception {
        Employee empl = new Employee("Dallas", "Captain");
        barracks.put(empl.name, cryogenicallyFreeze(empl));
        empl = new Employee("Kane", "Navigator");
        barracks.put(empl.name, cryogenicallyFreeze(empl));
        empl = new Employee("Ripley", "First Officer");
        barracks.put(empl.name, cryogenicallyFreeze(empl));
        empl = new Employee("Ash", "Science Officer");
        barracks.put(empl.name, cryogenicallyFreeze(empl));
        System.out.println("___log file___");System.out.println(".........");
        int id = (int) (System.currentTimeMillis() % barracks.size());
        System.out.println("[Nostromo]: emergency id #"+id+". Re-animation initiated...");
        switch (id) {
          case 0: empl = (Employee) reanimate("Dallas"); break;
          case 1: empl = (Employee) reanimate("Kane"); break;
          case 2: empl = (Employee) reanimate("Ash"); break;
          case 3: empl = (Employee) reanimate("Ripley");
        System.out.println("[Nostromo]: \"" + empl.name + "\" in command.");
        System.out.println("["+empl.name+"]: Hello. I was an object, not a reference, stored in a collection.");
        System.out.println();
        public static Employee reanimate(String name) throws Exception {
            PipedOutputStream pout = new PipedOutputStream();
            PipedInputStream pin = new PipedInputStream(pout);
            byte[] frozenEmpl = (byte[]) barracks.get(name);
            pout.write(frozenEmpl);
            ObjectInputStream ois = new ObjectInputStream(pin);
            return ((Employee) ois.readObject());
        public static byte[] cryogenicallyFreeze(Employee emp) throws Exception {
            PipedOutputStream pout = new PipedOutputStream();
            PipedInputStream pin = new PipedInputStream(pout);
            ObjectOutputStream oos = new ObjectOutputStream(pout);
            oos.writeObject(emp);
            byte[] frozenEmpl = new byte[pin.available()];
            pin.read(frozenEmpl);
            return frozenEmpl;
          public static class Employee implements Serializable {
            String name; String title;
            Employee(String n, String t) {  name = n; title = t;  }
    }"inside" of each byte[] object is an "Employee" object? I can't see it any other way. But I am not the sharpest pencil in the drawer...I'm on vacation from coding for a while. maybe i will get it when i start again. thanks.
    Edited by: rdkh on Jan 29, 2010 3:53 AM

  • Determining Size of Requests & Responses

    Hi there,
    I'm looking for a reliable and consistent means of determining the size of data transferred between clients and Servlet-based server-side applications over HTTP.
    I've been exploring doing this with a Servlet Filter which would attempt to measure the size of the HttpServletRequest and HttpServletResponse objects passing through it.
    While I've been able to write code to measure the size of an HttpServletRequest (by inspecting headers and body content), doing so for responses appears to be more error prone, because the HttpServletResponse interface does not expose accessors to items such as headers and status messages.
    The only solution I can think of is to use a custom HttpServletResponseWrapper implementation which would track data size of calls to mutator methods such as setHeader() and setStatus().
    However, it's not guaranteed that all of the headers and status messages encapsulated in the response, such as those created by the Servlet Engine itself, will be added through the API (rather than the underlying impl), making this approach error-prone at best.
    Can anyone suggest a more reliable means of measuring the amount of data being transferred between the client and server tiers?
    Any suggestions or comments are greatly appreciated.
    Regards,
    Sasha Haghani.

    Could you not get the content length by extending HttpServletResponseWrapper in this manner:
    public class CustomResponseWrapper extends HttpServletResponseWrapper
    private int contentLength;
    public CustomResponseWrapper(HttpServletResponse response)
    super(response);
    public void setContentLength(int length)
    this.contentLength = length;
    super.setContentLength(length);
    public int getContentLength()
    return contentLength;
    Then after the filter is invoked with doFilter, you could get the content length.
    Apologies if I'm not understanding your situation.

  • Determining size of CursoredStream

    Hello,
    we are developing a system using Toplink. One of our functions uses a CursoredStream to read the result set in sections from the server. The data read query is built "manually" due to complexity reasons. The query needs an additional count query to determine the size of the result set. Now we found that the execution of this count query causes a loss of performance. Is there any other way to determine the result set's size avoiding the count query to be executed? We tried to loop through the CursoredStream to count its elements but this is even slower for large result sets...
    Any help is appreciated!
    Thank you in advance!
    Danilo Gld_l

    Hello,
    thank you for your answer. By now, I tried the following:
    (1) Loop through the CursoredStream and count its objects:
         aCursoredStream = (CursoredStream) getClientSession().executeQuery(aReadAllQuery);
         int size = 0;
         aCursoredStream.mark(1);
         while (!aCursoredStream.atEnd()) {
              aCursoredStream.read();
              size++;
         aCursoredStream.setSize(size);
         aCursoredStream.reset();
    (2) Loop through the CursoredStream and read its object in sections:
         aCursoredStream = (CursoredStream) getClientSession().executeQuery(aReadAllQuery);
         int size = 0;
         int stepSize = 100; // also tried other values without mentionable performance differences
         aCursoredStream.mark(1);
         while (!aCursoredStream.atEnd()) {
              try {
                   aCursoredStream.read(stepSize);
              } catch (QueryException exc) {
                   stepSize = stepSize / 2;
                   continue;
              size += stepSize;
         aCursoredStream.setSize(size);
         aCursoredStream.reset();
    (3) Filter CursoredStream size from Exception message:
         aCursoredStream = (CursoredStream) getClientSession().executeQuery(aReadAllQuery);
         int size = 0;
         int stepSize = Integer.MAX_VALUE - 1;
         // initialize field for "position" attribute of the cursored stream
         Field positionField = null;
         // store page size of cursored stream's policy
         int pageSize = aCursoredStream.getPolicy().getPageSize();
         aCursoredStream.mark(1);
         // set policy's page size to maximal integer to avoid exception when changing position and reading
         aCursoredStream.getPolicy().setPageSize(stepSize + 1);
         try {
              // fetch "position" attribute of the cursored stream and make it accessible
              positionField = aCursoredStream.getClass().getDeclaredField("position");
              positionField.setAccessible(true);
         } catch (NoSuchFieldException exc) {
              exc.printStackTrace();
         // while cursor is not at the stream's end yet (should never happen)     
         while (!aCursoredStream.atEnd()) {
              try {
                   // set "position" to actual position (should always be 0) plus step
                   // must happen via reflection because there is not any setter available
                   positionField.set(aCursoredStream,
                                  new Integer(aCursoredStream.getPosition() + stepSize));
                   try {
                        // try to read the next element from the stream
                        aCursoredStream.read();
                   } catch (QueryException exc) {
                        // exception since stream size is not greater than the initial read size of
                        // cursor policy
                        // reset the cursor and the size counter
                        aCursoredStream.reset();
                        size = 0;
                        // while cursor is not at the stream's end yet
                        while (!aCursoredStream.atEnd()) {
                             // read an element from the stream
                             aCursoredStream.read();
                             // and increment the size counter
                             size++;
                        // leave the outer while loop
                        break;
              } catch (IllegalAccessException exc) {
                   exc.printStackTrace();
              } catch (ArrayIndexOutOfBoundsException exc) {
                   // exception since element at position of maximal integer does not exist
                   // filter size from exception message and leave while loop
                   size = new Integer(exc.getMessage().
                                  substring(exc.getMessage().lastIndexOf(" ") + 1)).intValue();
                   break;
         // if size could be determined, provide it to cursored stream
         if (size != 0) {
              aCursoredStream.setSize(size);
         // reset cursor policy's page size to initial value
         aCursoredStream.getPolicy().setPageSize(pageSize);
         // reset cursor position
         aCursoredStream.reset();
    The third option proved to be a little bit faster than the other two. But it is still slower than the COUNT(*) query for large result sets depending on the query. We are talking about result sets comprising some thousand records. Depending on the complexity of the query, the count query takes longer than the data query - for whatever reasons...
    The data query always contains several ORDER BY criteria. So, in my opinion, the database has to process the complete result set (or at least all entries of the ORDER BY columns) to correctly sort it. Am I wrong if I assume that it has to know the record count afterwards? My intention is to retrieve this size with the least performance effort...
    Nevertheless I will try your suggestion to retrieve the count by executing a ReportQuery. Thank you.
    At the moment I am trying to use a ScrollableCursor to retrieve its size as follows:
         if (aScrollableCursor.last()) {
              aScrollableCursor.setSize(aScrollableCursor.currentIndex());
              aScrollableCursorResultSet.setSize(aScrollableCursor.getSize());
              aScrollableCursor.first();
    Performance tests are pending...
    Danilo Gld_l

  • Can you determine a dragged objects Class Name when it is dropped?

    Is there a way to determine the class name for a dragged object.
    I have set up two objects. One is a JList that acts as a data source for the second object which is a JTable. Both objects serve as both drag source and drop targets. I need to be able to react to the following events:
    1. Drag value from JList to JTable.
    2. Drag value from JTable to JTable (itself) to reposition order.
    3. Drag value from JTable to JList (deletes item from JTable).
    So far, I have had no problem in getting #1 to work.
    The problem is determining how to consistently interpret which event is happening for 2 and 3. Both the drop (DropTargetDropEvent event) and the dragDropEnd (DragSourceDropEvent event) are fired for either 2 or 3 above. If I could identify the source class for the dragsource and the target class for the droptarget, the coding would be easy. I haven't been able to find anything on this while reviewing the API documentation.
    Any help would be appreciated.
    Thanks

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • How to find out size of objects

    hi, i need to draw a few objects in PS - a few rectangles and circles, and i need to draw them with precise size - width and height, but i dont know where i can find some information about their width and height (in cm or mm). once i draw them, there's nothing about their size in the panel or properties. thanks  

    A way to measure pretty much anything is to select the Ruler tool, then drag from one side to the other...
    Once you've set the endpoints, you can read the results near the top of the Photoshop main window.  It will read out in whatever units you've set in Edit - Preferences - Units & Rulers
    -Noel

  • Need help on -- Size of object

    how do i get the size of the object ?
    Thanks in Advance

    You can't. What makes you think you need this, because in Java we don't need to worry about this. You do not explicitly allocate or free memory, so the size of an object is not needed. Some people will tell you to serialize an object to a byte array and that the size of the array is the size of the object, but they're completely wrong. The size of an object is, roughly, the size of every primitive field it has, plus the size of a reference to an object multiplied by the number of reference fields, plus a small overhead for simply existing itself. But as I said, you don't need to worry about it

Maybe you are looking for

  • Business Graphics in Adobe Form

    Hi Gurus, One of our client has requirement of showing business graphics like Graphs, pie charts on the Adobe form. Is it possible in Adobe forms to show these graphics. If yes, then can anyone please send me some links, documents. With Regards, Amit

  • Error on 64bit Windoen 2008 Server

    Hi Friends, I am running SAP B1 8.8 PL15, my AddOn is working fine on my laptop (32 bit Windows). I have compiled it with x86 CPU Config. But when i run it on my server which is 64bit it gives error "Object Reference Not Set to an Instance of an Obje

  • Is it possible to create a musical score without measures?

    Is there a way to display the musical score of a particular track without any measures (or bars as they are often called)? For example I'd like to be able to play a melody on my keyboard with no metronome and no time signature but have the notes them

  • ED is not capture what is the problem?

    2)     I done follow function a)     po creation b)     gr c)     capture excise d)     invoice Due to some error ocuured I reversed invoice, Excise, G.R e)     Then, again I made G.R f)     Then When I try to capture ED not capture and further I don

  • How to import from existing lightroom to the cloud

    How do I get my existing LR photos and catalogs into the new LR CC version? Thanks for your help!