Is JaxB the correct tool for what I want

(New to JaxB/XML, but good with Java)
I'm using an XML document to hold information about classes. Currently I'm using JaxB and it seems to work ok, but I just had one consern. It would be nice (both faster and less mem) if I could read the XML information into the classes I was using in my program directly. Right now with JaxB, I am reading them into some generated classes and retrieving that information from those classes and putting it into my main classes. What I would like to do is while information for classes is being read in, don't create more memory for them to be stored into, instead store it directly into the main classes. I'm thinking this would be faster. Any ideas? Should I stick with JaxB or is something else better suited for what I want. As an example, my program reads in a List[] Float, but what I really need is a float[] (Yes I know how to convert, but it'ld be nice to start with the float[]) As another example, I read in 3 floats right now as Float[] but what I really need is a class called Vector3f() I'm using, derived from those 3 floats. It would be nice to give me that Vector3f directly instead of making a Float[] and me having to make a Vector3f

That's List Float up there, not List[] Float :)

Similar Messages

  • Determine the component/group for what I want to test

    Hello expert,
           in the following path, how can I determine the component for what I want to test ?
         test script>attributes>general tab-->component
          and also how to determin "group " in the "insert statement" function
    Many Thanks,
    Edited by: CETZHBO on Nov 24, 2011 7:00 PM

    what are universal buttons? and when you say they are the
    same on each layer, do you mean they look the same (which is
    irrelevant)? or do you mean something else?
    and each button loads a different video means you want an flv
    file to play when a button is pressed? if so, do you want to use
    the video class or flvplayback class to display your flv?

  • The Best Tool For Multiple Animated Objects

    Hi,
    I am expirimenting with Flash Web Sites, and I would like suggestions as to a starting point for my project, and I am assuming a Flash website is where I would start.
    Basically, If I were to open up a web page, I would like to see multiple animated objects.  For example, if I were to simulate an Emergency Room, I would have an EKG displaying a heart rate, then perhaps see a breathing maching apparatus moving up and down, a Drip bag (sorry, don't know the real term), dripping into a patient's tube.  And of course, if I were to roll over an object it would animate, and if clicked on more animation or on to another page.
    I tried creating the animated objects in Fireworks, and I thought I could combine various Firworks files into one, but it didn't work (too many frames), either becasue I lack the knowlege of how to do this or simply it cannot be done that way in Fireworks.  I had a background with one animated flashing object (that was easy), but combining multiple independent objects, I could not figure it out.
    Someone suggested that I would have to use Action Scripts, which made me realize, I don't know the best way to accomplish my example above, and although I know I may be over my head, I would just like to get direction as to where I should begin.
    Should it all be in Flash in the first place?  To continue on with the example above, after a user clicks on the rollover image, a girney comes rolling in and we are giving choices on a monitor with what our next actions should be, which would take us into another page.  (this is just to give you perpective of what I am trying to accomplish).
    Should I create independent animated objects (files) in Fireworks, then somehow import them into their specified location in Flash.
    I hope this makes sense and I am hoping someone is kind enough to provide a starting point.
    Best.

    Flash is the best tool for what you want and most of it can be done once you get a handle on the basics.
    For you interactivity (rollOvers / triggering more animations with mouse) you will need some actionscript but don't get hung up on that now.
    There is a world of info out there. Google "animation basics in flash) you may have to weed through some garbage but you will find what you are looking for somewhere.

  • Can't figure out the correct syntax for this select statement

    Hello,
    The following statement works great and gives the desired results:
    prompt
    prompt Using WITH t
    prompt
    with t as
       select a.proj_id,
              a.proj_start,
              a.proj_end,
              case when (
                         select min(a.proj_start)
                           from v b
                          where (a.proj_start  = b.proj_end)
                            and (a.proj_id    != b.proj_id)
                        is not null then 0 else 1
              end as flag
         from v a
        order by a.proj_start
    select proj_id,
           proj_start,
           proj_end,
           flag,
           -- the following select statement is what I am having a hard time
           -- "duplicating" without using the WITH clause
            select sum(t2.flag)
              from t t2
             where t2.proj_end <= t.proj_end
           ) s
      from t;As an academic exercise I wanted to rewrite the above statement without using the WITH clause, I tried this (among dozens of other tries - I've hit a mental block and can't figure it out):
    prompt
    prompt without with
    prompt
    select c.proj_id,
           c.proj_start,
           c.proj_end,
           c.flag,
           -- This is what I've tried as the equivalent statement but, it is
           -- syntactically incorrect.  What's the correct syntax for what this
           -- statement is intended ?
            select sum(t2.flag)
              from c t2
             where t2.proj_end <= c.proj_end
           ) as proj_grp
      from (
            select a.proj_id,
                   a.proj_start,
                   a.proj_end,
                   case when (
                              select min(a.proj_start)
                                from v b
                               where (a.proj_start  = b.proj_end)
                                 and (a.proj_id    != b.proj_id)
                             is not null then 0 else 1
                   end as flag
              from v a
             order by a.proj_start
           ) c;Thank you for helping, much appreciated.
    John.
    PS: The DDL for the table v used by the above statements is:
    drop table v;
    create table v (
    proj_id         number,
    proj_start      date,
    proj_end        date
    insert into v values
           ( 1, to_date('01-JAN-2005', 'dd-mon-yyyy'),
                to_date('02-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 2, to_date('02-JAN-2005', 'dd-mon-yyyy'),
                to_date('03-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 3, to_date('03-JAN-2005', 'dd-mon-yyyy'),
                to_date('04-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 4, to_date('04-JAN-2005', 'dd-mon-yyyy'),
                to_date('05-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 5, to_date('06-JAN-2005', 'dd-mon-yyyy'),
                to_date('07-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 6, to_date('16-JAN-2005', 'dd-mon-yyyy'),
                to_date('17-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 7, to_date('17-JAN-2005', 'dd-mon-yyyy'),
                to_date('18-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 8, to_date('18-JAN-2005', 'dd-mon-yyyy'),
                to_date('19-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 9, to_date('19-JAN-2005', 'dd-mon-yyyy'),
                to_date('20-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (10, to_date('21-JAN-2005', 'dd-mon-yyyy'),
                to_date('22-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (11, to_date('26-JAN-2005', 'dd-mon-yyyy'),
                to_date('27-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (12, to_date('27-JAN-2005', 'dd-mon-yyyy'),
                to_date('28-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (13, to_date('28-JAN-2005', 'dd-mon-yyyy'),
                to_date('29-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (14, to_date('29-JAN-2005', 'dd-mon-yyyy'),
                to_date('30-JAN-2005', 'dd-mon-yyyy'));

    Hi, John,
    Not that you asked, but as you proabably know, analytic functions are much better at doing this kind of thing.
    You may be amazed (as I continually am) by how simple and efficient these queries can be.
    For example:
    WITH     got_grp          AS
         SELECT     proj_id, proj_start, proj_end
         ,     proj_end - SUM (proj_end - proj_start) OVER (ORDER BY  proj_start)     AS grp
         FROM     v
    SELECT       ROW_NUMBER () OVER (ORDER BY grp)     AS proj_grp
    ,       MIN (proj_start)                         AS proj_start
    ,       MAX (proj_end)               AS proj_end
    FROM       got_grp
    GROUP BY  grp
    ORDER BY  proj_start
    ;Produces the results you want:
      PROJ_GRP PROJ_START  PROJ_END
             1 01-Jan-2005 05-Jan-2005
             2 06-Jan-2005 07-Jan-2005
             3 16-Jan-2005 20-Jan-2005
             4 21-Jan-2005 22-Jan-2005
             5 26-Jan-2005 30-Jan-2005This is problem is an example of Neighbor-Defined Groups . You want to GROUP BY something that has 5 distinct values, to get the 5 rows above, but there's nothing in the table itself that tells you to which group each row belongs. The groups are not defined by any column in hte table, but by relationships between rows. In this case, a row is in the same group as its neighbor (the row immediatly before or after it when sorted by proj_start or proj_end) if proj_end of the earlier row is the same as proj_start of the later row. That is, there is nothing about 03-Jan-2005 that says the row with proj_id=2 is in the first group, or even that it is in the same group with its neighbor, the row with proj_id=3. Only the relation between those rows, the fact that the earlier row has end_date=03-Jan-2005 and the later row has start_date=03-Jan-2003, that says these neighbors belong to the same group.
    You're figuring out when a new group starts, and then counting how many groups have already started to see to which group each row belongs. That's a prefectly natural procedural way of approaching the problem. But SQL is not a procedural language, and sometimes another approach is much more efficient. In this case, as in many others, a Constant Difference defines the groups. The difference between proj_end (or proj_start, it doesn't matter in this case) and the total duratiojn of the rows up to that date determines a group. The actual value of that difference means nothing to you or anybody else, so I used ROW_NUMBER in the query above to map those distinct values into consecutive integers 1, 2, 3, ... which are a much simpler way to identify the groups.
    Note that the query above only requires one pass through the table, and only requires one sub-query. It does not need a WITH clause; you could easily make got_grp an in-line view.
    If you used analytic functions (LEAD or LAG) to compute flag, and then to compute proj_grp (COUNT or SUM), you would need two sub-queries, one for each analytic function, but you would still only need one pass through the table. Also, those sub-queries could be in-line views; yiou would not need to use a WITH clause.

  • What is the correct cable for iMac 11,2 Intel core i3, mini dvi to vga or mini display port to vga?

    What is the correct cable for iMac 11,2 Intel core i3, mini DVI to VGA or mini display port to VGA to hook up to projector? Thanks!

    mini-DisplayPort.
    Regards.

  • What are the needed tools for JDBC???

    iam new to this field, i want to know what are the required tools for JDBC??
    i know that i need java.sql and javax.sql packages, but how can i get them???
    what about the drivers???
    thnx in advance

    You need to go to the vendor's web site such as Oracle and download the jar file for that particular database. Example: ojdbc14.jar for an oracle database and copy it to the 'lib' folder of your project and then include it with your project. Within that jar file, you will have datasource, preparedStatement, resultSet objects. You will need to read up on how to instansiate the datasource for that database from the vendor's documentation.

  • Update my app. What is the correct procedure for updating an app/folio?

    I designed a folio in Indesign CS6 and created an app of the folio in adobe dps and succesfully uploaded it to the app store. Now I want to update my app. What is the correct procedure for updating an app/folio?

    no, just update your content and recreate the Single Edition App. Your certificate should still be valid so there is not need to recreate these.
    ... your App ID absolutely need to be the exact same one you used for the first version if you want to make sure this is an update.

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • What are the correct settings for the Canon 5D mark II in FCP 7 ?

    I am shooting full HD at 23s97 fps.. tried making a preset for the Canon but when I import fils FCP always wants to change to appropriate settings for this file type but doesn't tell me what that is...
    (latest firmware installed)
    Please, can someone provide all the correct settings for me?
    And also, why doesn't the camera show up on the desktop/in the menus when attached to the mac? I have ro use EOS utility every time I want to get anything off of the camera... and FCP doesn't see it either. That's just not right - FCP MUST recognise my camera!! : (
    Please help - I don't want to start editing until I have the right settings for this footage.
    Thanks
    Jim

    Welcome to the Boards
    Not sure what you mean with the following, looks like a word dropped?
    I have ro use EOS utility every time I want to get anything off of the camera...
    Anyway, some more specs on your system could help point where the issue is. With the new Plug-In by Canon you can Log & Transfer from the Flash Card (not sure how you connected the camera.) Alternatively you could just drag the files in (but make sure to keep all files such as THM in case you use Log and Transfer later.)
    Generally it is best to transcode to Pro Res to be able to work with the files in Final Cut. (Log & Transfer should do that, or using Compressor/Mpeg Streamclip.)
    It (Final Cut) is probably changing the timeline to match the codec, or depending on your last preset used, just switching things around. In other words if you were editing in DV and had a set up for that, new sequences would default to that and if you try to ad anything else you will get the message.
    Take a look at the search over there -> to look for the Canon 5D threads for some more info.
    What I would do is just pull one of the clips in to start and look at what the sequence settings are aftr Final Cut changes them for you - they should be fine generally, though you will want to change Codecs to Pro Res.
    I like just batch conversion of all my clips from the 5D Markk II and then work from there. (I do not hook up the camera to the computer, just use a card reader.)

  • What is the best tools for analyzer VoIP

    I need ur help, i looking the tool helps analyzer VoIP in WAN/TDM. What is the best tool for Cisco System or wich recommends.
    Thxs!

    Hey turbot,
    Thanks for contacting National Instruments support.  Each set of the vis you mention are the latest, and some use similar methods to do the FFT than the other.  The SMT is usually the best in most applications.  There is also another option in the case of scope, you can fetch FFT data from the driver.  The FFT is not actually implemented in hardware, but in the driver, and this is transparent to the user.  It's simpler to use, but not as efficient as the SMT.
    I hop this answers your questions.  Let me know if I can be of further help.
    Regards,
    Kenn North
    Senior Product Manager - Search, Product Data
    http://ni.com/search

  • What are the best tools for converting .shg files to HTML image maps?

    After trying several different ways to import our WinHelp
    project into RH HTML, I'm left with recreating the project in HTML.
    There are over 200 .shg files. What's the best tool for converting
    them? Is there a free program that converts them? Or is there a
    better way?
    Lacona

    Yes, I have not been able to import the .hlp file, which was
    my last posted question/issue. I have tried creating a Microsoft
    HTML layout in RH4 Word; it begins to compile and, somewhere in the
    process, just freezes. I've tried importing the .hlp file into RH
    HTML; same result. I've tried creating a new HTML project with the
    .hlp file; same result. If I could import the file, it'd be great.
    Otherwise, I'll need to recreate the entire project, which brings
    me to converting the .shg files. Any ideas?

  • I am trying to use the liquify tool for the first time. I created a new document (RGB/8) and before I place my photo, the liquify option is available. After I place the photo, the liquify option disappears. What am I doing wrong?

    I am trying to use the liquify tool for the first time. I created a new document (RGB/8). Before I place my photo, the liquify option is available. After I place the photo, the liquify option disappears. What am I doing wrong?

    What am I doing wrong?
    For one thing you forgot to mention the version of Photoshop you use.
    Did you place the image as a Smart Object? Liquify got Smart-capabilities with Photoshop CC.

  • What are the correct settings for my WRT54GS for using remote access on a Windows Home Server?

    I can not remotely access my Windows Home Server from outside.  What are the correct settings for my WRT54GS?

    I have opened ports 80, 443,and 4125 to PCP.  The  router address is http://192.168.1.1, my address is 221.40.138.170.
    Thank you.

  • VT01N: what is the correct  procedure for creating shipment

    Hi Gurus ,
    Please tellme the correct  procedure for creating shipment  in VT01N   with respect to the  Sales order  no .  there  are  deliveries and ohter  sceens what to do  first .
    Regards, Jaspal

    Hi Jaspal,
    Procedure for creating shipment sequence goes as:
    <b>Shipping Processing and Analyses</b>
    Shipping activities.
    Deliveries.
    Picking and confirmation.
    Packing.
    Goods issue.
    Collective processing.
    Shipment.
    Billing.
    Sales Information System.
    Standard analyses.
    Backorder processing.
    Sales and distribution documents.
    Functional analyses.
    Planning.
    Pls refer the link:
    http://www.sap-img.com/sap-sd.htm for more details.
    Regards,
    Hemachandra K S

  • What is the correct wpa for hp photosmart 5514e all in one printer b 111h

    What is the correct WPA for HP Photosmart 5514e All in one Printer B111h

    Hi,
    The correct WPA one is the one only you (or relatives/friends) know. You may forget therefore you have to logon to you wireless router to find out.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Apple TV 2 Setup

    Hi! Just a quick question to see if this set up will work... I have a Sharp XGF260X which only supports DVI and I am wanting to get an Apple TV 2 so I can mirror my iPad 2 onto the screen... The set up is: AppleTV 2 connected to projector using HDMI

  • Fixing System Control Manager (SCM) Crashing from Unhandled Error in Windows 8

    If you get an unhandled error message when rebooting your laptop after installing SCM v10.013.03016 check to see if you have Visual C++ 2012 Redistributable installed on you PC. If not, download from Microsoft. I installed version 11.0.51106.1 and SC

  • Opening/focusing new/existing window with refreshed data

    hi , I want to open the results in a new browser window with current requested data as soon as I click on a button from a jsp.I mean as soon as I click on a button if the new window is already opened then the opened window should be get focused with

  • Re: hp photosmart 7250 printer

    how can i get my hp photosmart 7250 printer to work on windows 8  64bit  i had been using it on windows 7

  • Whatever happened to "Copy To Ram" ???

    I've read around that now that aufs2,... has been dropped, specialized scripts like "cp2ram" may not work anymore. dm-utils ? Maybe it's not completely just that, it could be as well, the changes incorporated into the new arch.linux kernel 3.* ? anyo