Non-Entity Based VO quick question

Hi
Are there tutorials where they would help show the step-by-step details on how to implement SelectOneChoice VO with another non-Entity VO to display in an ADF table ?
We tried the expert mode and couldn't get it to work.
The SelectOneChoice read-only VO Y is listed as a LOV such that when a value is selected, the non-Entity VO X displays its results in the ADF table based on the SelectOneChoice value selected.
This non-entity VO X is made up of attributes from a few other tables and SelectOneChoice read-only VO Y.
Do we need to use View links to make that work too ?
We understand that the ADF guide encourages developers to use EO-based VOs but it is not relevant in our case at this time.
Thanks
Edited by: 898644 on Aug 31, 2012 9:07 PM
Edited by: 898644 on Aug 31, 2012 9:10 PM
Edited by: 898644 on Aug 31, 2012 9:12 PM

Hi Timo
Thanks for responding. We went over it.
We are restricted in our design changes. We'll look into it more your solution at your blog site.
We're still wondering if we could apply the known method of cascading lists but the difference is that this time, the 2nd component is not a list but a table of transient attributes.
Our read-only LOV is to act as the "master" and the table is to be our "detail" of the selected LOV value.
We like to have the table bound to the read-only LOV.
Any hints in the direction would great too.
We're still new to this.
Thanks
Edited by: 898644 on Sep 2, 2012 4:35 PM

