Cached rowset

how to use cached rowset to get a particular row number without using scrollable resultset, please give an example.

http://www.google.com/search?hl=en&q=cached+rowset+example

Similar Messages

  • Problems with cached rowsets:  execute() not called

    I'm using sun studio creator and am trying to use a cached rowset. The code for creating it and accessing it has been created by studio creator.
    The CachedRowSetXImpl is created by the session bean _init method (see below) and is accessed via the jsf web page via a value= attribute on a data table.
    The problem is is that the first time the cached rowset is accessed, it generates the error 'java.sql.SQLException execute() never called. After this is works properly. I've already posted this iin the JSF forum, but didn't get a response. Any ideas?
    private void _init() throws Exception {
    System.err.println ( ClassName + " _init start");
    arg_info_prvdrRowSet.setDataSourceName("java:comp/env/jdbc/isisdev1");
    arg_info_prvdrRowSet.setCommand("SELECT * FROM ISIS_APP.ARG_INFO_PRVDR");
    arg_info_prvdrRowSet.setTableName("ARG_INFO_PRVDR");
    System.err.println ( ClassName + " _init end");
    private CachedRowSetXImpl arg_info_prvdrRowSet = new CachedRowSetXImpl();
    public CachedRowSetXImpl getArg_info_prvdrRowSet() {
    System.err.println ( ClassName + " getArg_info_prvdrRowSet start*****");
    try {
    System.err.println ( ClassName + " Table Name = " +
    arg_info_prvdrRowSet.getMetaData().getTableName(1));
    arg_info_prvdrRowSet.first();
    } catch (Exception Err) {
    System.err.println ( ClassName + " Error is " + Err.getClass().getName() + " " + Err.getMessage() );
    System.err.println ( ClassName + " getArg_info_prvdrRowSet end");
    return arg_info_prvdrRowSet;
    }

    Did you get the solution for this. if you can get please, tell me .
    i m struggling like hell. everything ok. I cannot get the rows. when i deploy in Tomcat 5.5
    con = DriverManager.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setDataSourceName("java:comp/env/jdbc/sea");
    //categoryRowSet.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setUrl("jdbc:mysql://localhost:3306/seafood");
    categoryRowSet.setUsername("root");
    categoryRowSet.setPassword("");
    //categoryRowSet.execute(con);
    categoryRowSet.setCommand("SELECT * FROM category");
    categoryRowSet.setTableName("category");
    categoryRowSet.execute();

  • Caching duration of Cached Rowsets

    There are four contexts usable to place cached rowset. I undersand, that in Application scope, data are loaded amd persisted to application end. Session looks same, but data chaching ends at end of session, right?
    What I dont understand is when data expires, if I place datasource directly to scope of my class and what is RequestBean role in this.
    My practical problem is that I need to cache results only for limited time duration (5 minutes for example)
    Thanks for any help

    Data is cached in a rowset until you refresh it or commit changes, etc.
    The scope of the beans is as follows:
    The Application Bean is valid during the lifetime of the web app.
    The Session Bean is valid during the user's session, which is set by the application server. It is possible that it may be persisted by the application server after some time limit of inactivity. Therefore, any properties on a SessionBean should implement the Serializable interface or be declared transient.
    The Page Bean lasts for the time of an HTTP request and response cycle.
    The Request Bean lasts as long as two subsequent Page Beans' request / response cycles. They are used to pass data between two pages. Data stored in properties of a Request Bean, outlive the form submission of the first page, and last through to the destruction of the second page.

  • Navigating thru Cached Rowset

    I am trying to come up with a search page which brings 15 results at a time out of around 900 records. I have finally settled with using Cached RowSet as MS Access (97 or 2000) probably doesn't support Scrollable resultsets.
    Can somebody tell me how shall I program the URL to get next 15 results. I have gone thru the methods but am not able to figure out how to formulate the link for "Next 15" button.
    Thanks.

    Check out the grid tag at http://www.dotjonline.com/taglib/grid.jsp

  • What is the difference between RESULTSET and a CACHE ROWSET

    hi all,
    can anybody tell me the difference between a RESULTSET and a CACHE ROWSET

    Sure! It's... on the javadocs :-)

  • Looking for oracle JDBC driver that support Rowset

    I am using oracle driver "oracle.jdbc.OracleDriver" downloaded from oracle.com and i am using cached rowset in my program but my program gave me runtime error :
    Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
    at com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:757)
    at com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:1385)
    at WebRowSetSample.main(WebRowSetSample.java:73)
    but if i used data driver provided by Data Direct "com.ddtek.jdbc.oracle.OracleDriver" then it is working fine but the problem is data direct driver is not free and cant be used in production server, so if anyone know any free driver that support oracle and rowset implementation or able to correct problem then plz help me out.
    thanks...

    Hi I am using latest driver from oracle site, but the problem is when i fire execute method of cahed rowset i throws error that i mentioned above, if you have any other driver than mail me on [email protected]

  • RowSet.getBoolean can not work?

    I have a table which has a Number field. When the field value is 0, ResultSet.getBoolea() returns false; when the field value is 1, ResultSet.getBoolean() returns true.
    But WebLogic's WLCachedRowSet.getBoolean() always returns false no matter what is in the database.
    Is this WebLogic bug can be fixed by any sp or something else?

    This is indeed the observed behaviour.
    Works with JDBC ResultSet.
    Broke with Weblogic Cached RowSet.

  • DID YOU KNOW?? - ABOUT DATAPROVIDER COMPONENTS IN THE PALETTE??

    Hi All,
    DID YOU KNOW??
    Practically all applications entail accessing data of some sort, often data stored in a relational database table or some sort of list, such as a vector or an array. Usually you need to read in data from the data source, but many times you have to update that data, too. The Sun Java Studio Creator integrated development environment, as another enhancement to its application model, provides data provider components that simplify accessing data sources, regardless of whether the data source is a relational database table, flat file, web service, vector, array, or some other type of data store.
    A data provider component is a nonvisual abstraction for wrapping sources of data, and it represents a more generic and flexible data binding mechanism. A glance at the Palette indicates that there are many different kinds of data providers available to you. These include data providers for cached RowSets, ResultSets, lists, arrays, maps, table rows, and method results.
    These data providers constitute a layer between a web application's components and its persistence tier, such as a database table, Array object, or Enterprise JavaBean object. This layer enables you to access data in a consistent way, even though data may come from different sources.
    Lets briefly discuss the CachedRowSetDataProvider
    The CachedRowSetDataProvider Component
    A CachedRowSetDataProvider is a wrapper to data held in a CachedRowSet. The primary purpose of a CachedRowSetDataProvider is to facilitate binding to components in the IDE. A CachedRowSet stores the data retrieved from a database. In fact, the only information held by the CachedRowSetDataProvider is a cursor position into the CachedRowSet. Multiple CachedRowSetDataProvider instances can reference the same CachedRowSet, and each instance will have its own cursor position into the CachedRowSet.
    Learn more :-
    Working With Data Providers
    http://developers.sun.com/jscreator/learning/tutorials/2/dataproviders.html
    Data Provider Components in Java Studio Creator
    http://developers.sun.com/jscreator/reference/fi/2/data-providers.html
    Using CachedRowSet and CachedRowSetDataProvider in the Sun Java Studio Creator IDE
    http://developers.sun.com/jscreator/reference/techart/2/insert_row_in_table.html
    We would like to know the following from you :-
    1) Which of the DataProviders are you using in applications you are building? Also How and Where?
    2) Did you face any challenges while using them?
    3) Did you find any special usages/scenarios for using these components?
    4) Do you have any feedback/comments/improvements which you would like to see with using Dataproviders?
    Thank you for all your inputs and for joining in the discussion.
    K

    .

  • Oracle JDBC 2.0 extensions

    Hi,
    We are currently using Oracle 8i with the Oracle JDBC driver v.8.1.7 found in classes12.zip. I've seen mention on this board of an OracleRowSet and OracleCachedRowSet. Where are these classes located because they aren't included in my jar? Can I have a link to a place to download them? Are the javax.sql JDBC 2.0 extensions even implemented with this version of the Oracle drivers? I don't see anything about an OracleRowSet in the docs that come with the driver.
    Also, are these classes meant to support large resultsets? We have a need to process large numbers of results (somewhere in the neighborhood of 400,000 rows). We can't limit this amount of rows or run the query a second time as the first run of the query could take hours anyway. We're currently using a caching solution from BEA but are looking into Oracle's RowSet/CachedRowSet implementation.
    Thanks for any help!
    K Lewis

    you need ocrs12.zip for RowSet and cached RowSet but i think these are supported only in Oracle9i Database R1 and up
    Kuassi
    Hi,
    We are currently using Oracle 8i with the Oracle JDBC driver v.8.1.7 found in classes12.zip. I've seen mention on this board of an OracleRowSet and OracleCachedRowSet. Where are these classes located because they aren't included in my jar? Can I have a link to a place to download them? Are the javax.sql JDBC 2.0 extensions even implemented with this version of the Oracle drivers? I don't see anything about an OracleRowSet in the docs that come with the driver.
    Also, are these classes meant to support large resultsets? We have a need to process large numbers of results (somewhere in the neighborhood of 400,000 rows). We can't limit this amount of rows or run the query a second time as the first run of the query could take hours anyway. We're currently using a caching solution from BEA but are looking into Oracle's RowSet/CachedRowSet implementation.
    Thanks for any help!
    K Lewis

  • How to display stored procedure results in SJSC table?

    I have been able to create a cached rowset and debug/watch the results, but do not understand how to transfer those results to a Table component. Can anyone point me in the right direction?
    Details:
    In SessionBean1.java, I declared the stored procedure and rowset along with get/set and update procedures:
    // SLS trying stored procedure 20060412
        private java.sql.CallableStatement spFXRatesStatement; 
        private CachedRowSetXImpl spFXRatesRowSet = new CachedRowSetXImpl();
        public CachedRowSetXImpl getSpFXRatesRowSet() {
            return spFXRatesRowSet;
        public void setSpFXRatesRowSet(CachedRowSetXImpl crsxi) {
            this.spFXRatesRowSet = crsxi;
        public void updateSpFXRatesRowSet(String inDate, String inCcy) {
            try {
                spFXRatesStatement.setString(1, inDate);
                spFXRatesStatement.setString(2, inCcy);
                spFXRatesRowSet.populate(spFXRatesStatement.executeQuery(), 1);
            catch (Exception e) {
                // TODO - write exception code
    // SLS trying stored procedure 20060412I then �prepared� the stored procedure within SessionBean1�s init() procedure:
    // SLS trying a stored proc 20060412
            try {
                javax.naming.Context ctx = new javax.naming.InitialContext();
                javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/bmo_fp");
                java.sql.Connection conn = ds.getConnection();
                // spGetFXRates
                spFXRatesStatement = conn.prepareCall("{call GetFXRates(?, ?)}",
                        java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY);          
               // next sp...
                // clean up
                ctx.close();
                conn.close();
            catch (Exception e) {
                // TODO - add exception code
    // SLS 20060412 I can see the results in a web page procedure with a �getSessionBean1().getSpFXRatesRowSet().getString(i)� watch.
    try {
                getSessionBean1().updateSpFXRatesRowSet("9/30/2005","EUR");
                getSessionBean1().getSpFXRatesRowSet().first();
                while (getSessionBean1().getSpFXRatesRowSet().isLast() != true) {
                    getSessionBean1().getSpFXRatesRowSet().next();
            catch (Exception e) {
                // TODO - specify error detail
            }Now, how do I transfer these results to a table?

    I think you have to add a CachedRowSetDataProvider to you page been.
    Then initalize it with your getSpFXRatesRowSet() in the init() method.
    Then link you table to the CachedRowSetDataProvider.

  • When to use ApplicationBean  and Session Bean dataproviders

    hi i am developing a small application, in which i have cached rowset and if i want to access the database i have to call the bean component so which one to call either application Bean or Session Bean component in some examples they used application bean and in some applications they used session bean. Please suggest me the right one and i have to access the database correctly. I am confused ,please help me out in solving this problem.
    Thanking You in Advance.

    The following excerpt is from http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/scopes.html
    Before you create a bean property to store a value, you must decide what scope to put the property in. Because several users can access a web application at the same time, you want to use the smallest scope possible so that you don't waste valuable space. The following figure illustrates the duration of each type of scope.
    * Application scope lasts until the server stops the application. Values that you store in an application bean are available to every session and every request that uses the same application map.
    * Session scope begins when a user first accesses a page in the web application and ends when the session times out due to inactivity, or when the web application invalidates the session, such as, for example, by calling session.invalidate().
    * Request scope begins when the user submits the page and ends when the response is fully rendered, whatever page that is.

  • Number of conflicts while synchronizing: 4 SyncResolver.INSERT_ROW_CONFLICT

    Hi All,
    I have a problem saving edits and new rows to a data table.
    I get the following error Number of conflicts while synchronizing: 4 SyncResolver.INSERT_ROW_CONFLICT
    This is described as :
    Indicates that a conflict occurred while the RowSet object was attempting to insert a row into the data source. This means that a row with the same primary key as the row to be inserted has been inserted into the data source since the last synchronization.
    I can see however that the code is generating new primary keys as it should so I am baffled.
    The code for the addItem button and save changes is shown below.
    Any insight welcome
    Thanks
    Jim
    public String addItemButton_action() {
    try {
    RowKey rk = productsDataProvider.appendRow();
    productsDataProvider.setCursorRow(rk);
    productsDataProvider.setValue("PRODUCTS.PRODUCTINFOID",new Integer(0));
    productsDataProvider.setValue("PRODUCTS.PRODUCTID",new String("A"));
    productsDataProvider.setValue("PRODUCTS.INFO",new String("B"));
    productsDataProvider.setValue("PRODUCTS.RPRICE",new Integer(3));
    productsDataProvider.setValue("PRODUCTS.WPRICE",new Integer(5));
    productsDataProvider.setValue("PRODUCTS.STYLE",new String("C"));
    productsDataProvider.setValue("PRODUCTS.TYPE",new String("D"));
    productsDataProvider.setValue("PRODUCTS.STOCK",new Integer(8));
    productsDataProvider.setValue("PRODUCTS.DELAY",new Integer(9));
    productsDataProvider.setValue("PRODUCTS.COLOUR",new String("E"));
    productsDataProvider.setValue("PRODUCTS.MATERIAL",new String("F"));
    productsDataProvider.setValue("PRODUCTS.SIZE",new String("G"));
    productsDataProvider.setValue("PRODUCTS.ROOM",new String("H"));
    productsDataProvider.setValue("PRODUCTS.SHOW",new String("bool"));
    productsDataProvider.setValue("PRODUCTS.SUPPLIERID",supplierDD.getSelected());
    } catch (Exception ex) {
    log("Error Description", ex);
    return null;
    // Get the next key using result of queery on MaxProducts data provider
    public String saveChanges_action() {
    try {
    CachedRowSetDataProvider maxProducts = getSessionBean1().getMaxProductsDataProvider();
    maxProducts.refresh();
    maxProducts.cursorFirst();
    int newProductInfoID = ((Long)maxProducts.getValue("MAXPRODUCTSINFOID")).intValue();
    //Navigate through rows with data provider
    if (productsDataProvider.getRowCount()>0){
    productsDataProvider.cursorFirst();
    do {
    if(productsDataProvider.getValue("PRODUCTS.PRODUCTINFOID").equals(new Integer(0))){
    log("In the start of the if..."+newProductInfoID);
    error("In the start of the if..."+newProductInfoID);
    productsDataProvider.setValue("PRODUCTS.PRODUCTINFOID", new Integer(newProductInfoID));
    newProductInfoID++;
    //log("In the if...");
    //error("In the if...");
    }while (productsDataProvider.cursorNext());
    productsDataProvider.commitChanges();
    log("After commitChanges(...");
    error("After commitChanges...");
    } catch (Exception ex) {
    log("Couldnae save the changes", ex);
    error("Couldnae save the changes"+ ex.getMessage());
    return null;
    }

    have you tried using an auto increment field for your primary key in your database table - you can then use the cached rowset's setInsertableColumns() method to include all but the primary key field, and your db autogenerates the next value(s) on insert - it seems to working swimingly on MySQL and saves a lot of messy code
    (you can can still do all your field assignments with the dataprovider)
    Paul.

  • JoinRowSet : Multiple Columns as the MatchColumn

    Hi All,
    RE: JoinRowSet : Multiple Columns as the MatchColumn
    I spent one day and have been trying to join two tables with two columns as a JOIN match... cannot made anything work. I read all the doc and the JDBC RowSet Implementations Tutorial doesn't really help a lot.
    Any example will be appreciated.
    Connection con = DriverManager.getConnection(dbUrl,dbUserId,dbPasswd);
    Statement stmt8 = con.createStatement();
    ResultSet rs = stmt8.executeQuery("select project_id, bld_id, bld_name from table1");
    Statement stmt10 = con.createStatement();
    ResultSet rs3 = stmt10.executeQuery("select project_id, bld_id, project_name from table2");
    CachedRowSet crs3 = new CachedRowSetImpl();
    crs3.populate( rs);
    System.out.println("Size of the first cached rowset is:: "+crs3.size());
    CachedRowSet crs4 = new CachedRowSetImpl();
    rs.beforeFirst();
    crs4.populate( rs);
    System.out.println("Size of the first cached rowset is:: "+crs4.size());
    JoinRowSet jrs = new JoinRowSetImpl();
    System.out.println("Adding 1st crs :: "+crs3.size());
    int [] idArray = {1,2};
    crs3.setMatchColumn(idArray);
    jrs.addRowSet(crs3);
    crs4.setMatchColumn(idArray);
    jrs.addRowSet(crs4);
         FileWriter fWriter;
    fWriter = new FileWriter("myoutput.xml");
    jrs.writeXml(fWriter);
    fWriter.flush();
    fWriter.close();

    I have no idea this is what you are trying but look at this.
    String select Statement = "select table1.project_id, table1.bld_id, table1.bld_name, table2.project_name from table1 left join table2 on table1.project_id = table2.project_id and table1.bld_id = table2.bld_id where ... order ...";
    Statement stmt8 = con.createStatement();
    ResultSet rs = stmt8.executeQuery(select Statement );The joined data is in rs.
    rykk

  • About application module pooling

    Hi all,
    I'm developing an application with JDev9i and I' trying to enable am pooling. I setup the jbo.recycletreshold=0 property and I put a log statement in the constructor of my Entity Object.
    I execute a query and display its result (in a paged form 10 by 10) in a jsp.
    every time I call the jsp (even when I click on the next page) I see the creation of all the entity objects. I logged applicationmodule.hashCode() and it's always the same.
    Which steps should I follow to enable am pooling with entity object pooling? I'm trying to read the pdf docs but I still haven't found what I'm looking for. Can anyone explain me what I'm doing wrong and where to find the documentation I need?
    Thanks,
    Giovanni

    Hi,
    The issue is that changing where clause parameters does not itself cause a ViewObject to re-execute its query. So,
    analyzing your code sample above:
    ApplicationModule am = cookie.useApplicationModule(true);
    Acquire an ApplicationModule instance for the session.
    ViewObject vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(1160)});
    // tag0
    Find the target ViewObject and set its where clause. Do not execute the query. VO State:
    Not executed
    RowSet for ID_DOC 1160 is not fetched
    Not iterated
    RangeSize = default
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    int firstIndex=0;
    int maxSize=vo.getRowCount();
    Acquire the VO's rowCount. This will force the VO to execute itself if it has not already been executed. If the VO has
    already been executed then this will not force the VO to re-execute itself. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Not iterated
    RangeSize = default
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    int rangeSize=1;
    vo.setRangeStart(0);
    vo.setRangeSize(rangeSize);
    Row[] rows=vo.getAllRowsInRange();
    Row row = rows[0];
    Setup the VO range size. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    if (row != null)
    System.out.println("IdDoc: " + row.getAttribute("IdDoc"));
    // release the application module statefully
    cookie.releaseApplicationModule(true, true);
    Release the ApplicationModule statefully. Note here that the rangeSize, the whereClause, the whereClause parameters,
    the current row, and the ViewObject's row cache will all be maintained by the ApplicationPool. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    // acquire an application module instance. use the same cookie.
    // this is equivalent to a second HTTP request originating from the same
    // session which released the cookie statefully.
    am = cookie.useApplicationModule(true);
    At this point, assuming that the AM was not recycled for use by another session (true for this SimpleTest), the same
    AM instance that was released will be returned. VO state (same as upon release):
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(1159)});
    // tag1
    Set the VO where clause. This is where the issue occurs. As mentioned above modifying the where clause
    parameters do not force the VO query to be re-executed. So, the VO remains in an executed, iterated state with a
    row cache corresponding to ID_DOC 1159. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1159
    //vo.executeQuery();
    //row = vo.first();
    vo.setRangeStart(0);
    vo.setRangeSize(rangeSize);
    rows=vo.getAllRowsInRange();
    row = rows[0];
    // tag2
    Setup and populate the range. If the VO is already in an executed state then all of these operations will be performed
    against the cached RowSet (again, ID_DOC 1159). So, these will not force the VO to re-execute itself. VO State:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1159
    if (row != null)
    System.out.println("IdDoc: " + row.getAttribute("IdDoc"));
    // release the application module statefully
    cookie.releaseApplicationModule(true, true);
    It sounds as if you would like the VO to be re-execute itself at :tag1above, placing it in the following state at :tag2:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    The most efficient way to achieve this is to force a query re-execution when the where clause parameters change.
    For example execute the following at tag0 (I assume this is the portion that simulates the servlet (model/controller) logic
    and/or at tag1 (I assume that this is the portion that simulates the JSP (view) logic which I also assume would not
    normally be responsible for setting the where clause parameter and modifying the range, correct?).
    Object[] oldWhereClauseParams = vo.getWhereClauseParams();
    // this block was copied from above tag0
    ViewObject vo = am.findViewObject("DoctorView");
    vo.setWhereClause("ID_DOC = :1");
    vo.setWhereClauseParams(new Object[]{new oracle.jbo.domain.Number(<new where clause parameter>)});
    Object[] newWhereClauseParams = vo.getWhereClauseParams();
    boolean whereClauseParamsSame =
    (newWhereClauseParams.length == oldWhereClauseParams.length);
    if (whereClauseParamsSame)
    for (int i=0; i < newWhereClauseParams.length; i++)
    if (!oldWhereClauseParams.equals(newWhereClauseParams[i]))
    whereClauseParamsSame = false;
    break;
    // force a query re-execution if the where clause paramters have changed.
    if (!whereClauseParamsSame)
    vo.executeQuery();
    which would yield the following VO state at tag2:
    Executed
    RowSet for ID_DOC 1160 is fully fetched
    Iterated to rowIndex 0
    RangeSize = 1
    User defined where clause = "ID_DOC = :1"
    Where clause parameter 0 = 1160
    Hope this helps.
    JR

  • Sun Team: Please help me regarding the login action previously i posted

    Hi sun team i have posted one thread recently. Please verify my code and guide me whether it is correct or not. And if any changes needed Please help me out regarding this.
    http://forum.java.sun.com/thread.jspa?threadID=5118906&tstart=0
    Thank You in Advance

    We do have a sample app that demos this scenario.
    Please check out:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/code/sampleapps/index.jsp
    Databases: Two Page Create, Retrieve, Update, and Delete (CRUD) Database Operations with Table Display
    Two Page CRUD with Table Display is an application that demonstrates how to perform create, read, update, and delete operations on a cached rowset data provider. The data provider is bound to a JavaServer Faces table component. Rather than having functionality confined to one page, this application has two additional pages, one for creating a trip and another for updating a trip.
    http://developers.sun.com/prodtech/javatools/jscreator/reference/code/sampleapps/2/TwoPageCrudTable.zip
    http://developers.sun.com/prodtech/javatools/jscreator/reference/code/sampleapps/2/2update1/TwoPageCrudTable.zip
    Hope this helps,
    Sakthi

Maybe you are looking for

  • SetAttribute not updating field in table or database

    Hi I'm using Jdev 11.1.2.3.0, I have a table where only one attribute is editable (There's also a condition on whether it is editable or not). The table is in editAll mode. Basically I launch a business action that should multiply this attribute in A

  • Oracle Table Recomendations

    Hello All, We have source data for prepaid system like voice calls, sms etc. Oracle database 10G is our target database. Average number of records for voice is 20 million and sms is having 10 million records per day. We have two options for loading d

  • Want User Exist or BADI when PO created and saved in database

    Hello Experts,     I want User Exists or BADI, when PO saved in database table. That is, after Successfully Created message, want user exist or BADI in 4.7 server. Thanks & Regards, Poonam.

  • Number ranges in CRM  -- HR integration ??

    Hello All I am working on CRM u2013 HR integration, After replicating the organizational model and employees I found that not all of the employees have been replicated so I did changes in the number ranges that have been assigned to the employees at

  • Problem with Vista x64 and Audible in iTunes

    I've made a clean install of Vista x64. Installed iTunes and started it off reloading my music. When it came to .aa files from Audible it prompted me for my audible login - which I gave. It then rejected my login and skipped all my audible stuff. I'v