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

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.

  • 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

  • Navigation is cached - even when navigation cache is disabled?!

    I seem to have a problem clearing the navigation cache. Whenever I change a role of workset in the PCD, the change is not visible until some time has passed (perhaps 100 minutes, I will try to verify that).
    If I change a page (like inserting a new iView) the change is visible immediatly.
    This sounds like a fairly standard "flush the navigation cache" problem, but that does not solve the problem. I have disabled all the caches in "System Administration -> Navigation -> Navigation cache" and have also cleared all of them just for good measure.
    I have used Firebug in firefox to verify that this is not a browser cache problem. For example I have a folder in the role that contains two pages. I add a third page, flush all browser caches, close the browser and reload the page. In firebug I can see that I get a "200 OK" response that only includes the original two pages - not the new third page.
    I have also tried clearing the PCD cache in "System Administration -> Support -> Portal Content Directory -> PCD Administration -> Release cache". When I do that I can see (again with firebug) that the request is taking slightly longer the first time (around 300ms instead of the usual ~70ms). However, the new page is still not visible.
    The only thing that help (besides waiting) is to restart the entire portal. The changes are then visible immediatly.
    I have even tried clearing the HTTP cache, which also does not help.
    What other caches could there be besides the navigation cache, the PCD cache, the HTTP cache or the browser cache? How can I debug this problem further?
    Thanks in advance.
    Best regards,
    Ole Hyldahl Tolshave
    P.S. We use SEP EP 7.00 SP21
    Edited by: Ole Hyldahl Tolshave on Jun 17, 2010 10:21 AM

    Hi Tobias,
    I tried clearing the DB cache (by using /irj/servlet/prt/portal/prtroot/com.sap.portal.prt.cache.PRTRegionDBClear). No change (change to role is still being cached).
    I used the PCD Inspector and verified that the contents are identical to what I see in Content Administration -> Portal Content (which is different from what is rendered in the top navigation and detailed navigation).
    We only have one server node running.
    I tried deploying the .PAR-file from SAP support (and restarted). This made no changes so now I am waiting for them to get back to me.
    But thank you again for trying to help.
    Best regards,
    Ole Hyldahl Tolshave

  • Control JSF Component navigation thru Javascript

    <a4j:region>
                                                 <h:inputText id="bc1"                     value="#{addHardware.barCode1}"           valueChangeListener="#{addHardware.processValueChange}"          style="border-right-color: BLUE; border-bottom-color: BLUE; border-top-width: medium; border-top-color: BLUE; border-right-width: medium; border-left-width: medium; border-left-color: BLUE; border-bottom-width: medium">
                                                 <a4j:support event="onfocus"           reRender="form1"/>
                                                 <a4j:support event="onblur"               reRender="bc1, displayMessageLabel, errmsgheader, addnotesbtn, submit"/>
                                                 </h:inputText>
                                                 </a4j:region>
    Question: How can I pass the values to the Javascript function if my backing bean returns two values such as component id (in the above example "bc1") and validational error msg so that I can keep the focus on the same component (thru Javascript) when validational error message exists.
    If my question is not clear,....please let me know ...Thx for your help

    Maybe I just haven't looked far enough but it seems
    that using client-side Javascript is not intended to
    be used/asociated with JSF.I'm not sure how much is mentioned about this in the current draft (if at all), but the intention is that client-side code can be generated (by the component or by a renderer) to perform things like validation of the client when possible (in addition to the server validation, just to speed things up). This is an area that 's even more "work in progress" than other parts.

  • 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 :-)

  • Apple Script - Simple Navigation thru Preferences

    Howdy,
    I'm trying to us Apple Script to simply change my Network Location. I thought it would be easy, I must be missing something. Here is the code I've written so far that works...
    tell application "System Preferences"
    activate
    set current pane to pane "Network"
    end tell
    Now, I want to change the Location field (I believe it's called an anchor) to my secondary (Home, for example). So, I added a line like such...
    tell application "System Preferences"
    activate
    set current pane to pane "Network"
    set anchor to "Location"
    end tell
    This 4th line doesn't work, but you get the idea. I have written many variations of this 4th line (i.e. 'set "Location" to "Home"'), nothing seems to work. And there doesn't seem to be much documentation on anchors (other than what's in the Dictionary).
    Recording doesn't save it, so that's out of the question.
    Does anyone have any ideas?? Thanks.
    Bryan
    iMac Intel   Mac OS X (10.4.7)  
    iMac Intel   Mac OS X (10.4.7)  

    Surround the line...
    click button "Apply" of sheet 1
    ... with 'try ... end try', as shown below ...
    try
    click button "Apply" of sheet 1 -- Select the'Apply' button of drop down sheet.
    end try
    Full code, with comments:
    property tMenu : "Home" -- The menu item to select.
    tell application "System Preferences" -- Launch application
    activate
    set current pane to pane "com.apple.preference.network" -- Select 'Network' utility.
    end tell
    tell application "System Events" to tell process "System Preferences"
    tell window 1
    click pop up button 1 -- Select the 'Localtion' popup button.
    click menu item tMenu of menu 1 of pop up button 1 -- Select the 'tMenu' menu item.
    click button "Apply Now" -- Select the 'Apply Now' button.
    click button 1 -- Select the Close button.
    try
    click button "Apply" of sheet 1 -- Select the'Apply' button of drop down sheet.
    end try
    end tell
    end tell

  • Navigation for database tables in a transaction code

    Hi all !
       Is there any way to know the database tables linked to a transaction code, so that searching for fields in tables gets easier right?Please help.
    What is the use of Tcode SE80.How can we make use of this transaction?

    hi,
    SE80 - Object Navigator
    se80 is a tool to develope and navigate programs and dd-obj.
    SE80 Object Navigator - > means all the objects qill be available there.
    in se80 in addition to viewing the objects related to programming and classess, there are more priviliges to view such as some other repositories suchas mime, object repository,object browser and all..
    The 2 editors are se38 and se80 both have the abap editor in place. In se38 you can go create programs and view online reports and basically do all thedevelopmet of objects in this editor. In se80 ( object navigator) there are additional features such as creating packages,module pool , function group ,classes, programs ( where you can create ur programs) and BSP applications .
    SE38, u will get more space in editor when u compare with the SE80 screen, the tree structure available will occupy more space so it will be eay for us to code.
    If u want to do any special navigation then u can got to SE80, but there is no specific reason.
    It depends on teh users convineince.
    se80 is to navigate to every object .....
    but everytime there is no need to navigate to several steps and go to abap editor.
    So there certain transactions which takes us to directly to the objects such as SE38 for abapaeditor
    SE37 for function module
    SE93 for creating transaction codes...etc.
    U can also traverse to se80 from SE38 itself using CtrlShiftF5.
    SE 38 ->Abap Editor thru which we can create/modify the programs.
    SE80 ->Object Navigator thru which we can navigate to many areas like message classes,Function modules,application areas,transactions, programs etc.

  • Apply adjustments thru process_order API

    I have created an order and order lines .
    Then I am trying to apply a modifier ( manual ) thru process_order API by giving the header_id of order , list_header_id,list_line id of modifier , line_index as 1 ( for line 1 ) , automatic_flag as 'N' .
    But the adjustment is not applying .
    When I am navigating thru ACTIONS -> view adjustments and applying the same manual modifier it is applying .

    Any idea any one ....................................
    why this is not happening

  • 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]

  • Slow file opening thru network

    Hi,
    I've just bought a MacBook Pro 13 (may 2010) running Snow Leopard 10.6.3.
    At the office we have a NAS (Network Attached Storage) for file sharing (files with 300Mb).
    The connection with the server goes normaly and the navigation thru folders is also normal. However, opening files extremally slow (10 to 15 minutes to open a single 18Mb PowerPoint presentation).
    If the same file is local, it opens very fast. Tried using wireless and cable, the last one is a little bit fast, but not much.
    Does anybody knows a solution?
    Thanks.

    One reason this can happen is because in Folder mode OSX creates a preview of the file. To do that, it must transfer the entire file to the OSX machine before it starts to draw the preview. If you are also transferring the file to open it, you have two simultaneous transfers going on which compete for bandwidth and crosstalk. You can prevent this by browsing non-OSX filesystems with the file preview disabled. Note that this is NOT a problem with OSX fileservers since OSX keeps a custom preview icon for fast network browsing.

  • 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.

  • Using datadirect spy

    Hi,
    i use datadirect spy like specified in Sakthis weblog : How to Track JDBC Calls with DataDirect Spy
    http://blogs.sun.com/sakthi/
    i use the same approch of the blog : Navigating through a Large RowSet
    in my page i query a table with 33 rows
    in the cached rowset i make pagesize to 5
    i run to display a first page of the table, there's a log:
    spy>> Connection[1].createStatement()
    spy>> OK (Statement[1])
    spy>> Statement[1].executeQuery(String sql)
    spy>> sql = SELECT COUNT(*) FROM SCOTT.BONUS
    spy>> OK (ResultSet[1])
    spy>> ResultSet[1].close()
    spy>> OK
    spy>> Statement[1].close()
    spy>> OK
    spy>> Connection[1].setTransactionIsolation(int level)
    spy>> level = 2
    spy>> OK
    spy>> Connection[1].prepareStatement(String sql)
    spy>> sql = SELECT ALL SCOTT.S_PRODUCT.ID,
    SCOTT.S_PRODUCT..
    spy>> OK (PreparedStatement[1])
    spy>> PreparedStatement[1].setMaxRows(int max)
    spy>> max = 0
    spy>> OK
    spy>> PreparedStatement[1].setMaxFieldSize(int max)
    spy>> max = 0
    spy>> OK
    spy>> PreparedStatement[1].setEscapeProcessing(boolean enable)
    spy>> enable = true
    spy>> OK
    spy>> PreparedStatement[1].setQueryTimeout(int seconds)
    spy>> seconds = 0
    spy>> OK
    spy>> Connection[1].prepareStatement(String sql, int resultSetType, int result..
    spy>> Connection[1]sql = SELECT ALL SCOTT.S_PRODUCT.ID,
    S..
    spy>> Connection[1]resultSetType = 1004
    spy>> Connection[1]resultSetConcurrency = 1008
    spy>> OK (PreparedStatement[2])
    spy>> PreparedStatement[2].setMaxRows(int max)
    spy>> max = 0
    spy>> OK
    spy>> PreparedStatement[2].setMaxFieldSize(int max)
    spy>> max = 0
    spy>> OK
    spy>> PreparedStatement[2].setEscapeProcessing(boolean enable)
    spy>> enable = true
    spy>> OK
    spy>> PreparedStatement[2].setQueryTimeout(int seconds)
    spy>> seconds = 0
    spy>> OK
    spy>> PreparedStatement[2].executeQuery()
    spy>> OK (ResultSet[2])
    spy>> ResultSet[2].absolute(int row)
    spy>> row = 1
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].next()
    spy>> OK (false)
    spy>> ResultSet[2].beforeFirst()
    spy>> OK
    spy>> ResultSet[2].getMetaData()
    spy>> OK (ResultSetMetaData[1])
    spy>> ResultSetMetaData[1].getColumnCount()
    spy>> OK (3)
    spy>> ResultSetMetaData[1].isAutoIncrement(int column)
    spy>> column = 1
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isCaseSensitive(int column)
    spy>> column = 1
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isCurrency(int column)
    spy>> column = 1
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isNullable(int column)
    spy>> column = 1
    spy>> OK (0)
    spy>> ResultSetMetaData[1].isSigned(int column)
    spy>> column = 1
    spy>> OK (true)
    spy>> ResultSetMetaData[1].isSearchable(int column)
    spy>> column = 1
    spy>> OK (true)
    spy>> ResultSetMetaData[1].getColumnDisplaySize(int column)
    spy>> column = 1
    spy>> OK (8)
    spy>> ResultSetMetaData[1].getColumnLabel(int column)
    spy>> column = 1
    spy>> OK (ID)
    spy>> ResultSetMetaData[1].getColumnName(int column)
    spy>> column = 1
    spy>> OK (ID)
    spy>> ResultSetMetaData[1].getSchemaName(int column)
    spy>> column = 1
    spy>> OK ()
    spy>> ResultSetMetaData[1].getPrecision(int column)
    spy>> column = 1
    spy>> OK (7)
    spy>> ResultSetMetaData[1].getScale(int column)
    spy>> column = 1
    spy>> OK (0)
    spy>> ResultSetMetaData[1].getTableName(int column)
    spy>> column = 1
    spy>> OK ()
    spy>> ResultSetMetaData[1].getCatalogName(int column)
    spy>> column = 1
    spy>> OK ()
    spy>> ResultSetMetaData[1].getColumnType(int column)
    spy>> column = 1
    spy>> OK (3)
    spy>> ResultSetMetaData[1].getColumnTypeName(int column)
    spy>> column = 1
    spy>> OK (number)
    spy>> ResultSetMetaData[1].getColumnClassName(int column)
    spy>> column = 1
    spy>> OK (java.math.BigDecimal)
    spy>> ResultSetMetaData[1].isAutoIncrement(int column)
    spy>> column = 2
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isCaseSensitive(int column)
    spy>> column = 2
    spy>> OK (true)
    spy>> ResultSetMetaData[1].isCurrency(int column)
    spy>> column = 2
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isNullable(int column)
    spy>> column = 2
    spy>> OK (0)
    spy>> ResultSetMetaData[1].isSigned(int column)
    spy>> column = 2
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isSearchable(int column)
    spy>> column = 2
    spy>> OK (true)
    spy>> ResultSetMetaData[1].getColumnDisplaySize(int column)
    spy>> column = 2
    spy>> OK (50)
    spy>> ResultSetMetaData[1].getColumnLabel(int column)
    spy>> column = 2
    spy>> OK (NAME)
    spy>> ResultSetMetaData[1].getColumnName(int column)
    spy>> column = 2
    spy>> OK (NAME)
    spy>> ResultSetMetaData[1].getSchemaName(int column)
    spy>> column = 2
    spy>> OK ()
    spy>> ResultSetMetaData[1].getPrecision(int column)
    spy>> column = 2
    spy>> OK (50)
    spy>> ResultSetMetaData[1].getScale(int column)
    spy>> column = 2
    spy>> OK (0)
    spy>> ResultSetMetaData[1].getTableName(int column)
    spy>> column = 2
    spy>> OK ()
    spy>> ResultSetMetaData[1].getCatalogName(int column)
    spy>> column = 2
    spy>> OK ()
    spy>> ResultSetMetaData[1].getColumnType(int column)
    spy>> column = 2
    spy>> OK (12)
    spy>> ResultSetMetaData[1].getColumnTypeName(int column)
    spy>> column = 2
    spy>> OK (varchar2)
    spy>> ResultSetMetaData[1].getColumnClassName(int column)
    spy>> column = 2
    spy>> OK (java.lang.String)
    spy>> ResultSetMetaData[1].isAutoIncrement(int column)
    spy>> column = 3
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isCaseSensitive(int column)
    spy>> column = 3
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isCurrency(int column)
    spy>> column = 3
    spy>> OK (false)
    spy>> ResultSetMetaData[1].isNullable(int column)
    spy>> column = 3
    spy>> OK (1)
    spy>> ResultSetMetaData[1].isSigned(int column)
    spy>> column = 3
    spy>> OK (true)
    spy>> ResultSetMetaData[1].isSearchable(int column)
    spy>> column = 3
    spy>> OK (true)
    spy>> ResultSetMetaData[1].getColumnDisplaySize(int column)
    spy>> column = 3
    spy>> OK (13)
    spy>> ResultSetMetaData[1].getColumnLabel(int column)
    spy>> column = 3
    spy>> OK (SUGGESTED_WHLSL_PRICE)
    spy>> ResultSetMetaData[1].getColumnName(int column)
    spy>> column = 3
    spy>> OK (SUGGESTED_WHLSL_PRICE)
    spy>> ResultSetMetaData[1].getSchemaName(int column)
    spy>> column = 3
    spy>> OK ()
    spy>> ResultSetMetaData[1].getPrecision(int column)
    spy>> column = 3
    spy>> OK (11)
    spy>> ResultSetMetaData[1].getScale(int column)
    spy>> column = 3
    spy>> OK (2)
    spy>> ResultSetMetaData[1].getTableName(int column)
    spy>> column = 3
    spy>> OK ()
    spy>> ResultSetMetaData[1].getCatalogName(int column)
    spy>> column = 3
    spy>> OK ()
    spy>> ResultSetMetaData[1].getColumnType(int column)
    spy>> column = 3
    spy>> OK (3)
    spy>> ResultSetMetaData[1].getColumnTypeName(int column)
    spy>> column = 3
    spy>> OK (number)
    spy>> ResultSetMetaData[1].getColumnClassName(int column)
    spy>> column = 3
    spy>> OK (java.math.BigDecimal)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].previous()
    spy>> OK (false)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 1
    spy>> OK (10011)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 2
    spy>> OK (Bunny Boot)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 3
    spy>> OK (150.00)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 1
    spy>> OK (10012)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 2
    spy>> OK (Ace Ski Boot)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 3
    spy>> OK (200.00)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 1
    spy>> OK (10013)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 2
    spy>> OK (Pro Ski Boot)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 3
    spy>> OK (410.00)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 1
    spy>> OK (10021)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 2
    spy>> OK (Bunny Ski Pole)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 3
    spy>> OK (16.25)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 1
    spy>> OK (10022)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 2
    spy>> OK (Ace Ski Pole)
    spy>> ResultSet[2].getObject(int columnIndex)
    spy>> columnIndex = 3
    spy>> OK (21.95)
    spy>> ResultSet[2].next()
    spy>> OK (true)
    spy>> ResultSet[2].close()
    spy>> OK
    spy>> PreparedStatement[2].close()
    spy>> OK
    spy>> Connection[1].commit()
    spy>> OK
    spy>> Connection[1].getAutoCommit()
    spy>> OK (true)
    spy>> Connection[1].getTransactionIsolation()
    spy>> OK (2)
    spy>> Connection[1].createStatement()
    spy>> OK (Statement[2])
    spy>> Statement[2].executeQuery(String sql)
    spy>> sql = SELECT COUNT(*) FROM SCOTT.BONUS
    spy>> OK (ResultSet[3])
    spy>> ResultSet[3].close()
    spy>> OK
    spy>> Statement[2].close()
    spy>> OK
    spy>> Connection[1].getMetaData()
    spy>> OK (DatabaseMetaData[1])
    spy>> DatabaseMetaData[1].locatorsUpdateCopy()
    spy>> OK (false)
    spy>> Connection[1].getAutoCommit()
    spy>> OK (true)
    spy>> Connection[1].getTransactionIsolation()
    spy>> OK (2)
    in this log i have 33 ResultSet[2].next()
    and after ResultSetMetaData[1] series, another 5 ResultSet[2].next() with ResultSet[2].getObject(int columnIndex) for each column
    my question is about the first 33 resultset, is cached rowset fetch the entire query result in the first and why?
    Thanks

    to do the navigation with large table i make the maxrows property of the crs to 10 in the design mode, i have table with 10 rows only. After this the resultset in the log file is fetched 10 times only.
    In the next_page button i make this code
    try{
    CachedRowSet crs = this.getSessionBean1().getTest2RowSet();
    crs.setMaxRows(crs.getMaxRows()+crs.getPageSize());
    crs.release();
    crs.nextPage();
    crs.getRow();
    // getRow cause exception in the first click because the nextpage is not occured and in the catch i do //another nextpage, like that the bug of first click is not happen
    catch(Exception e)
    { info(e.getMessage());
    try{
    CachedRowSet crs = this.getSessionBean1().getTest2RowSet();
    crs.release();
    crs.nextPage();
    catch(Exception e1)
    info(e1.getMessage());
    with this, the resultset created and managed by the crs on each click is fetched 10 times only

  • 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

    .

Maybe you are looking for

  • Anzeigefehler beim Adobe Reader 10.1.4 und bei Adobe Reader 11 aktuellste Version

    Hallo zusammen, wir haben bei einem PC das Problem, das der Adobe Reader Anzeigefehler hat. Die Menüleiste mit Datei, Bearbeiten, usw. wird nicht angezeigt, genauso wie die Leiste, wo man das Fenster minimieren, maximieren und schließen kann. Auf dem

  • Clarifications in Asset Accounting

    Dear Experts, Please clarify below questions. 1) What is the difference between Depreciation Area and Depreciation Key? 2) What is the importance of Recalculate value button in Asset Accounting? 3) Suppose I have 1000 assets, if I want to run depreci

  • Xserve Crash - Now won't boot off either SAS Drive

    Hi all, My Xserve (2008) just crashed about an hour ago - turning on the screen connected to the Xserve showed the entire thing had ground to a halt, meaning I had to hold the power button down, thinking it just needed a reboot. Upon re-booting, it j

  • Insert via DB-LINK

    Hi, i'm trying to insert via dblink data selected from local table. Here is the code: create or replace type T_DATA_IDS as table of number(19); export_process_ids t_data_ids;And here is the query:     insert into process@archive       (select * from

  • Photoshop CS4 layers palette too wide problem!

    http://img232.imageshack.us/img232/6828/swatchesld2.jpg The Photoshop CS4 layers palette is too wide and distorts the layout of the default color swatches palette when docked on the same column. And I don't want to have to put the color swatches pale