Most direct way to do DML in App Module Impl

Hi,
I need to do simple INSERT and UPDATE statements in an Application Module. I have the table in question exposed as verbatim Entity and View objects.
What is the most direct way of of executing an INSERT and UPDATE on PK without having to instantiate loads of objects?
Many thanks.
Edited by: user576183 on Sep 17, 2012 4:23 PM

User, please always tell us your jdev version.
What do you mean by 'verbatim EO'?
If you want to use the framework you should use it and not look for some hacks to archive your work. The docs help you to create or update data using the framework. If you don't want to use the framework, you don't have to, but then your post is for an other forum.
Timo

Similar Messages

  • Problem in App Module Impl client method

    Hope someone has an answer for this. I have a data action calling a client interface service method in the app module impl class. I am passing http request data wrapped in a Map to this method from the action class.
    In this method I am calling another method in a bean. Strangely, the code in app module method gets executed twice, acting like a recursive call! I debugged it and noticed that my action class calls the method only once, but the call in the method to bean method is executed twice. I want to capture a database error for inserting a new row in my bean method the first time by throwing a jbo exception in app module method, but throw new exception is ignored and message gets lost due to 2nd excecution of the code.
    Any ideas or help is much appreciated.
    TIA,
    S

    User, please always tell us your jdev version.
    What do you mean by 'verbatim EO'?
    If you want to use the framework you should use it and not look for some hacks to archive your work. The docs help you to create or update data using the framework. If you don't want to use the framework, you don't have to, but then your post is for an other forum.
    Timo

  • Suggestions for most efficient way to create a second app or site with minor rebranding

    I've been asked to create a new Foundation 2010 ite that's going to be 90% the same site as one for another division. The current website uses custom masterpages and some other customization. My understanding is that the differences are going to be a different
    URL and some minor branding stuff. THey are external presence sites. I don't believe it's using search or much else in the way of services, custom wsps, etc. Very simple sites.
    I'm thinking of backing up the dbs, restoring using different mdf/ldf and db names, creating a new app and attaching, but not sure if the GUIDs will conflict. I'm also thinking that what the masterpages call in _layouts may need to be changed, which should
    be pretty simple.
    Anything I'm overlooking?
    Also, apologies for using apps and sites interchangeably, I'm aware of the differences. I was actually asked to create a new site and assign a new URL to it, but if that's doable it sounds more complex to me.
    Thanks,
    Scott

    Hi,
    According to your post, my understanding is that you want to create a second app or site with minor rebranding.
    I recommend to create a test environment for existing production enviroment.
    For more information, you can refer to:
    Moving content between SharePoint environments
    Copy SharePoint production data to a test environment
    Build a SharePoint 2010 Test/Development Farm
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • What is the easiest way or most direct way to convert an edited raw image to jpeg?

    What is the best way to convert an edited raw image to jpeg?

    After you open the edited raw file from the camera raw dialog using Open, then in photoshop elements use File>Save As>Jpeg

  • Accessing an app.module's client interface methods in other app module

    Hi all,
    We are developing an application with number of projects (one for each module). We have got a common project with an application module, entity and view objects which are common for the entire application. For reusability, this common project is shared in session scope since most of them are of static nature.
    In the shared application module's implementation class, a common method has been included that will be used for data filtering by constructing/appending where clauses in a particular application scoped view object. This method has been exposed as client interface method so that other projects can make use of it. The common project is compiled as an ADF Library jar for accessing it in other projects.
    For accessing the exposed client interface method, from the view controller layer, we can include its reference in the page definition file and can execute the method from a managed bean by finding the operation binding from the page definition. But, in case if we wish to access the method in another model project, we could not do so.
    Now, my questions are:
    1. Is it the correct location(Shared App Mod. Impl) for including the logic to filter the data?
    2. Is it possible to access the app. module impl method in another project's impl classes (Let it be entityImpl or viewObjectImpl or viewRowImpl or AppModImpl) ?
    3. If it is possible, how it has to be done?
    Thanks and regards,

    Strange, the same question here {thread:id=2187487}
    Timo
    Edited by: Timo Hahn on 08.03.2011 12:02
    @john You beat me agian

  • HT201253 Is there a way to synch my iPad apps to my iPhone? I had to reset my iPhone and I lost most of my apps.

    I had to reset my iPhone and lost most of my apps. Is there a way to copy my iPad apps to my iPhone?

    Just redownload them or sync them from your computer.
    Download past purchases - Apple Support

  • Any way to find out which apps I use the most?

    Sometimes there are apps that I don't realize I use a lot. Is there any way to find out which apps I use the most, so I can put those on my first home screen?

    I'd keep and eye on your multitask bar. This tells me what apps I use and often forget I've been in that day.

  • Best way to install free iTunes Apps in an enterprise across 1000 iPhones

    We currently are looking at rolling out over 1000 iPhones (and iPads) in the next few months and we were wondering what is the best (and most legal) way we can install a bunch of free iTunes Apps on these devices as part of thier configuration before we hand them to the end users. We were currently thinking of creating a generic iTunes account and installing the Apps using this account on all the devices and then "logging off" this iTunes account from the device so the end users can use thier own when they get the device.
    Is there anything wrong (or illegal) about this approach or is there a better way to do this?

    Yes, this is very much the chicken-and-egg problem of Mobile Device Management for iOS devices. Let's hope it gets easier in the future.
    One approach to deploying the app is self-service using Web Clips.
    Use iPhone Configuration Utility or MobileIron to create a Config Profile containing a Web Clip labeled "Install Me!" that points at the App Store URL for the app you need installing.
    The user taps "Install Me!" and iOS Safari will redirect to the App Store app, where the app for downloading is displayed. The user installs it manually.
    Not pretty, but a little easier than following a written long script. And not very scalable as you need 1 web clip per App Store URL.
    Alternatives are, use the web clip to direct the user to an intranet web page with a list of App Store URLs for all the apps you need them to install, or use the MobileIron's "Suggested Apps" feature as previously mentioned.
    Deploying paid apps is particularly tricky for large deployments. However, there are some tricks: like using the App Store "Gift This App" feature to purchase the app and "gift" it to an end users. Alternatively, purchase iTunes gift cards from apple to value of the Apps you need them to install, and let them manage the purchase and installation themselves.
    Again, I hope this gets streamlined in the future, but for now, it's the best we can do.
    Regards,
    Paul Adams

  • Most efficient way to delete "removed" photos from hard disk?

    Hello everyone! Glad to have this great community to come to for help. I searched for this question but came up with no hits. If it's already been discussed, I apologize and would love to be directed to the link.
    My wife and I have been using LR for a long time. We're currently on version 4. Unfortunately, she's not as tech-savvy or meticulous as I am, and she has been unknowingly "Removing" photos from the LR catalogues when she really meant to delete them from the hard disk. That means we have hundreds of unwanted raw photo files floating around in our computer and no way to pick them out from the ones we want! As a very organized and space-conscious person, I can't stand the thought. So my question is, what is the most efficient way to permanently delete these unwanted photos from the hard disk
    I did fine one suggestion that said to synchronize the parent folder with their respective catalogues, select all the photos in "Previous Import," and delete those, since they will be all of the photos that were previously removed from the catalogue.
    This is a great suggestion, but it probably wouldn't work for all of my catalogues since my file structure is organized by date (the default setting for LR). So, two catalogues will share the same "parent folder" in the sense that they both have photos from May 2013, but if I synchronize May 2013 with one, then it will get all the duds PLUS the photos that belong in the other catalogue.
    Does anyone have any suggestions? I know there's probably not an easy fix, and I'm willing to put in some time. I just want to know if there is a solution and make sure I'm working as efficiently as possible.
    Thank you!
    Kenneth

    I have to agree with the comment about multiple catalogs referring to images that are mixed in together... and the added difficulty that may have brought here.
    My suggestions (assuming you are prepared to combine the current catalogs into one)
    in each catalog, put a distinctive keyword onto all the images so that you can later discriminate these images as to which particular catalog they were formerly in (just in case this is useful information later)
    as John suggests, use File / "Import from Catalog" to bring all LR images together into one catalog.
    then in order to separate out the image files that ARE imported to LR, from those which either never were / have been removed, I would duplicate just the imported ones, to an entirely separate and dedicated disk location. This may require the temporary use of an external drive, with enough space for everything.
    to do this, highlight all the images in the whole catalog, then use File / "Export as Catalog" selecting the option "include negatives". Provide a filename and location for the catalog inside your chosen new saving location. All the image files that are imported to the catalog will be selectively copied into this same location alongside the new catalog. The same relative arrangement of subfolders will be created there, for them all to live inside, as is seen currently. But image files that do not feature in LR currently, will be left behind by this operation.
    your new catalog is now functional, referring to the copied image files. Making sure you have a full backup first, you can start deleting image files from the original location, that you believe to be unwanted. You can do this safe in the knowledge that anything LR is actively relying on, has already been duplicated elsewhere. So you can be quite aggressive at this, only watching out for image files that are required for other purposes (than as master data for Lightroom) - e.g., the exported JPG files you may have made.
    IMO it is a good idea to practice a full separation of image files used in your LR image library, from all other image files. This separation means you know where it is safe to manage images freely using the OS, vs where (what I think of as the LR-managed storage area) you need to bear LR's requirements constantly in mind. Better for discrete backup, too.
    In due course, as required, the copied image files plus catalog can be moved bodily to another drive (for example, if they have been temporarily put on an external drive, and you want to store them on your main internal one again). This then just requires a single re-browsing of their parent folder's location, in order to correct LR's records inside this catalog, as to the image files' changed addresses.
    If you don't want to combine the catalogs into one, a similar set of operations as above, can be carried out for each separate catalog you have now. This will create a separate folder structure in each case, containing just those duplicated image files. Once this has been done for all catalogs, you can start to clean up the present image files location. IMO this is very much the laborious and inflexible option, so far as future management of the total body of images is concerned... though there may still be some overriding reason for working that way.
    RP

  • Is there a way to sync the Notes app on my iPod Touch with the Notes on my desktop without using iCloud

    I've been reading some of the other threads about this issue, but most, if not all, suggest using iCloud. I'm wary of setting up an iCloud account because I've heard that "once your information is 'in the cloud' it can't be deleted", and I just don't know how true that is.
    Is there a way to sync the two apps by some other means that bypasses "the cloud"?

    I think that cloud privacy concerns are overdone - especially with Apple who don't have a vested interest in snooping through your data like Google does!
    Do you use email?  It's stored in the cloud on the providers servers - no matter who the provider is.
    Do you use SMS on a phone?  They're stored on a server somewhere!
    Do you use the internet?  The logs are stored at your ISP for some period of time - tracking everywhere you've been.
    Thats why I am comfortable to use iCloud for most of my documents.  If I want to transfer files very securely, I put them in an encrypted disk image on Dropbox.
    Cheers,
    Rodney

  • What is the most reliable way to run one Windows accounting program in Osx 10.5.8?

    I have a simple Windows application where I basically do my accounts. I do not want to tie up my Imacs resources with running a full Windows Os "emulation" like Paralells or VMware Fusion just to run a simple accounting program.
    I have heard about apps that can run one windows application at the time through a kind of Osx Application which emulates windows some how. Is is true that this is a better way of running my accounting program? Is it reliable? What I do is to punch in invoices and print out reports basically. How much resources does this "consume" to run it in "one simple application mode" in comparison with for example Paralells?
    And what is the term for running windows in "one simple application mode"?

    I guess you could try the free trial of CrossOver. http://www.codeweavers.com/products/crossover/ You did not say what app you want to run so it is difficult for us to recommend crossover as being able to run the app.
    But your question is that you are looking for the "most reliable" way to run a Windows program. In my opinion you need Parallels or Fusion. These run the real Windows OS so my thinking is it is the "most reliable" method of running a Windows app on an Apple computer, other than Boot Camp.
    But you said you don't want Parallels. This is probably why you have not received any responses. You eliminated the most reliable and easiest method, in my opinion, when you initially posted. Parallels does not consume any resources until you start it up to use your app. You can close it after you are done with your app. Of course hard drive space is required for storing the OS, your app, and data. But you still need to store your app and data regardless of method you choose.
    One more thing, Parallels and Fusion create a virtual machine for running Windows.
    So my recommendation, use Parallels or Fusion.

  • I am running 10.7.5 on an imac and I want to upgrade to Yosemite but I have no app store on my computer. Is there a way I can get the app store on my imac?

    I am running 10.7.5 on an imac and I want to upgrade to Yosemite but I have no app store on my computer. Is there a way I can get the app store on my imac?

    If you don't have it then you will have to reinstall Lion:
    Reinstall Lion, Mountain Lion, Mavericks or Yosemite without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, Mavericks, or Yosemite
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it isthree times faster than wireless.
    Then you can download and install Yosemite if your computer meets the system requirements:
    Upgrading to Yosemite
    You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite - System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.

  • Most efficient way to open a new TextEdit doc at a specific place

    Suppose I've navigated in the Finder to some deep dark location in the folder hierarchy...   I want a new text file titled "notes" in this folder, i.e. to this path.
    Assuming TextEdit is already open, what is the most efficient way of creating and begin adding text to a new TextEdit file in that location?
    Tried this:  Maybe the usual Save dialog is aware of the current folder, so I can choose "New Document" in TextEdit's Dock icon pulldown, and then choose that path when I do File --> Save, choose the Save dialog's expanded view, and pull down the Where: selection.  Nope.  The current path is not there.
    Tried this:  Keeping an empty TextEdit document named untitled on my desktop.  Drag-copying that to the current folder.  Rename the file to "notes", open it, and start editing  That works, except it is clumsy.
    Is there a better way?
    Please forgive me if I'm missing something incredibly obvious.

    The problem with that is a new file has nothing in it.
    If you save a dummy file on the desktop someplace or use a real file in each of your locations, you could right click and duplicate it, then doubleclick to open it in the program of choice.
    Another option would to be to create a AppleScript that took the current open windows pathname and create and save a Textfile there.
    You save the app in the Dock and only have to click on it once, it automatically quits when mission accomplished.

  • Most efficient way to load XML file data into tables

    I have a complex XML file running into MBs. I want to load it's data into 7-8 tables.
    Which way will be better:
    1) Use SQL Loader to actually load directly into the 7-8 tables directly by modifying the control card.
    Is this really possible and feasible? I am not even sure about it
    2) Load data as XML Type in a table and register it. Then extract from there to load into various tables.
    Please help. I have to find the most efficient way of doing it.
    Regards,
    Sudhir

    Yes it is possible to use SQL*Loader to parse and load XML, but that is not what it was designed for and so is not recommended. You also don't need to register a schema, just to load/store/parse XML in the DB either.
    So where does that leave you?
    Some options
    {thread:id=410714} (see page 2)
    {thread:id=1090681}
    {thread:id=1070213}
    Those talk some about storage options and reading in XML from disk and parsing XML. They should also give you options to consider. Without knowing more about your requirements for the effort, it is difficult to give specific advice. Maybe your 7-8 tables don't exist and so using Object Relational Storage for the XML would be the best solution as you can query/update tables that Oracle creates based off the schema associated to the XML. Maybe an External Table definition works better for reading the XML into the system because this process will happen just once. Maybe using WebDAV makes more sense for loading XML to be parsed (I don't have much experience with this, just know it is possible from what I've read on the forums). Also, your version makes a difference as you have different options available depending upon the version of Oracle.
    Hope all that helps as a starter.
    Edited by: A_Non on Jul 8, 2010 4:31 PM
    A great example, see the answers by mdrake in {thread:id=1096784}

  • Most efficient way to place images

    I am composing a Catalog with a lot of images along with the text.  The source images are often not square (perfectly vertical, portrait).  I also want to add a thin line frame around each one in InDesign to spurce up the look.  I'm spending a lot of time in Photoshop straightening images, because rotating in Indesign to get the image straight results in a non-straight frame.
    Should I create a small library of frames that I place, then place non-straight images in them (and how do I do that) and rotate in InDesign?  Etc?
    What would be the most efficient way to do this?
    Thanks

    To tag onto what Peter said, when you click on the image with the Direct Selection tool you can also use the up and down arrow in the rotation Dialog (where you enter the angle, at the top) to easily change the rotation.
    Also, when you place images in InDesign you can select a number of images at once and continually click the document (or image frame) and place all the images you selected to import. To clarify, you can have a whole bunch of empty image frames on the page then go to file > place and select all your images, then continually click and place them inside each empty frame.

Maybe you are looking for