Using clone after commit

Hi,
Is it OK to use a clone in a read-only way after commit ? In some cases, I don't have access to the original and I need to return a Value Object.
Thanks
JCG

JCG,
You are fine to keep using the working copy (clone) after commit for read-only use. The only issues you may encounter are with indirect relationships that have not been instantiated.
If you wish there is API to get the original version from the UnitOfWork.
http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10491/oracle/toplink/sessions/UnitOfWork.html#getOriginalVersionOfObject(java.lang.Object)
Doug

Similar Messages

  • Problem in Creating new row & inserting data using CreateInsert and Commit

    Hello All,
    I have created a page there are few input text and i want to insert the data into a database table. I have created an Application Module I am using CreateInsert and Commit operation but there is one problem.
    At first it created a row in database after that it is not creating the new row instead it is updating the same row with the new values.
    In bindings of my jspx page I have created two binding for action (1) CreateInsert for the VO of that Application Module (2) Commit operation of that Application Module.
    Here is the code snippet of my application:
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
    Object result = operationBinding.execute();
    *if (!operationBinding.getErrors().isEmpty()) {*
    return null;
    OperationBinding operationBinding1 = bindings.getOperationBinding("Commit");
    Object result1 = operationBinding1.execute();
    *if (!operationBinding1.getErrors().isEmpty()) {*
    return null;
    I have tried using Execute+Commit and Insert+Commit case also in every case it is updating the same row and not inserting a new row.
    Is there anything I am missing?
    Please Help.

    hi user,
    i dono. why are trying with codes. adf provides zero lines codes.
    a wonderful drag and drop functionality provide by the framework.
    while double click the button the codes are  registered in your bean
        public String cb6_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        public String cb8_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        public String cb7_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("Delete");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        public String cb14_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("Delete4");   // some different here. after deleting usually do commit
            OperationBinding operationBinding1 =  
                bindings.getOperationBinding("Commit");    // so here commit operation.
            Object result = operationBinding.execute();
            Object result1 = operationBinding1.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            if (!operationBinding1.getErrors().isEmpty()) {
                //add error handling here
                return null;
            return null;
        }if am not understud correctly. please some more explanation need.

  • A problem using clone stamp tool

    Hi guys,
    I use After Effects CC last version on a pc under windows 7 ultimate..
    This problem must be simple to solve but I just don't see how.
    I have an aerial view of the Vesuvio. The volcano makes a 10 to 15° circular motion due to the helicopter moving.
    I need to eliminate the actual houses and other trails on the border of the crater to have my volcano as it was 2000 years ago when it erupted and destroyed Pompeii.
    I succeeded to do that with the clone stamp tool without a problem and it takes of course into account all the different shades of earth on the cliffs of the volcano.
    But when I preview the shot, while the volcano moves, I can see the stamped touches of paint moving as if floating above the volcano. The older surface is not visible as I wanted but the new one does't follow the movement. I'm sure I forgot to do something but what? Should I do the clone stamp in conjunction with motion tracker, if so how? I tried once but got the same problem.
    Thanks in advance
    Claude

    OK, I see a bunch of painting on the nearest slope of the volcano that does not track with the shot. Your biggest problem is workflow using the clone stamp. You are just not using it properly. If it were me, the first think I would do is to use the After Effects tracker to stabilize this part of the volcano so that it didn't move in the frame.
    Now you only have perspective issues to deal with.
    Next I would duplicate the stabilized layer, pre-compose the duplicate moving all attributes to the new composition, name the preComp - clone or paint pre-comp, then open the pre-comp in the layer panel and use the clone stamp to repair the parts of the image you want to repair. You can then add other trackers for the parts of the image you want to clone or use a time offset to make your painted layer match the mountain.
    I probably would do something completely different. I'd export the middle frame of this move as a Photoshop file, then go in and paint  the mountain the way I wanted it to look. I'd mask the background in photoshop so I only see the sides and face of the volcano. Then I'd bring my painted mountain back into AE and animate distortion, scale and rotation so the painted layer matches the original perspective on the shot as close as possible. When that is done I'd go back to my main comp, add a null, tie the null's position to the anchor point of the stabilized footage, then parent the original copy of the footage and the painted copy to the null to put the camera movement back in the scene.
    Here's a tutorial on how to apply tracking data to a clone stamp in AE:
    Removing an Object with Clone Stamp - After Effects Tutorial
    I am pretty convinced that you added the smoke... Use the same procedure to get the smoke to look right. It's also floating in an unnatural manner. You could also replace the far background with a matte painting of the city using the same mask, duplicate, paint in Photoshop, then distort and remove the stabilization.

  • A way to change metrics to 1 digit after comma?

    Hello. I have just noticed Flash CC is using 2 digits after comma, and im just wondering if there is a way to change it to use only 1? In my work i ususally have to avoid having any other digit after comma in symbols position other than 0 and got used to quickly running trough tabs and stroking "end" and "backspace" to make everything more even so its sharper, now when there are 2 digits i have to stroke backspace twice (and many times forgeting about it due to years old habit). For some of you it might sound trivial problem, but when you multiply it by bazilions of stuff i have to do with deadline "yestarday" every bit of stuff i have to do even bit longer in the long run gives me a lot of wasted time. Its not a big problem, but would be awesome if i could make it easier.

    And while im on that "quality of life" question for someoen who has to make millions of banners very fast:
    Is there a way to make objects moving snap to integer positions? SO when i move them around the workspace, they dont land on non-round positions? I would like to avoid putting them on for example: 10.70 - 230.40 but on 10 - 230. Would really appreciate any tip of how to do that.
    I have already tryied "snap to grid" and" snap to pixels" but it just puts it on half of pixels like 10.5 - 230.5 and that results in blurry bitmaps.

  • Using clone tool in Elements 12

    When I use clone tool, after sampling the area with alt key when I try to apply it the photo moves around so that I cannot not clone.  How can I fix?

    Your probably are seeing the Clone Source Overlay.
    If you click on Tool Options and then Clone Overlay you can set different options, but you might try Clipped and see how that is.

  • Iterator refresh after commit

    Hi,
    I have three tabs in my page , and in each tab , i have separate taskflows.
    The first tab taskflow contains a jsff which has lets say master table iterator i.e departments iterator.
    In the second tab, i have a table based on read only query, but when i click on add button, i will be inserting in to detail VO (employee VO) and using postChanges() .
    so that read-only query based table gets the new data.
    now when i click on save button and commit , the iterators in taskflows of tab1, tab2 are pointing to first record rather than the current record.
    1) even i tried with having an action for the 'save' button and navigating to method activity which sets the iterator to current row.
    When i am returning back to taskflow,i am still seeing the iterator pointing to first record rather than the current record i intend to see.
    could anybody tell me why iterator is pointing to first row after commit()
    i don't have 'refresh' -- if needed for taskflows. its default.
    for transactions, datacontrols, its default for my taskflows.

    I generally retain the previously selected row using the following code in my VOImpl after every executeQuery().
    public void executeQuery()
    // current row key if any
    Key currentRowKey = null;
    Row currentRow = getCurrentRow();
    if ( currentRow != null )
    // get current row key
    currentRowKey = getCurrentRow().getKey();
    // super call
    super.executeQuery();
    if ( currentRowKey != null )
    // set current row now using previously stored key
    Row[] rows = findByKey( currentRowKey, 1 );
    if ( rows != null && rows.length == 1 )
    setCurrentRow( rows[0]);
    }

  • How to use clone to make a new instance

    Hi:
    I have a question here and need your help. If I have a new server ready and has no Oracle on it. I want to use clone to copy the production EBS to this new machine so I can use it as a test instance. How do I do it?
    Thank you very much.

    Hi;
    Thank you but I don't have metalink account. Please just tell me if this is correct: I can use rapid clone to copy all to a test instance after the server is setting up, I don't have to install 11i, correct? Thank you.Yes you dont need to install anything, after clone you will have as same as your source system on target machine with same data-users etc.
    For clone process you can check my blog
    http://heliosguneserol.wordpress.com/2010/05/31/cloning-oracle-applications-release-11-and-12/
    Regard
    Helios

  • Suspicious delay of HDD activity after commit

    I know that after commit Oracle LGWR process writes the data
    changies into the redo-log. And Oracle must return "Commited"
    only after above is done. But when I do Commit, I don't see the
    HDD LED blink. Only after 1-2 sec HDD LED blinks. Is it normal?
    What people have?
    null

    To answer the question of caching and syncing:
    Linux nearly caches all and does it on a high "level", means it
    is one of the reason for the good I/O-performance of linux.
    In order to make sure that data is directly written to the disks
    you can mount your disks with the option sync.
    An example: mount -o sync /dev/sdc1 /data_1
    Note, that the performance will decrease. The other possibility
    is a little tool called syncer, which is a daemon that causes
    linux to clear its cache every xy seconds (any value you like). I
    think (because I never used) it causes some overhead but is a
    good compromise to the sync-option.
    Deactivating caching in the kernel... I think this is not the
    best solution if you are not familiar with kernel programming.
    Also think of swapping and reads on the system-disk and so on.
    Dietmar
    p.s: I can't remember where I've found it, so I send it to your
    personal account, because I can't add any files here
    StE (guest) wrote:
    : Mark Malakanov (guest) wrote:
    : : I know that after commit Oracle LGWR process writes the data
    : : changies into the redo-log. And Oracle must return "Commited"
    : : only after above is done.
    : Not quite true. Information is constantly flushed from the
    : in-memory redo log buffer to disc while changes are taking
    place
    : to the database. When a transaction is committed the
    : current contents of the redo-log buffer are flushed to disc,
    : followed by a marker saying "SCN was committed" is written to
    : disc - the changes themselves have already been written out.
    : : But when I do Commit, I don't see the
    : : HDD LED blink. Only after 1-2 sec HDD LED blinks.
    : : Is it normal? What people have?
    : That's probably normal, but that doesn't make it a good thing.
    : The Linux buffer-cache does write-behind caching, so that dirty
    : buffers arn't written out to disc immediately. If there were a
    : failure the write of the commit or some of the preceeding redo
    : log blocks might not make it to disc.
    : I think you can tune the frequency with which bdflush wakes up
    : and writes to disc. Setting it to a low value if you're worried
    : about consistency over performance would be a good idea.
    : I don't know whether there's an open() flag to perform writes
    on
    : a file synchronously or not under Linux. It's possible to
    sync()
    : an open filehandle, I think, so perhaps Oracle does a sync on
    : the active redo log when it writes out the commit.
    : Anyone know anything less vague and hand-waving?
    : -michael
    null

  • UserExit or Badi for inbound posting idocs after commit

    Hello Folks,
    I want to know the User Exit/Badi that can be used after inbound idoc gets posted-iam using FM IDOC_INPUT_HRMD for posting idocs, as i want to use perform on commit statement.
    Thanks & Regards,
    Nishanth Kumar

    Hi Nishanth
    Dont sure about the question actually.Can you elaborate.
    see the [thread|Re: User Exit or BADI   for ME21N or ME51N;
    it may help you
    Regards
    Sachin

  • Data Modeler 3EA2 SDO_GEOMETRY stays in outgoing changes after commit

    I try to add changes to SVN repository, but I keep having Structured Type SDO_GEOMETRY in my outgoing changes even after commit. I don't use that datatype in my model. After the very first commit there were 0 outgoing changes left, but the next time I opened the model it appeared there (even before I made any changes to the model).

    Hi,
    can you navigate to this type in Pending Changes window and from context menu choose "Compare With / Last Synchronized (Local) - as text"
    This should show the changes to the type and would be helpful to investigate what the problem is.
    Please write the changed attributes of the file here.
    Thanks
    Ivaylo

  • Continue to lock after COMMIT

    Hi all,
    I need help on locking module. I have a program that does many update and commit (some using BAPI_TRANSACTION_COMMIT). How I continue to lock the record after the commit? From what I understand commit will release all locks. I wish to continue locking even after commit. What are the possible ways to do it?
    The locking logic:
        CALL FUNCTION 'ENQUEUE_ECKSSKXE'
          EXPORTING
            MODE_KSSKX           = 'E'
          MANDT                = SY-MANDT
            KLART                = '300'
            CLASS                = GT_ZMM_DEPOT-CLASS
          MAFID                =
          OBJEK                =
          X_KLART              = ' '
          X_CLASS              = ' '
          X_MAFID              = ' '
          X_OBJEK              = ' '
            _SCOPE               = '1'
          _WAIT                = ' '
          _COLLECT             = ' '
          EXCEPTIONS
            FOREIGN_LOCK         = 1
            SYSTEM_FAILURE       = 2
            OTHERS               = 3
    Thanks thanks.

    1) First u create a Lock object in SE11, for the required field/fields that u want to lock.
    2) It generates to FMs -- one is for locking and the other is for unlocking.
    3)use these FMs in ur program.
    Check the below link for the procedure how to create lock object.
    http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm

  • Refresh only current row after commit, when ChangeEventPolicy set to none

    Hi,
    I'm using jdeveloper 11.1.2.3.0
    I'm editing a table with a popup, I set the ChangeEventPolicy to none because it made some problems.
    Now I would like to know, when i'm closing the popup and doing commit,
    how could I refresh only the current row, and not whole the table?
    I would like it to work as with ChangeEventPolicy set to ppr.
    Thanks!

    could you please explain a little bit more?
    When I used the ChangeEventPolicy with ppr it looks like only the selected row was changed after commit.
    but with PartialTrigger i see that it's refreshing all the table.
    are you sure they are working the same?
    what about row.refresh(..), is it only used for rollback?

  • Regarding releasing space by rollback segaments after commit

    Hi All,
    I am doing 8i production support.during the data archival activities i m facing a problem in rollback segaments. As we know after commit statement it use to free the space once all the transactions get over, but here its not releasing the space after long back also.
    please suggest me what to do ?
    do we have any tool by which i can check and release the space ? any other manual way ?

    [sibling post|http://forums.oracle.com/forums/thread.jspa?threadID=825754&tstart=0]

  • Photoshop Elements 8. "Could not use Clone Stamp Tool because of a program error."  Please help.

    Photoshop Elements 8.  "Could not use Clone Stamp Tool because of a program error."  Please help.

    Try this:
    Open your picture file
    Access the clone stamp tool
    Hold down the ALT key on the keyboard and left click on the area from which you wish to clone, then release the ALT key, and click to place the pixels at the destination
    TIPS:
    It is a good idea to open a blank layer at the top in the layers palette, and do the cloning on this layer. Be sure that "sample all layers" at the top is checked. You can change the layer opacity if necessary
    Use the bracket keys next to the letter p on the keyboard to increase & decrease the size of the cursor
    Let us know  how you make out with the error message now.

  • Hi support team, I'm using iphone4, After i upgraded my ios7 i'm facing issues.Need ur help

    Hi support team, I'm using iphone4, After i upgraded my ios7.0.2 i'm facing issues.
    - Unable to view the incoming calls.
    - mobile hanging

    This is not the "support team".  These are user to user forums.  You are not addresssing Apple's "support team" by posting here.
    Which of the troubhleshooting steps listed in the iOS 7 user guide have you tried?  Have you tried a reset?

Maybe you are looking for

  • Web.xml: wildchar /streams/* possible?

    i would like to get all requests for a directory to a specific servlet. i know that i could realize something like this: a) RewriteURL of apache b) with creating my own suffix like "*.mycontent" c) user something like "/streams/?filename" but i realy

  • MacBook Air won't install via DVD or Remote Install?

    Gang, I have a 2.13/128 SSD MMA with Bootcamp installed (30G partition vista). I got my SL yesterday and loaded it on my new Pro 13 no problem. I went to install it on the air and the same thing seems to happen. I use a off the shelf DVD drive self p

  • Java EJB client "Can't connect to ORB" errors...

    I'm writing an application that is a Java EJB client application (no web stuff at all). Needless to say there are no examples of such an app in the samples dir, they are all web-based. My problem is that when I try to run my application (client calls

  • ACR and the Custom Settings option on the flyout menu...

    I am currently running the trial of CS4 to see if its worthy of my hard earned cash. I normally run CS3 and an old version of ACR (4.4.1) specifically for the reason that I can mass process a group of images by using the Custom Settings option in the

  • Can't Find Artwiz Fonts!

    Hi I'm sure that I'm missing something but what do I have to do do enable artwiz fonts? I've installed the package but I can't find them in abiword, openoffice, obconf nor lxappearance! Thanks!