Similar Messages

  • Re-importing into iPhoto 06 Quick Question

    I hope.
    My photos are on an external hard drive. I jogged the wire the other day during an import and stopped the import. When I next loaded up iPhoto all the photos had changed to ! , so I reimported them, which all worked fine, but it's reimported everything including the thumbnails, so I now have every picture at least twice and want to get rid of all the small sized files.
    Can I do it a quick way like search for photos below a certain size or should I import from a different point? I imported from the iPhoto directory, but should I have been a bit more specific on a sub directory? I want to make sure I get the original photos and any photos I've edited.
    Finally, should I delete the existing thumbnails in one of the directories before I re-import?
    Thanks

    It’s not a quick question.
    so I reimported them, which all worked fine, but it's reimported everything including the thumbnails, so I now have every picture at least twice
    This was not the way to go about this. You’ve now imported to a damaged database and that is inherently unstable.
    There is no way to search on file size in iPhoto. You may have some luck with Duplicate Annihilator
    However, do you still have the original library? If so, here’s how to start over:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Trying to delete a record from an entity-based VO in ADF

    We are using J-Developer 9.0.5.2
    This is a web app using struts and ADF BC
    Click the link below to view part of the struts diagram that relates to this question
    http://home.earthlink.net/~katie1les/images/delete.gif
    1. We have a DataPage that displays a list of items (catalogItemLIsting.jsp). This is a view of all items in a particular category based on the ItemsVO. Each item has a delete icon beside it.
    2. The user clicks the delete icon which forwards to the bindDeleteItem DataAction that will bind that item number (through custom method in the AM) to an entity-based DeleteItemVO (the only record that will be in the DeleteItemVO is the item they selected to delete). This step corresponds to the deleteItem Data Page as seen in the image link above).
    We do this step (step 2) because we want to show the user a confirmation page with additional item information before they actually delete the item. Otherwise, we could just perform the delete from the original page.
    3. On the deleteItem data page there is a Delete (">Select</a>) link beside the single item in the view that when clicked should set the current row (the only row in the view object) and forward to the setDeleteItemDA Data Action.
    4. I dragged the setCurrentRowWithKey method from the DeleteItemVO onto the setDeleteItemDA data action.
    5. I forwarded that data action to the deleteItemDA data action where I dragged the Delete method from the DeleteItemVO.
    6. This action forwards to a deleteItemDP data page where I dropped a Commit action from the AM which owns the DeleteItemVO.
    The result of executing these steps brings it back to itself (deleteItem.do) and tries to rebind the single record view object producing a ORA-01008: not all variables bound error and not forwarding to the setDeleteItemDA data action.
    Are we using the right approach here?
    I tried following the example located at: http://otn.oracle.com/products/jdev/collateral/tutorials/9050/bizcomp_jsp_tut.html#delete, but there are some differences between the two. We are using data pages and a single view object, while the example is using regular jsp pages and a master detail view relationship.

    Thanks Steve for the reply. We dowloaded the following example (http://otn.oracle.com/products/jdev/tips/muench/DeleteEmpWithConfirm.zip) and tried to make it work for us. We set everything exactly the same (as far as we could tell). There is one difference though between what you have in this example and ours and that is that the VO that is dropped on the first data page is first bound by a custom method through a preceeding data action. When the page is rendered we see the item we choose (and that was bound in the data action) correctly on the page.
    The problem comes in when we click on the delete link on that page, it does not seem to be posting back properly - it appears to be ignoring the "confirmDelete" event, which is part of the url (and it's corresponding forward named the same) and instead ends up trying to rebind the VO on the same page which produces a "not all variables bound" error. Error listed below.
    Why is the Datapage seeking to rebind the VO again, when it was already bound previously? Shouldn't the setCurrentRowKey method simply set the current row on the VO without having to requery the VO again?
    *** error page ***
    You must correct the following error(s) before proceeding:
    JBO-29000: Unexpected exception caught: oracle.jbo.SQLStmtException, msg=JBO-27122: SQL error during statement preparation. Statement: SELECT DeleteItemInfoEntityObject.RETAILER_NUMBER, DeleteItemInfoEntityObject.AUTH_ITEM_CODE, DeleteItemInfoEntityObject.UPC, DeleteItemInfoEntityObject.ITEM_DESCRIPTION, DeleteItemInfoEntityObject.PACK, DeleteItemInfoEntityObject.RETAIL_SIZE, DeleteItemInfoEntityObject.UNIT_COST, DeleteItemInfoEntityObject.AWI_DEPT_NAME, DeleteItemInfoEntityObject.RETAILER_CATALOG_NAME, DeleteItemInfoEntityObject.RETAILER_CATEGORY_NAME, DeleteItemInfoEntityObject.RETAIL_PRICE, DeleteItemInfoEntityObject.QUANTITY_AT FROM DELETEITEMINFOVIEW DeleteItemInfoEntityObject WHERE AUTH_ITEM_CODE = :1 AND RETAILER_NUMBER = :2
    JBO-27122: SQL error during statement preparation. Statement: SELECT DeleteItemInfoEntityObject.RETAILER_NUMBER, DeleteItemInfoEntityObject.AUTH_ITEM_CODE, DeleteItemInfoEntityObject.UPC, DeleteItemInfoEntityObject.ITEM_DESCRIPTION, DeleteItemInfoEntityObject.PACK, DeleteItemInfoEntityObject.RETAIL_SIZE, DeleteItemInfoEntityObject.UNIT_COST, DeleteItemInfoEntityObject.AWI_DEPT_NAME, DeleteItemInfoEntityObject.RETAILER_CATALOG_NAME, DeleteItemInfoEntityObject.RETAILER_CATEGORY_NAME, DeleteItemInfoEntityObject.RETAIL_PRICE, DeleteItemInfoEntityObject.QUANTITY_AT FROM DELETEITEMINFOVIEW DeleteItemInfoEntityObject WHERE AUTH_ITEM_CODE = :1 AND RETAILER_NUMBER = :2
    ORA-01008: not all variables bound
    *** error ***
    Les, here's a minimal working sample:
    http://otn.oracle.com/products/jdev/tips/muench/Delete
    mpWithConfirm.zip
    It uses just two data pages and leverages the
    built-in event-handling features of ADF described in
    the ADF Data Binding Primer and ADF/Struts Overview.
    The pages use the post-back pattern to handle their
    own events before forwarding.
    http://otn.oracle.com/products/jdev/collateral/papers/
    0g/ADFBindingPrimer/index.html

  • Log file non-mac-based version of client? And CGBitmapContextGetData:invali

    I'm not sure if this is a security problem. I had to completely reset my airport yesterday and today re installed my remote back-up. My keychain is messing up. I don't know if these logs are normal or if something is amiss. My IP address before resetting it yesterday started with a 169 which means something ... please if someone can let me know if there is something i should do or if there are any questions i can answer. thank you.
    Jul 24 17:12:20 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:12:20 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:17:12 Macintosh com.apple.launchd[110] ([0x0-0x68068].com.apple.systempreferences[538]): Exited: Terminated
    Jul 24 17:17:12 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:25:45: --- last message repeated 1 time ---
    Jul 24 17:25:45 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:28:45: --- last message repeated 1 time ---
    Jul 24 17:28:45 Macintosh /usr/sbin/ocspd[676]: starting
    Jul 24 17:29:33 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:29:37: --- last message repeated 1 time ---
    Jul 24 17:29:37 Macintosh Microsoft Word[679]: CGBitmapContextGetData: invalid context
    Jul 24 17:29:59: --- last message repeated 189 times ---
    Jul 24 17:29:59 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:29:59: --- last message repeated 1 time ---
    Jul 24 17:29:59 Macintosh Microsoft Word[679]: CGBitmapContextGetData: invalid context
    Jul 24 17:30:02: --- last message repeated 204 times ---
    Jul 24 17:30:02 Macintosh com.apple.coreservicesd[47]: NOTE: Using non-mach-based version of client -> server communication, via direct function calls.
    Jul 24 17:30:02: --- last message repeated 1 time ---
    Jul 24 17:30:02 Macintosh Microsoft Word[679]: CGBitmapContextGetData: invalid context
    Jul 24 17:30:31: --- last message repeated 2355 times ---
    Jul 24 17:30:31 Macintosh Microsoft Word[679]: doClip: empty path.
    Jul 24 17:30:31 Macintosh Microsoft Word[679]: CGBitmapContextGetData: invalid context
    Jul 24 17:30:32: --- last message repeated 70 times ---
    Jul 24 17:30:31 Macintosh [0x0-0x84084].com.microsoft.Word[679]: Thu Jul 24 17:30:31 Macintosh.local Microsoft Word[679] <Error>: doClip: empty path.
    Jul 24 17:30:32 Macintosh Microsoft Word[679]: CGBitmapContextGetData: invalid context
    Jul 24 17:30:49: --- last message repeated 1066 times ---

    BAM! I had tried to disable my scheduled task, and it didn't seem to make a difference. I saw your reply and decided to just delete the scheduled task. My "6/29/09 10:46:39 AM com.apple.coreservicesd[74] NOTE: Using non-mach-based version of client -> server communication, via direct function calls." seem to be gone now.
    2 things: 1) My scheduled task was a "When the drive is connected" type
    2) I had originally "unchecked" this task, but when I went back in at a later date, it was checked. So either my user error, or somehow CCC re-enabled it.
    I was really getting sick of my log getting pummeled.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Session Facade and Access to a Non SQL Based Persistent Data Store

    Hi,
    We are currently using jDeveloper 10.1.3.5 and Oracle Application Server 10.1.3.5. We develop all our applications as Java portlets using Oracle PDK and they are exposed through Oracle Portal.
    In our environment, the persistent data is stored on a combination of an Oracle database and a non SQL based persistent data store.
    The way we access the non SQL persistent data store is by posting a URL and receiving an XML document back in response. This mechanism is used both for enquiry and update of the persistent store.
    We have to create a new XML schema for each entity that we need to access and there are software changes on both our environment (Java) and the non SQL based persistent data store.
    In an attempt to shorten development times we are looking to start using ADF faces and EJB3.
    We have downloaded the SRDemo tutorial and made it work but there are some challenges.
    1. The SRDemo seem to have a very minimal implementation of a business layer. From what I can see, it is essentially some straightforward wiring between database attributes and their viewable representation. Is there a demo/tutorial containing a bit more meat in the business layer that you are aware of?
    2. Given our non SQL based persistent data store, how would you go about implementing EJB3 for such scenario. Is it recommended at all? How would you go about integrating the rest of the application (business layer and representation layer) to data arriving from such source?
    3. SRDemo is not intended to be exposed as a portlet. Is there a tutorial that we can use incorporating JSR168, ADF Faces and EJB3 in the same application? I also understand that there is a JSF-JSR168 bridge available. Can you provide some pointers here? Where can we find it? Would we be able to use it in jDeveloper 10.1.3.5?
    Regards

    Matt,
    The only way to associate an "x-axis" with a signal in the Write Data VI would be to feed it waveforms, which are constrained to use time as the x-axis unit. There is really no way around this, so in my opinion, the best solution for you would be to use the "rows are channels" conversion and write the frequency and amplitude values to the file independently. Then when you read the file in DIAdem, take the two channels and build a graph out of them there.
    Regards,
    E. Sulzer
    Applications Engineer
    National Instruments
    E. Sulzer
    Applications Engineer
    National Instruments

  • GR Reversal for Non GR based invoce Purchase order

    Hi Experts
    I have a query on standard SAP behavior
    I create a PO with GR indicator checked IR indicator checked but GR based IV indicator not checked
    this is a PO with Non GR based invoice
    Now I create Invoice  for full PO qty, the made GR for full qty and Invoice has been released for payment ( No blocks)
    Now I am reversing the invoice. During this reversal if the system throws an error or warning saying Invoice exists for PO.
    Please clarify
    Regards
    Kamalakkannan

    >
    Kamalakkannan Kandasamy wrote:
    > Hi Experts
    >
    > I have a query on standard SAP behavior
    >
    > I create a PO with GR indicator checked IR indicator checked but GR based IV indicator not checked
    >
    > this is a PO with Non GR based invoice
    >
    > Now I create Invoice  for full PO qty, the made GR for full qty and Invoice has been released for payment ( No blocks)
    >
    > Now I am reversing the invoice. During this reversal if the system throws an error or warning saying Invoice exists for PO.
    >
    > Please clarify
    >
    > Regards
    >
    > Kamalakkannan
    The question is not clear, is the system throwing a message at you. Seems like you have completed the cycle, and now you are reversing the invoice, that should not cause any messages coming up, unless you make a mistake in reversing

  • Non-recursion-based regex

    I'm doing some heavy duty very special case regexing. If fact I have to build them programatically as the actual regular expressions can grow to over 60,000 characters in length.
    I'm doing this in 1.3.1 and have tried a couple free/open source regex packages. As one might imagine, I get StackOverflowErrors very often in every package I've tried.
    If this is such a problem with regular expressions, it seems someone would have created a Java regexp package that doesn't rely so heavily on recursion. (In fact people have, in other languages, I just haven't found one in Java).
    Anyway, my first question is: is there a Java non-recursion-based regex package out there?
    I know I can increase the stack size, but to what?! I build my regexs on the fly, and the data they operate on is also generated on the fly.
    I think an OutOfMemoryError with a non-recursive implementation would be a lot less likely that a StackOverFlowError. ???
    It's Saturday (as you can see) and it looks more and more like I may have to write/port a regex package that fits the bill. This is really a pain.
    Another possibility is to use GNU Kawa (which implements proper tail recursion) to compile a Scheme regexp implementation into something I can use from Java. This seems really convoluted.
    Any ideas?

    Indeed, a 60,000 char regex is, to be blunt,
    ridiculous. There has to be another approach to
    whatever problem you are solving (is it biological in
    nature, perchance?). It's pattern recongition of structures of objects.
    My problem is that what I would REALLY like to do boils down to "regular expressions" over an 2-dimentional array of arbitrary objects, not characters.
    As a completely inane example: 3 Strings who's length is between 7 and 19 that don't start with "foo" or "bar", followed by any number of objects implementing Runnable but not Comparable.
    I started doing this from scratch, but I thought a faster way to get things done was to cheat.
    So I created a system to translate the objects I'm interested in to a "compact" String representation, right now it's about 32 characters long. I can specify properties I'm looking for with this representation, or specify I don't care with '.' values in the fields I don't care about. So for example a lowercase e in a particular index represents non-editable, uppercase means editable, '.' means I don't care. Some field/properties require multiple characters to represent them.
    Now the patterns I'm looking for are in a 2 dimensional array of objects.
    When you start multiplying hundreds of objects by hundreds of objects by 32 characters per object ... You get a pretty big regex.
    Another option I've started is custom, from scracth "Java Object Regular Expressions" or JOREs as I like to call them (I already started coding this and needed a package name).
    (Does anything like this already exist? I haven't found it.)
    Anyway, 60,000 is bordering on worst case scenarios. It could happen. 7000-ish is a more realistic average I'd expect, but it doesn't make worst cases go away.
    It seems even in many smaller cases I get a StackOverflowError, but there are probably more nested .{,}[^]+* type things in those to make them more complex.

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

  • ArrayController in non-document based Applications

    I just tried to use the ArrayController in an app. The app was not document based. I did everything as you are supposed to do, I made up a class called AppControll, set it Files Owner of the XIB file, connected the contend Array and so on. There were no warnings or errors, the compiler said No Issues, the Build was suchsessfull. But before the window has opened, the Application crashed. On the console was this log:
    2011-05-17 16:28:45.652 MyApp[9637:903] An uncaught exception was raised
    2011-05-17 16:28:45.656 MyApp[9637:903] [<NSApplication 0x10011b240> valueForUndefinedKey:]: this class is not key value coding-compliant for the key boxArray.
    2011-05-17 16:28:45.792 MyApp[9637:903] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSApplication 0x10011b240> valueForUndefinedKey:]: this class is not key value coding-compliant for the key boxArray.'
    *** Call stack at first throw:
              0   CoreFoundation                      0x00007fff8059a7b4 __exceptionPreprocess + 180
              1   libobjc.A.dylib                     0x00007fff864c30f3 objc_exception_throw + 45
              2   CoreFoundation                      0x00007fff805f2969 -[NSException raise] + 9
              3   Foundation                          0x00007fff867abb8e -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 245
              4   Foundation                          0x00007fff866db488 -[NSObject(NSKeyValueCoding) valueForKey:] + 420
              5   AppKit                              0x00007fff8810a384 -[NSApplication(NSScripting) valueForKey:] + 492
              6   Foundation                          0x00007fff866dedcc -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 226
              7   AppKit                              0x00007fff87e9fb6f -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] + 171
              8   AppKit                              0x00007fff88065f80 -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 368
              9   AppKit                              0x00007fff87e92a33 -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 557
              10  AppKit                              0x00007fff87e6f546 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1172
              11  AppKit                              0x00007fff87e6d88d loadNib + 226
              12  AppKit                              0x00007fff87e6cd9a +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
              13  AppKit                              0x00007fff87e6cbd2 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326
              14  AppKit                              0x00007fff87e6a153 NSApplicationMain + 279
              15  MyApp                            0x0000000100001302 main + 34
              16  MyApp                            0x00000001000012d4 start + 52
    terminate called after throwing an instance of 'NSException'
    The debugger tells me "Programm recieved signal SIGBART"
    If I cut the bnding to the contend array, the Applications stats as usual, but it dosent work, because there is no contend array.
    Then I tried something else. I made up a new project, this time a document-based one, and did exactly the same as I did before. It worked well and fine the way it should work. There was no problem and the ArrayController worked fine. I don`t think a made mistake writing the name of the array, because I allways copied and pasted the name to the IB. So I would like to know if it is possible to use an ArrayController in a Non-document based Application? What do i have to do differently? The reference about the ArrayController does not mention this. It would be great if you could help me soon, thank you.

    No, but actually this was not my Problem But It helped me figure out what the problem is in detail. If you use a document based application, NSDocument can call the subclass NSPersistentDocument. This automatically reads out the model (if you use Core Data. I do`t like Core Data because it`s sometimes a bit strange and it`s hard to hunt down bugs there, but I think basically the problem is the same) and create a managedObjectContext, wich is needed to run the NSArray Controller. The big question is now, how to call something simular to NSPersistentDocument wich is not a subclass ob NSDocument but of NSObject.

  • Quick question!!  Is it mandatory that I set up my DSL through the time capsule? I'd like to leave my current modem from my provider as the primary unit for networking.  So in other words can I just set up the time capsule as a back-up device for now and

    Quick question!!  Is it mandatory that I set up my time capsule as my DSL modem?  Based on the location of my iMAC right now it would be better to just leave the modem provided by my internet provider in place.  I really just want to use the time capsule as a back-up storage device for now and connnect the ethernet cable from my ISP at a later date.

    Generally it is easier to bridge the TC and plug it into the router.. it then lives on the network.. it is after all, a network drive.. and you can access it via your existing connection whether wireless or wired to the existing modem.
    If you really want a totally stand alone setup please tell me how you are presently accessing internet on the Mac you want to backup on the TC.

  • CreateNativeQuery and Non entity class

    just want to find out:
    a signature of the createNativeQuery() method is
    Query createNativeQuery(String sqlString, Class resultClass) My question is can the resultClass be a non entity?
    Regards,
    Michael

    I tried this method of getting a transfer object from my SqlResultSetMapping. The compilation and deployment works very fine but during runtime, I get null as values for every index of my array while the getResultList() returns a list of size 1.
    Query query = entityManager.createNativeQuery(SQL_REPORT_AGG_STM_ON_LN_BAL, "LoanCapitalization.reportMapping");
            AggregateStatementLoanBalanceReportData data = null;
            List<AggregateStatementLoanBalanceReportData> returnList = new ArrayList<AggregateStatementLoanBalanceReportData>();
            query.setParameter(1, reportCriteria.getFromDate());
            query.setParameter(2, reportCriteria.getToDate());
            List<Object[]> resultList = query.getResultList();
            System.out.println("resultList.size() >>>>>>>>>> " + resultList.size());
            for (Object[] obj : resultList){
                data = new AggregateStatementLoanBalanceReportData();
                System.out.println("(String)obj[1] >>>>>>>>>> " + (String)obj[1]);
                System.out.println("(String)obj[2] >>>>>>>>>> " + (String)obj[2]);
                System.out.println("(String)obj[3] >>>>>>>>>> " + (String)obj[3]);
                System.out.println("(String)obj[4] >>>>>>>>>> " + (String)obj[4]);
                System.out.println("(String)obj[5] >>>>>>>>>> " + (String)obj[5]);
                System.out.println("(String)obj[6] >>>>>>>>>> " + (String)obj[6]);
                data.setPolicyNumber((String)obj[0]);
                data.setName((String)obj[1]);
                BigDecimal loanPrincipal = new BigDecimal(Double.parseDouble((String)obj[2]));
                data.setLoanPrincipal(loanPrincipal);
                BigDecimal outstandingLoan = new BigDecimal(Double.parseDouble((String)obj[3]));
                data.setOutstandingLoan(outstandingLoan);
                BigDecimal interest = new BigDecimal(Double.parseDouble((String)obj[4]));
                data.setInterest(interest);
                BigDecimal totalOutstanding = outstandingLoan.add(interest);
                data.setTotalOutstanding(totalOutstanding);
                BigDecimal amountPaid = new BigDecimal(Double.parseDouble((String)obj[5]));
                data.setAmountPaid(amountPaid);
                BigDecimal amountLeft = totalOutstanding.subtract(amountPaid);
                data.setAmountLeft(amountLeft);
                System.out.println("the date is " + obj[6]);
                //data.setLastCapitalizationDate(obj[6]);
                data.setFromDate(reportCriteria.getFromDate());
                data.setToDate(reportCriteria.getToDate());
                returnList.add(data);
            }the size prints 1
    but other printline print null
    what could be wrong with this

  • Some quick questions before purchase of MBP

    Hey Guys/Gals,
    I've been a PC user all my life, but will now be making a permanent switch to Macs. I've been wanting to buy a MBP since they have been released, but have been hesitant (like many others I think...) about the issues of whine, extreme heat, warped screens etc...
    With the recent updates of the logic board and even battery, I think I'm ready to go for it. I just had some quick questions before I place my order:
    1. I could order my MBP from the computer store at my university. Do you guys think that will get me the newest possible MBP or will they maybe get me one that they have had in stock for ages? I really don't want to get stuck with an outdated logic board and/or battery. Is it safest just to order directly from the site?
    2. Although the issue with really hot MBPs seems to have gotten better, I am still quite shocked that people say that temperatures well above 70 Celsius are "within spec". I understand that Apple officially states this and that the Intel chip can handle up to 100 Celsius, but this seems crazy to me Basically, I want to ask if I am correct in my observations that the new Intel chips don't get much hotter than other chips around, but rather Apple has chosen to set the temperature mark that sets off the fans pretty hight (around the 70s if I remember correctly?)
    I would assume that in following their "mission" of creating beautifully designed computers, Apple also wants to have a really silent one. Now I'm all for a quiet machine, but I feel as though if fans were on either (a) all the time or (b) when the CPU reaches the high 50s lots of people would be happier.
    Anyway, it's just a thought. I noticed there are lots of experts around here, so I'm just interested to hear what you guys think about this approach that Apple seems to have taken. I don't think the heat will stop me from getting this amazing notebook, but it certainly is a little frustrating.
    Any responses are greatly appreciated.

    1. I could order my MBP from the computer store at my university. Do you guys think that will get me the newest possible MBP or will they maybe get me one that they have had in stock for ages? I really don't want to get stuck with an outdated logic board and/or battery. Is it safest just to order directly from the site?
    No matter where you take possession there's no assurance of when the machine was manufactured. There is really just as good a chance of getting a perfectly good computer regardless of place of purchase. If there is a problem it's covered under warranty. You can have the computer replaced within the first two weeks. Afterwards they will replace or repair. Without Applecare's extended warranty the computer is warranted for one year after purchase.
    2. Although the issue with really hot MBPs seems to have gotten better, I am still quite shocked that people say that temperatures well above 70 Celsius are "within spec". I understand that Apple officially states this and that the Intel chip can handle up to 100 Celsius, but this seems crazy to me Basically, I want to ask if I am correct in my observations that the new Intel chips don't get much hotter than other chips around, but rather Apple has chosen to set the temperature mark that sets off the fans pretty hight (around the 70s if I remember correctly?)
    You are wrong in your assumption. The Core Duo's maximum temperature is 125C before shutdown. Normal operating temperatures according to Intel's own documentation is 50-70C under average load. MBPs under heavy load will typically reach core temperatures over 80C. Then there's the added heat from the hard drive and GPU. The aluminum case acts as a partial heat radiator hence the case temperatures can get high. The MBP User Guide specifically states this and issues a warning about using the computer on one's lap.
    I would assume that in following their "mission" of creating beautifully designed computers, Apple also wants to have a really silent one. Now I'm all for a quiet machine, but I feel as though if fans were on either (a) all the time or (b) when the CPU reaches the high 50s lots of people would be happier.
    In fact the fans in the MBP are very quiet at least mine are. Unless you are in the hardware design business with intimate knowledge of using Core Duo chips in portable computers, then your observations, although certainly your opinion, are not based on anything factual.
    Anyway, it's just a thought. I noticed there are lots of experts around here, so I'm just interested to hear what you guys think about this approach that Apple seems to have taken. I don't think the heat will stop me from getting this amazing notebook, but it certainly is a little frustrating.
    More likely there are a lot of people around here who think they are experts. As the remark goes, "An 'expert' derives from ex, meaning 'has been', and spert, meaning 'drip under pressure.'"
    You'll read lots of opinions on these forums. Don't take for granted that everything you read is factual or truth. A lot of the opinions expressed are without any basis in fact.

  • CDP quick question

    Hi quick question, 
    Scenario looks like this: 
    ASR1k --- ASR9k -- ASR9k --- ASR1k 
    The connection between ASR1ks are l2transport on the ASR9k side. Therefore we see the ASR1k as a CDP neighbor from the other ASR1k. This is fine, but my question is why we also see the ASR9k as a CDP neighbor from the ASR1k via the same port. I thought CDP should either be tunnelled or not. 
    So, CDP on the ASR1ks show both the other ASR1k (which is fine), but it also show the directly connected ASR9k via the same interface. Is this normal? 
    Thanks, 
    Federico.

    Adam, thanks for taking care of this and you are correct.
    We made a change, based on popular demand to peel out certain control traffic out of the untagged EFP in the existence of MST/CDP configuration.
    If the service is not configured locally on the l2tranporting interface then those packets are subject to the EFP transport.
    cheers!
    xander

  • Copy Array Quick Question

    Just a quick question.
    Say I have an array A = [1,2,3,4,5]
    B = new int[5]
    I understand to copy the elements of A into B we could use a for loop.
    But can somebody explain to me why you can't just go B = A?
    Does this just cause B to point to A?
    So how do arrays work exactly? Is it like in C where each element is actually a pointer to the data, or does Java copy the data directly into the array element?

    Kayaman wrote:
    JT26 wrote:
    Array A=[1,2,3,4,5] ----> Here A is a reference variable which points to memory locations A[0],A[1],A[2],A[3],A[4] which could not be continueous.Actually no. What you have there is a syntax error. And please don't confuse people by talking about non continuous memory locations. That's simply wrong.And 100% irrelevant for the question at hand.
    >
    B = new int[5] -----> Here B is another reference variable points to an array which could hold 5 elemets.That is correct, basically.
    All the five element holders of B could be physically any where in the memory, thus copying the the elements is done via a for loop.No, Java is smart enough to store arrays sequentially in memory. And the smart way to copy large arrays is System.arrayCopy().Or java.util.Arrays.copyOf.

Maybe you are looking for