Need Help in Inserting first ever record

I need help in inserting my first ever record from an OAF page.
I've created an AM 'MasterAM', added 'MasterVO' to it. Created a Page CreatePG which has a submit button, id = Apply
Below is processRequest of CreateCo
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission()) {
am.invokeMethod("createRecord", null);
and below is processFormRequest
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Apply") != null)
OAViewObject vo = (OAViewObject)am.findViewObject("MasterVO1");
am.invokeMethod("apply");
pageContext.forwardImmediately("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxdemo/webui/CreatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Below are 'createRecord' and 'apply' in MasterAMImpl
public void createRecord(){
OAViewObject vo = (OAViewObject)getMasterVO1();
if (!vo.isPreparedForExecution()) {
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
public void apply() {
getTransaction().commit();
When I run the page, it opens and I try to enter some data and press Apply. it does not insert into the table.
Could anyone help me out.
My jdeveloper version is 10.1.3.3.0.3

I am facing the same issue.
rows get inserted into the tbale, but only whol columns have the data.
all the attributes are correctly mapped to view instance and view attribute.
My VO has 1 EO and , i have joined another table to get desctriptions of the field.
could that be the problem ?
ex :
select item , desc
from t , master
where t.cola=master.colb
table t is the custom table I want the data to go in. but only who columns appear after commiting.
any clues ?

Similar Messages

  • Need help to insert and update records in MDM

    Hi ,
    I am trying to develop an webdynpro application which can create and update records in tables of a repository of MDM . For example .. I want to insert values and later update values in Vendor table.
    I am new to webdynpro and MDM. If any one can help step by step or can send a sample code which I can be ready to use that would be great help.
    If anyone can have a sample code .. kindly mail to "[email protected]"
    It is urgent. Please help.
    Regards,
    Niraj
    Edited by: Niraj Kumar on May 23, 2008 6:50 AM

    Hi Niraj,
    Are u going to work with webdynpro Java/ABAP?
    some materials which are found useful are sent.
    Cheers,
    Mary

  • New update on my iTunes 8.2 computer. Sync my iPads on the computer missing playlist on my computer ??? Need help. Worst update ever   

    new update on my iTunes 8.2 computer. Sync my iPads on the computer missing playlist on my computer ??? Need help. Worst update ever   

    Hello there, dancingteacher.
    Removing and re-installing iTunes can be a challenging endeavor and has to be done in a very particular way. The following Knowledge Base article provides a clear, step-by-step process of removing iTunes:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    The "Additional Troubleshooting" section also includes a link to updates and conflicts with software for your Windows Operating System as well.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Need help with inserting 10MB CLOB

    Hi,
    I have an urgent issue and desperately need some help.
    There are several files on a FTP server that I need to insert their contents into a CLOB type column. One of the files has more than 10MB contents. What I've been doing is after connection is made to the FTP server, read in the contents in a file line by line into a String, then execute a SQL INSERT statement to insert a new record into the target table.
    +//.... make connection, read in files and parse into a String variable called fileContents+
    String psInsert = "Insert into FileTrack (Name, Contents) values";
    PreparedStatment ps = conn.prepareStatement(psInsert "(?,?)");+
    ps.setString(1, "some name");
    ps.setObject(2, fileContents);
    ps.executeUpdate();
    The above works fine for all other smaller files, except the 10MB one. The error I got was SQLCODE: -302, SQLSTATE: 22001, which is about not enough space issue. So I increased the CLOB column size and made sure it doesn't exceed the initial CLOB size setting and the database has plenty of space for storing this 10MB file. Still, I got the same error.
    Then I tried the following:
    ps.setObject(2, fileContents, java.sql.Types.CLOB);
    Failed with same error...
    Then I tried this:
    FileInputStream inputStream = new FileInputStream(fileContents);
    ps.setAsciiStream(2, inputStream, (int)()fileContents.length()));
    Still failed with the same error....
    Then I changed to ps.setCharStream()... still failed....
    What other options do I have to insert the 10MB contents? Can someone please help?
    Thanks heaps in advance!!

    we're still trying to upload that CLOB. Takes a while over this 2400bps modem ;)

  • Need help with INSERT and WITH clause

    I wrote sql statement which correctly work, but how i use this statment with INSERT query? NEED HELP. when i wrote insert i see error "ORA 32034: unsupported use of with clause"
    with t1 as(
    select a.budat,a.monat as period,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    c.wrbtr,
    c.matnr,
    c.menge,
    a.monat,
    c.zuonr
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='D'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,t2 as(
    select a.BUKRS,a.BELNR, a.GJAHR,t1.vtweg,t1.budat,t1.monat from t1, ldw_v1.bkpf a
    where t1.zuonr=a.xblnr and a.blart='WL' and bukrs='8431'
    ,tcogs as (
    select t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    sum(bseg.wrbtr) as COGS,bseg.matnr,bseg.kunnr,sum(bseg.menge) as QUANTITY
    from t2, ldw_v1.bseg
    where t2.bukrs=bseg.bukrs and t2.belnr=bseg.BELNR and t2.gjahr=bseg.gjahr and BSEG.KOART='S'
    group by t2.budat,t2.monat,t2.vtweg, bseg.gjahr,bseg.hkont,bseg.prctr,
    bseg.matnr,bseg.kunnr
    ,t3 as
    select a.budat,a.monat,b.vtweg,
    c.gjahr,c.buzei,c.shkzg,c.hkont, c.prctr,
    case when c.shkzg='S' then c.wrbtr*(-1)
    else c.wrbtr end as NTS,
    c.matnr,c.kunnr,
    c.menge*(-1) as Quantity
    from ldw_v1.BKPF a,ldw_v1.vbrk b, ldw_v1.bseg c
    where a.AWTYP='VBRK' and a.BLART='RV' and a.BUKRS='8431' and a.awkey=b.vbeln
    and a.bukrs=c.bukrs and a.belnr=c.belnr and a.gjahr=c.gjahr and c.koart='S'
    and c.ktosl is null and c.gsber='4466' and a.gjahr>='2011' and b.vtweg='01'
    ,trevenue as (
    select t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,
    sum(t3.NTS) as NTS,t3.matnr,t3.kunnr,sum(t3.QUANTITY) as QUANTITY
    from t3
    group by t3.budat,t3.monat,t3.vtweg, t3.gjahr,t3.hkont,t3.prctr,t3.matnr,t3.kunnr
    select NVL(tr.budat,tc.budat) as budat,
    NVL(tr.monat,tc.monat) as monat,
    NVL(tr.vtweg,tc.vtweg) as vtweg,
    NVL(tr.gjahr, tc.gjahr) as gjahr,
    tr.hkont as NTS_hkont,
    tc.hkont as COGS_hkont,
    NVL(tr.prctr,tc.prctr) as prctr,
    NVL(tr.MATNR, tc.MATNR) as matnr,
    NVL(tr.kunnr, tc.kunnr) as kunnr,
    NVL(tr.Quantity, tc.Quantity) as Quantity,
    tr.NTS as NTS,
    tc.COGS as COGS
    from trevenue TR full outer join tcogs TC
    on TR.BUDAT=TC.BUDAT and TR.MONAT=TC.MONAT and TR.GJAHR=TC.GJAHR
    and TR.MATNR=TC.MATNR and TR.KUNNR=TC.KUNNR and TR.QUANTITY=TC.QUANTITY
    and TR.VTWEG=TC.VTWEG and TR.PRCTR=TC.PRCTR
    Edited by: user13566113 on 25.03.2011 5:26

    Without seeing what you tried it is hard to say what you did wrong, but this is how it would work
    SQL> create table t ( n number );
    Table created.
    SQL> insert into t
      2  with test_data as
      3    (select 1 x from dual union all
      4     select 2 x from dual union all
      5     select 3 x from dual union all
      6     select 4 x from dual)
      7  select x from test_data;
    4 rows created.
    SQL>

  • Need help in insert statment query

    Hi,
    I have a table T1 with values like
    col1
    1
    2
    3
    4
    I need to write insert statment for t2 as
    insert into t2(col1,col2) values ('AA',select col1 from t1);
    The output of T2 should be
    col1 col2
    AA 1
    AA 2
    AA 3
    AA 4
    Any help in modifying the query.
    Ashish

    What is wrong with this?
    INSERT INTO id_own_dw.id_t_dw_org_dq_tgt
           (cost_center_cod_vc_old,
            cost_center_cod_vc_new
         SELECT '3016052',<<<_-- this you can replace with your varibale in pl/sql block
                cost_center_cod_vc
           FROM id_own_dw.id_t_dw_msl_org_cctr2mkdiv
          WHERE busi_unit_cod_vc = '3016496'

  • Need help in archiveing and deleting records

    Hi frnds
    I wrote a procedure to archive the records and delete the archived one but after inserting and deleting the tot counter is not working and its showing 1 record inserted and i didnt tried the deletion part,pls find my code and how to get the correct no of records inserted as out put and same for deletion.One more thing,before deletion i want to confirm all the records which i going to delete is already inserted eg,if i could'nt able to do insert the specific no of rows the program shud exit without doing the deletion,How to accomplish that
    Declare
    cnt NUMBER := 0;
    tot number :=0;
    CURSOR ins IS
    select count(*) from Cal_log
    where trunc(c_date) ='11-Aug-2008';
    BEGIN
    FOR rec IN ins LOOP
    insert into Calls_arc
    select * from Cal_log
    where trunc(c_date) ='11-Aug-2008';
    tot :=tot + 1
    cnt := cnt + 1;
    IF (cnt >= 100) THEN
    COMMIT;
    cnt := 0;
    END IF;
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('inserted ' || tot|| ' records in call_arch.');
    FOR rec IN ins LOOP
    delete from Cal_log
    where trunc(c_date) ='11-Aug-2008';
    tot := tot + 1;
    cnt := cnt + 1;
    IF (cnt >= 100) THEN
    COMMIT;
    cnt := 0;
    END IF;
    COMMIT;
    DBMS_OUTPUT.PUT_LINE('Deleted ' || tot || ' records from Cal_log');
    END;

    Since
    CURSOR ins IS
    select count(*) from Cal_log
    where trunc(c_date) ='11-Aug-2008';always returns one row, your loop
    FOR rec IN ins LOOPdoes not make much sense. But it does not hurt. The real issue with your code is you increment tot by one while insert processes more than one row (all rows for Aug 11). You should use %ROWCOUNT. And one more thing, never rely on implicit date conversions since default date format is client session sependent. Anyway, all you need is:
    BEGIN
        insert
          into Calls_arc
          select  count(*)
            from  Cal_log
            where c_date >= to_date('11-Aug-2008','dd-mon-yyyy')
              and c_date <  to_date('12-Aug-2008','dd-mon-yyyy');
        DBMS_OUTPUT.PUT_LINE('inserted ' || SQL%ROWCOUNT || ' records in call_arch.');
        delete
          from Cal_log
          where c_date >= to_date('11-Aug-2008','dd-mon-yyyy')
            and c_date <  to_date('12-Aug-2008','dd-mon-yyyy');
        COMMIT;
        DBMS_OUTPUT.PUT_LINE('Deleted ' || SQL%ROWCOUNT || ' records from Cal_log');
    END;
    /SY.

  • Help with my first ever PDF form

    Hi there,
    In my PDF form there are a couple of time fields. I would like some help on couple of things as this is my first ever PDF form:
    Display current time in format HH:MM when the document is opened.
    I would like to display a default value for time such as 00:00. Is that ok? How generally default time is displayed?
    If someone enters anything else in time field, I get a default message such as ‘The value entered does not match the format of the field [fieldname]’ Is there a way where I can customize this error message. If so, how can I do it.
    Thanks for your help. Please explain your solution in steps as this is my first form that I'm creating in Acrobat 9.
    Joe Green

    1. Place this script in the doc-level (of course, edit the field name as required):
    this.getField("CurrentTime").value = util.printd("HH:MM", new Date());
    2. Just enter that value as the Default Value of your fields.
    3. Only if you use a custom format and validate scripts, which is quite a bit of work...

  • Need Help with inserting a screen shot

    Can someone pleassse help me?! If any of you are familiar with popular youtubers and how in their videos they include screen shots of facebook or twitter questions and they have them so they roll across the bottom  of the screen, can you please help me! If anyone knows how to do this in Imovie 11 it would be HUGELY appreciated! Because when i try the picture in picture settings it zooms the screen shot so its massive and its also not an oblong shape anymore (like the shape of a facebook reply) i also need help at how this would transition to roll in from one side of the screen to the other?!
    PLEASE HELP ME!!

    I think it is possible to do this in iMovie, although perhaps easier in Final Cut Pro X, which I would guess that iJustine is using.
    First, I would take a still image of my video at the points where I want to superimpose a graphic. Since she is mostly superimposing graphics on her talking head, a single still might be sufficient.
    For getting a still out of iMovie, see my User Tip here.
    https://discussions.apple.com/docs/DOC-3231
    Now, you will want to take this still to a photo editor that allows you to edit layers. Use PhotoShop if you have it. If you do not already have PhotoShop, it can be rather expensive, so I would suggest a tool like Acorn or Pixelmator, which I think are available in the Mac App Store.
    Create a project in the dimensions of your iMovie still, e.g. 1920x1080.
    You would put the still on the bottom layer, so you know where to put yoru graphics. You would position the graphic or screen grab at the next layer up. Now I would export the upper layer only as a PNG file. The PNG file has an Alpha Channel, which means you will see only the graphic and not the still in the background.
    The main thing Final Cut Pro would give you would be the easy ability to have multiple graphics on the screen at the same time.
    Now you can drag this PNG file into iMovie and drop it on the project clip where you want it to appear. A popup menu will appear. Choose Cutaway.
    There are probably other ways to do this, but that is the way I would do it.

  • Need Help with Inserting Timeline Markers

    Friends,
    I have not use my premiere element 3.2 since 2008 and forgot some of the procedures. now, I need help with the insertion of Timeline Markers. I did what the Help Page showed me. But the markers were not effective in the resulting DVD, or, even when viewing the video in the editing page as if thye were not there! Here is what I did:.
    1)  Click the Timeline button.
    2)  Click in an empty space in a video or audio track in the Timeline to make the Timeline active and deselect any clips.
    3)  Move the current-time indicator in the Timeline to the frame where I need the marker.
    4)  Click the Add Marker icon in the Timeline to place the Marker 5 times where I want them.
    5)  Verified that each Timeline Marker is present at the intended place.
    6)  Burned DVD
    7)  Can NOT jump to any of the intended Marker in the Resulting DVD during playback.
    The question is "What did I do wrong or didn't do?" It seems that I did the same before and worked! Please advise!
    Also, what are the significance of the Red line just below the Timeline and the yellow bars inside the video and audio frames. But after preforming Timeline/Render Work Area, they were all gone? What purposes do they serve and what is the significance of Rendering? Thank you for your help!
    I repeat the process and did a Rendering before making the DVD also. It did not help!
    Andy Lim

    Steve,
    Long time no talk! You used to help me out many times when the PE-1 through PE-3 came out. I was HOPING you would still be around and you are! You came through again this time! Many thanks to you.
    I use the Add DVD Scene button to insert the Markers. They are Green. Made a DVD and the markers work OK although ythey are "effective" during play back using the editing window.
    While that problem was solved, will you come back and answer the other two questions concerning Rendering and the Red/Yellow lines? I would appreciate it very much!
    Andy Lim
    ~~~~~~~~~~~~~~~~

  • Need help with inserting frame with scrolling images

    Hi,
        Im a beginner and need help putting a single box/frame with scrolling images in the middle of my layout, so that when viewed in browser, the header and footer remain in place, while the images and info in the frame in the centre of the page can be scrolled down/up?

    You can use an iframe element <iframe src="" width="" height="" scrolling="yes"> though if you're concerned with crawlers you should avoid frames as much as possible. 

  • Need help on inserting multiple records into database

    Hello every body,
    In my web page there is multiple select box.In that contains
    service-servicecategory-priority-filecontent -data in each item.
    suppose if select ten items and press submit button then that ten item schould be insert into database at a time. I don't know how to do?
    if any body know or any sample code ..plz help me.
    thanks in advance.

    suppose if select ten items and press submit button
    then that ten item schould be insert into database at
    a time. I don't know how to do?
    if any body know or any sample code ..plz help me.I'll give you the answer if you give me dukes.

  • Need help in Insertion of Element in DefaultStyledDocument

    Hello:
    I am developing an XML editor by extending the DefaultStyledDocument of javax.swing.text package. I am not able to insert an element in the document.
    This is what I have done: (I need to insert one BranchElement, with two leaf child elements.)
    I inserted the text in the document corresponding to the first child element using insertString() method. In the insertUpdate() method of the document, I am creating the branch element and its first child covering the inserted text. I then call the insertUpdate() method of DefaultStyledDocument. Similarly, I insert text corresponding to the second child and modify the element structure inside insertUpdate() and then call the insertUpdate() of DefaultStyledDocument().
    At the end of the execution, the element structure is okay, but all the inserted text also becomes a part of the previous element.
    for example,
    if I have the following element structure at the beginning: (element offsets are in the square brackets besides their names, child elements are indented.)
    html [0 2]
    start-leaf [0 1]
    end-leaf [1 2]
    and I insert body at position 1 with its two children (each of length 1)
    I get the following element structure:
    html [0 4]
    start-leaf [0 3] //why this?
    body [1 3]
    start-leaf[1 3] //why this instead of [1 2]?
    end-leaf [2 3]
    end-leaf [3 4]
    And, I am not able to see the Views corresponding to the inserted elements.
    (I tried without modifying the element structure explicitely, but it doesn't work that way.Also, I am able to remove elements from the document. In that case also I am following a similar logic: remove the data from the document using remove() method and modify the element structure inside removeUpdate(). and it seems to work fine.)
    Can anyone please help me understand why this is happening?
    Thanks a lot!

    like this ??
    SQL> Create Table t1
      2  (a Number,
      3   b Number);
    Table created
    SQL>  Create Table t2
      2  (a Number,
      3   b Number,
      4   c Number Not Null);
    Table created
    SQL>  Insert Into t1 Values (1,2);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL>  Insert Into t2 Select t.*,3 From t1 t;
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> select * from t1;
             A          B
             1          2
    SQL> select * from t2;
             A          B          C
             1          2          3
    SQL> hope this helps you

  • Need help with inserting rows in ResultSet and JTable

    hello Guru!
    i have inserted a row in my result set and i want that my table shows this row promptly after i have inserted it in my result set...
    but when i use following code for my resultset:
    rs.moveToInsertRow();
    rs.updateInt(1,nr);
    rs.updateString(2, name);
    rs.insertRow();
    Record are inserted in resultset and database but not shown in my JTable??
    Anyone a Clue to without reexecuting the query how can i display inserted row in JTable
    http://download-west.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/resltse7.h
    I have refrered the following links but still clue less help Guruuuuuuu
    i m really in trobble??????

    i am just near by the Solution using the Database Metadata
    by couldn't get the ideaaaa
    ==================================================
    http://download-west.oracle.com/docs/cd/A87860_01/doc/java.817/a83724/resltse7.htm
    Seeing Database Changes Made Internally and Externally
    This section discusses the ability of a result set to see the following:
    its own changes (DELETE, UPDATE, or INSERT operations within the result set), referred to as internal changes
    changes made from elsewhere (either from your own transaction outside the result set, or from other committed transactions), referred to as external changes
    Near the end of the section is a summary table.
    Note:
    External changes are referred to as "other's changes" in the Sun Microsystems JDBC 2.0 specification.
    Seeing Internal Changes
    The ability of an updatable result set to see its own changes depends on both the result set type and the kind of change (UPDATE, DELETE, or INSERT). This is discussed at various points throughout the "Updating Result Sets" section beginning on , and is summarized as follows:
    Internal DELETE operations are visible for scrollable result sets (scroll-sensitive or scroll-insensitive), but are not visible for forward-only result sets.
    After you delete a row in a scrollable result set, the preceding row becomes the new current row, and subsequent row numbers are updated accordingly.
    Internal UPDATE operations are always visible, regardless of the result set type (forward-only, scroll-sensitive, or scroll-insensitive).
    Internal INSERT operations are never visible, regardless of the result set type (neither forward-only, scroll-sensitive, nor scroll-insensitive).
    An internal change being "visible" essentially means that a subsequent getXXX() call will see the data changed by a preceding updateXXX() call on the same data item.
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean ownDeletesAreVisible(int) throws SQLException
    boolean ownUpdatesAreVisible(int) throws SQLException
    boolean ownInsertsAreVisible(int) throws SQLException
    Note:
    When you make an internal change that causes a trigger to execute, the trigger changes are effectively external changes. However, if the trigger affects data in the row you are updating, you will see those changes for any scrollable/updatable result set, because an implicit row refetch occurs after the update.
    Seeing External Changes
    Only a scroll-sensitive result set can see external changes to the underlying database, and it can only see the changes from external UPDATE operations. Changes from external DELETE or INSERT operations are never visible.
    Note:
    Any discussion of seeing changes from outside the enclosing transaction presumes the transaction itself has an isolation level setting that allows the changes to be visible.
    For implementation details of scroll-sensitive result sets, including exactly how and how soon external updates become visible, see "Oracle Implementation of Scroll-Sensitive Result Sets".
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean othersDeletesAreVisible(int) throws SQLException
    boolean othersUpdatesAreVisible(int) throws SQLException
    boolean othersInsertsAreVisible(int) throws SQLException
    Note:
    Explicit use of the refreshRow() method, described in "Refetching Rows", is distinct from this discussion of visibility. For example, even though external updates are "invisible" to a scroll-insensitive result set, you can explicitly refetch rows in a scroll-insensitive/updatable result set and retrieve external changes that have been made. "Visibility" refers only to the fact that the scroll-insensitive/updatable result set would not see such changes automatically and implicitly.
    Visibility versus Detection of External Changes
    Regarding changes made to the underlying database by external sources, there are two similar but distinct concepts with respect to visibility of the changes from your local result set:
    visibility of changes
    detection of changes
    A change being "visible" means that when you look at a row in the result set, you can see new data values from changes made by external sources to the corresponding row in the database.
    A change being "detected", however, means that the result set is aware that this is a new value since the result set was first populated.
    With Oracle8i release 8.1.6 and higher, even when an Oracle result set sees new data (as with an external UPDATE in a scroll-sensitive result set), it has no awareness that this data has changed since the result set was populated. Such changes are not "detected".
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean deletesAreDetected(int) throws SQLException
    boolean updatesAreDetected(int) throws SQLException
    boolean insertsAreDetected(int) throws SQLException
    It follows, then, that result set methods specified by JDBC 2.0 to detect changes--rowDeleted(), rowUpdated(), and rowInserted()--will always return false with the 8.1.6 Oracle JDBC drivers. There is no use in calling them.
    Summary of Visibility of Internal and External Changes
    Table 12-1 summarizes the discussion in the preceding sections regarding whether a result set object in the Oracle JDBC implementation can see changes made internally through the result set itself, and changes made externally to the underlying database from elsewhere in your transaction or from other committed transactions.
    Table 12-1 Visibility of Internal and External Changes for Oracle JDBC
    Result Set Type Can See Internal DELETE? Can See Internal UPDATE? Can See Internal INSERT? Can See External DELETE? Can See External UPDATE? Can See External INSERT?
    forward-only
    no
    yes
    no
    no
    no
    no
    scroll-sensitive
    yes
    yes
    no
    no
    yes
    no
    scroll-insensitive
    yes
    yes
    no
    no
    no
    no
    For implementation details of scroll-sensitive result sets, including exactly how and how soon external updates become visible, see "Oracle Implementation of Scroll-Sensitive Result Sets".
    Notes:
    Remember that explicit use of the refreshRow() method, described in "Refetching Rows", is distinct from the concept of "visibility" of external changes. This is discussed in "Seeing External Changes".
    Remember that even when external changes are "visible", as with UPDATE operations underlying a scroll-sensitive result set, they are not "detected". The result set rowDeleted(), rowUpdated(), and rowInserted() methods always return false. This is further discussed in "Visibility versus Detection of External Changes".
    Oracle Implementation of Scroll-Sensitive Result Sets
    The Oracle implementation of scroll-sensitive result sets involves the concept of a window, with a window size that is based on the fetch size. The window size affects how often rows are updated in the result set.
    Once you establish a current row by moving to a specified row (as described in "Positioning in a Scrollable Result Set"), the window consists of the N rows in the result set starting with that row, where N is the fetch size being used by the result set (see "Fetch Size"). Note that there is no current row, and therefore no window, when a result set is first created. The default position is before the first row, which is not a valid current row.
    As you move from row to row, the window remains unchanged as long as the current row stays within that window. However, once you move to a new current row outside the window, you redefine the window to be the N rows starting with the new current row.
    Whenever the window is redefined, the N rows in the database corresponding to the rows in the new window are automatically refetched through an implicit call to the refreshRow() method (described in "Refetching Rows"), thereby updating the data throughout the new window.
    So external updates are not instantaneously visible in a scroll-sensitive result set; they are only visible after the automatic refetches just described.
    For a sample application that demonstrates the functionality of a scroll-sensitive result set, see "Scroll-Sensitive Result Set--ResultSet5.java".
    Note:
    Because this kind of refetching is not a highly efficient or optimized methodology, there are significant performance concerns. Consider carefully before using scroll-sensitive result sets as currently implemented. There is also a significant tradeoff between sensitivity and performance. The most sensitive result set is one with a fetch size of 1, which would result in the new current row being refetched every time you move between rows. However, this would have a significant impact on the performance of your application.
    how can i implement this using
    JDBC 2.0 DatabaseMetaData objects include the following methods to verify this. Each takes a result set type as input (ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_SENSITIVE, or ResultSet.TYPE_SCROLL_INSENSITIVE).
    boolean deletesAreDetected(int) throws SQLException
    boolean updatesAreDetected(int) throws SQLException
    boolean insertsAreDetected(int) throws SQLException

  • Need help in inserting XML Documents as XMLType

    I am using an XMLType column in one of my tables to store XML messages that come from a B2B application. My insert takes the form of:
    insert into mytable values(
    '100',
    'unvalidated',
    'final',
    XMLTYPE(
    'The XML Message
    This has been working fine for the last several weeks. Over the weekend I was working with a new message type and getting ready to enter some test messages for some new validation functions. When I try to insert the row, I get a
    ERROR at line 6:
    ORA-01704: string literal too long
    error message.
    In looking it up, the book says that the string literal is over 4000 characters long, which the message is.
    I can't find anything in the docs on how to insert an XML doc with over 4000 characters into an XMLType column. I'm OK on record size which is supposed to be 2 GB - my string is just too long.
    Please help - I need to be testing this today.
    Rick Price

    Hi Rick,
    For a very large string , i am using following proc.
    See if it can be of any help.
    declare
    str clob ;
    begin
    str := '<?xml version="1.0" ?>
    BIG LARGE STRING ';
    insert into stylesheet values (1, 'style_name' ,XMLTYPE(str)) ;
    commit;
    Cheers
    Pashabhai
    end;

Maybe you are looking for

  • No audio out to firewire

    I have a 1.5 hour time line of a dance recital. In one dance there is a 2 second part where I get no sound out to my firewire deck. The FCP VU meter shows activity between -12 and -6 db during the silence. There is nothing funny in the waveform If I

  • E71 - Wifi WPA Enterprise -- How?

    ESSID (Network Name): ***** Network Type: Infrastructure (or Access Point) TCP/IP: DHCP EAP Type: PEAP Network Authentication: WPA/WPA2 (WPA/WPA2-enterprise) Data Encryption: TKIP/AES Authentication Method/Protocol: MSCHAP-V2 Inner EAP Type: EAP-MSCH

  • Top 10 lowest level dimension members based on measure

    Hi, I'm trying to create a condition with JDeveloper to show the top 10 dimension members based on a measure for the lowest level of the hierarchy, but doesn't work. All other conditions are working well, including top 10 dimension members in other l

  • EJB or java bean

    I have a j2ee application : - a servlet - a java bean which access and manipulate oracle database - JSPs which display results I would like to know what is the difference between a java bean and an entreprise java bean (EJB) and which is the componen

  • C++/CUDA DLL fails to give correct results when running a second time

    Hi all. I just finished writing a C++/CUDA DLL that runs in labview. It passes a 3d array, crunches the data, then spits out some results as a 2d array. When I open labview, and run it, I get the predicted results. However if I run the labview code a