How can I go old row in Rowset after ExecuteQuery

I have big rowset for Grid. For refresh I call Execute for this Rowset and I want to jump to old line in this rowset.
I try to use SearchableRowsetAccess but cannot find how to give the searching values as Object.
I did the following trial but always return false!
private boolean provaFind(Object o) {
SearchableRowsetAccess rsa = (SearchableRowsetAccess)this.getRowsetAccess();
try {
Object[] values = { o };
return rsa.findRow(new String[] {"CodCons"}, values );
} catch ( ColumnNotFoundException cfe ) {
cfe.printStackTrace();
} catch ( DuplicateColumnException dce ) {
dce.printStackTrace();
} catch ( java.sql.SQLException sqle ) {
sqle.printStackTrace();
return false;
public void rowsetPopulated(RowSetChangeEvent e) {
boolean a = provaFind("1");
a = provaFind(new Integer(1));
a = provaFind(new Long(1));
a = provaFind(new Float(1));
a = provaFind(new Double(1));
a = provaFind(new java.math.BigDecimal(1));
a = provaFind(new oracle.jbo.domain.Number(1));
Hope You can help,
Thanks a lot,
Yuri Avdoshin

Hello Yuri,
Is "CodCons" 'key' column for the rowset ?.
For the column type, an attempt is made to convert the column value you pass to the column's java type (AttributeDef java type).
Here is an example, I tried with Emp table. Note I search by the key column Empno and I search by passing Number and then a String. Both returns true.
// using oracle.jbo.domain.Number
Object searchFor = new oracle.jbo.domain.Number(7369);
boolean found = srs.findRow( new String[]{"Empno"}, new Object[]{searchFor});
System.out.println("search for : " + searchFor.toString() + " : " + found);
// string
searchFor = "7499";
found = srs.findRow( new String[]{"Empno"}, new Object[]{searchFor});
System.out.println("search for : " + searchFor.toString() + " : " + found);
HTH,
Sathish.

Similar Messages

  • How can I access old Time Machine backups after restoring from Time Machine?

    Just restored my iMac and I can only see "Now" when I enter Time Machine. How can I see all the backups and dates I had before I restored?

    While in Time Machine, press the key combination shift-command-C. The front window will show all mounted volumes. All snapshots should now be accessible. Select the one you want and navigate to the files you want to restore.

  • How can I use multiple row insert or update into DB in JSP?

    Hi all,
    pls help for my question.
    "How can I use multiple rows insert or update into DB in JSP?"
    I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
    With thanks,

    That isn't true. Different SQL databases have
    different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
    I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
    and there are also a lot of different ways of talking to
    SQL databases that are possible in JSP, from using
    plain old java.sql.* in scriptlets to using the
    jstlsql taglib. I've done maintenance on both, and
    they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
    Well, sure. As long as you only want to update rows
    with the same value in column 2. I had the impression
    he wanted to update a whole table. If he only meant
    update all rows with the same value in a given column
    with the same value, that's trivial. All updates do
    that. But as far as I know there's know way to update
    more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
    Unless you're using MySQL, for instance. I only have
    experience with MySQL and M$ SQL Server, so I don't
    know what PostgreSQL, Oracle, Sybase, DB2 and all the
    rest are capable of, but I know for sure that MySQL
    can insert multiple rows while SQL Server can't (or at
    least I've never seen the syntax for doing it if it
    does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
    Don't assume that all SQL databases are the same.
    They're not, and it can really screw you up badly if
    you assume you can deploy a project you've developed
    with one database in an environment where you have to
    use a different one. Even different versions of the
    same database can have huge differences. I recommend
    you get a copy of the O'Reilly book, SQL in a
    Nutshell. It covers the most common DBMSes and does a
    good job of pointing out the differences.Yes, I understand that.
    It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
    I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
    The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing.

  • I am unable to update my album art since I commenced using match (and after upgrading to Yosemite).  How can I 'unembed' old cover art and replace?

    I am unable to update my album art on my iMac since I started using Match (and after upgrading to Yosemite 10.10.3).  A message advises that it's not possible to removed old artwork if it's embedded.  How can I 'unembed' old cover art and replace?

    Normally artwork recovered with iTunes is stored as a separate artwork file and iTunes refers to that file to display artwork when you click on a track.  However, if you then copy the file to another player the artwork file is left behind and the track will not display the artwork on the other player.  To get around this it is possible to embed the artwork in the music file itself so it always travels with the file.  Artwork can be embedded by you or files from third party sources may arrive with embedded artwork.  iTunes apparently now won't replace artwork for such files.  You can accomplish this by completely deleting artwork for a file or set of files in Get Info, then getting iTunes to fetch artwork which will then be set as a reference file rather than being embedded.
    I use an old iTunes so unless you are using an ancient iTunes it won't help for me to give you great details.  To erase artwork I simply get info on a series of files and check the box next to the artwork box without adding any artwork and close.  To do it for  single file I Get Info, go to the artwork display tab and click delete.  Here's a Windows reference for a newer iTunes (but the "old Get Info" reference is for early iTunes 12 and no longer works with newer):I cannot delete embedded album artwork in iTunes 12

  • HT203756 How can I remove 'old' or 'incomplete' backups from iCloud?

    How can I remove 'old' or 'incomplete' backups from iCloud? 
    When I attempted, the iPhone 6+ message asked if I wanted to remove ALL of the backups... without giving me the option of selecting the specific one I wanted to remove.
    I had performed 'backups' of my old iPhone, but, when I tried to RESTORE to the REPLACEMENT iPhone, at least one of the iCloud backups shows 'incomplete'.  There was no 'error' on the original iPhone...when it 'failed' to complete the backup.
    Now, I would like to 'clear up' the 'storage' on the iCloud, but am unable to select specific ones. I can either keep all instances or shut off iCloud Backup which would, according to the message, remove/delete ALL of the BACKUPS.
    This shouldn't be this difficult.....

    I too wondered how you remove apps from iCloud.  Judging by the quantity of questions, comments, suggestions and replies (some rather rude) there is a clear need for Apple to make their literature a lot clearer.  The page describing what iCloud backs up refers to "app data" as an item which is backed up.  To the uniniated this might mean the app program but it seems not.  The app is "bought" via iTunes or the App Store and details of your purchase (free or otherwise) is held there separately on the server.
    It would be nice however to be able to remove the reference to junk I have downloaded and decided I don't want so that it doesn't appear on the purchased apps listing!  Apple please note this.
    It must be remembered that Apple products come pitifully supported by manuals "out of the box" on the assumption that it is so easy to use the product that no explanation is needed.  They forget that most buyers of Apple products (me included) don't know (and don't want to know) how they work, so when something is not obvious they are required to plough through Lord knows how many web pages of "knowledge base" material until they find an answer.
    All I can add is that it is worth spending time reading the multiitude of discussion threads before asking the question yet again...

  • How can i restore old backup without deleting my existing data

    how can i restore old backup without deleting my existing data. unfortunately i have deleted few of my old photos and restored them from my old backup. i got the deleted photos but lost my recent data and photos. how can i get those too.

    You cannot. However, if your back up is through iTunes on your computer and you do an internet search for something like "iPhone BackUpExtractor", I believe there is software that will help you access the SQL database that is your back up. You may be able to pull out what you need.
    Once you restore from a back up, any data that was on the phone is gone.

  • How can I delete old data in citadel

    How can I delete old data from Citadel so that HDD is not full when data is continously being logged in the database ?

    Hi there,
    I could see different possible ways to limit the database size on a LabVIEW DSC system.
    a) You could limit the lifespan of your logged data to a certain time by adjusting the option 'Days to keep historical data' in the Tag Configuration Editor>Configure>Historical... tab.
    b) You could use the Citadel Database VIs. Archive Database.vi would allow you to archive a database or a part (certain traces/tags, or certain time interval) to another location. With the archive option 'destructive', it would delete the source of the data from the original database.
    Delete Traces.vi would delete a traces from a database.
    c) The same/similar functionality you can have throught the Measurement and Automation Explorer and its Historical Data Viewer plug-in
    b) and c) are NEW features of LabVIEW DSC 6.1!
    Hope this helps
    Roland
    PS: There is a nice link about archiving Citadel on ni.com :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2F24997EAD7C53A686256B6E00686D64?opendocument&node=DZ52101_US

  • How can I add a row into a JTable with JButton

    Hi all. I have the following code:
    package gui;
    import db.*;
    import javax.swing.table.AbstractTableModel;
    import java.util.ArrayList;
    public class FoundersTable extends AbstractTableModel{
        private static final int COLUMNS = 8;
        private String columnNames[] = {"��� ����", "���", "�������", "�������", "���������", "��������",
                "����� �� ����������", "������ �� ����, �����"};
        private ArrayList data;
        public FoundersTable(){
            data = new ArrayList();
        public int getRowCount() {
            return data.size();
        public int getColumnCount() {
            return columnNames.length;
        public String getColumnName(int colIndex) {
            return columnNames[colIndex];
        public Object getValueAt(int rowIndex, int columnIndex) {
            return ((ArrayList)data.get(rowIndex)).get(columnIndex);
        public void setValueAt(Object value, int rowIndex, int columnIndex) {
            ((ArrayList)data.get(rowIndex)).set(columnIndex, value);
            fireTableCellUpdated(rowIndex, columnIndex);
        public void addRow(ArrayList neueZeile) {
            data.add(neueZeile);
            int index = data.size() - 1;
            fireTableRowsInserted(index, index);
        public void removeRow(int index) {
            data.remove(index);
            fireTableRowsDeleted(index, index);
        public void removeAllRows() {
            data.clear();
            fireTableRowsDeleted(0, 0);
        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return true;
    }Now in my MainJFrame class I have one button for additing and one button for removing a selected row. How can I add/remove rows with this two buttons.
    Thanks

    No my question is how can I add and remove rows WITH buttons My point was the code is the same. You use the addRow(...) method. Why did you write an addRow(...) method if you aren't going to use it?
    I don't understand your problem. Do you not know how to write an ActionListener?

  • I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)... How can I open old Freehand files on this new Mac? Can I still open and work in Freehand on this new Mac?

    I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)...
    How can I open old Freehand files on this new Mac?
    Can I still open and work in Freehand on this new Mac?

    Let me see if I've gotten this right! You want to remove an account from BOTH machines? Do this for your new machine first, then for the other.
    Click the Apple logo on the top left of the screen, System Preferences, Users and Groups (under Systems), unlock the lock in the window if its locked (you need to know the password), select the user that you wish to remove, and click the - sign next to the + sign for Login options. A window will pop up with some options. Select Delete this user and securely, and click 'Delete user'.
    After this, do an update from the App Store.
    Thats all there is to it.
    For the other machine repeat the process except for one thing. Before you delete the user in this case YOU, you will have to give Administrator priviledges to your son bu checking the box 'Allow user to administer this computer'.
    Do NOT do anything from Finder ... if you dont know how to fix the consequences of the problems caused.
    There is no need to unauthorize your iTunes account on your new machine. Do it on the old machine though.

  • How can i delete old email addresses that are no longer in service?

    How can I delete old email addresses that are no longer in  use from my apple computer

    Yes, just open mail and click on the window menu and select previous recipients, when the window opens start edit your email addresses.

  • How can I uninstall old versions of Adobe Illustrator?

    How can I uninstall old versions of Adobe Illustrator?

    This is for uninstalling CS2, but you might find it helpful. EDITED: but watch out, since I don't know if trashing any of these will remove currently needed Illustrator files, if you have a later version.
    To uninstall Adobe Creative Suite in Mac OS 1 -- Double-click Activity Monitor.app in Applications/Utilities, select AHCRemind, and click Quit Process.
    2 -- If you intend to install the product on a different computer, transfer the activation. (See “To transfer the product activation” on page 1.)
    3 -- If you want to uninstall Adobe Acrobat, double-click the uninstaller in Applications/Adobe Acrobat 7.0 Professional, and follow the on-screen instructions.
    4 -- If you want to uninstall Version Cue 2, double-click the uninstaller in Applications/Adobe VersionCue CS2, and follow the on-screen instructions.
    Note: If the Version Cue uninstaller fails, see the alternative procecure, “To remove Version Cue manually” on page 4.
    5 -- From the Applications folder, drag the following items, if present, to the trash: Note: After you drag the items to the trash in steps 5-8, you must empty the trash before you can reinstall
    Adobe Creative Suite 2 on the same computer. • Adobe Acrobat 7.0 Professional • Adobe VersionCue CS2 • Adobe Bridge
    • Adobe GoLive CS2 • Adobe Illustrator CS2 • Adobe InDesign CS2 • Adobe Photoshop CS2 • AdobeHelpCenter.app
    6 -- From the Utilities folder, drag the following items, if present, to the trash: • Adobe Utilities • Adobe Updater.app
    7 -- From the Library folder, drag the following items, if present, to the trash: • Application Support/Adobe/AdobeHelpData • Application Support/Adobe/Assistance • Application Support/Adobe/StartupScripts/Workflow Automation Scripts
    • Preferences/Adobe/Workflow • Preferences/com.adobe.ActivationUtility.plist • Preferences/com.adobe.GoLive.plist • Preferences/Adobe Save For Web GL 8.0 Prefs
    8 -- From the Users/[user name] folder, drag the following items, if present, to the trash: • Library/Preferences Panes/Opera Preferences
    • Library/Caches/Opera Cache
    • Documents/AdobeStockPhotos
    To remove Version Cue manually (Mac OS only, not recommended)
    If you’ve accidentally removed parts of the Version Cue installation manually or if the uninstaller fails, you have to remove the remaining installed Version Cue components manually.
    1 -- From the Library/PreferencePanes folder, drag the Version Cue CS2.prefPane folder to the trash. 2 -- From the Library/Preferences folder, drag the com.adobe.versioncueCS2.plist file to the trash. 3 -- From the Library/StartupItems folder, drag the AdobeVersionCueCS2 folder to the trash. 4 -- From the Applications folder, drag the Adobe Version Cue CS2 folder to the trash.
    5 -- From [user home]/Library/Preferences/Adobe, drag the Workflow folder to the trash. 6 -- (Optional) From the [user home]/Documents folder, drag the Version Cue folder to the trash.

  • How can update my old iphone version 4.3.3 (8j2) to ios 5

    how can update my old iphone version 4.3.3 (8j2) to ios 5

    No further iOS updates are available for an iPhone 3G.
    (78113)

  • I accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions???  plz help!!!

    i accidentally deleted my old fb app on my iPhone 3g. Now i cant download new fb app as it requires ios 4.3. How can i get old app that will work on my old phone. Any suggestions??? plz help

    As already provided, if you don't have such in your iTunes library, on your computer, then there is no way to put it back on your phone. Apps are DRM protected, so even if you found a copy somewhere, you wouldn't be able to use it.

  • How can I transfer old Palm Pilot (Z22) info (calendar/to do lists/memos/contacts is synced to a Windows XP) to a program I can access with an iPod?

    How can I transfer old Palm Pilot (Z22) info (calendar/to do lists/memos/contacts is synced to a Windows XP) to a program I can access with an iPod? Thanks.

    Maybe by the link provided here:
    Palm Desktop and iPhone

  • How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion?il

    How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion? I don't really want to go back to Snow Leopard in order to access the old Microsoft Applications, but they simply aren't supported in Lion.

    In Mail you can select Import Mailboxes... from the File menu. There is an import from Entourage feature.

Maybe you are looking for

  • Can't connect iPhone to MacBook, requires mobileme.

    Hi, so I have a MacBook Pro from mid 2009 and I still have Snow Leopard 10.6.8 and I want to keep it that way. My problem is that it won't accept my iPhone without me being registered at mobileme. Now mobileme was replaced by iCloud and is inactive s

  • Run photoshop on two computer

    Can you have Photoshop element on two computer. I try to get my photoshop element be put on my labtop. I need an answer

  • ITunes crashes just _importing_ videos!

    It has actually been doing this for a little bit now, but before it was only for a few random times, and has gotten much worse: now I can't add my .m4v / .mp4 videos at all!! I already have alot of videos already (50+ episodes of shows), but I hope t

  • BlackBerry Media Sync Will Not Load iTunes Playlists and/or iTunes Library.

    I have updated my iTunes to the latest version, and suddenly, my Media Sync (for BlackBerry) will not load my iTunes Library or iTunes Playlists... Can someone please shed some light on this?

  • Publish content with FTP

    Greetings! I just created a free azure website, but cannot upload my files In all the cases, the error is same Either user cannot log in or Could not connect to server or Could not establish a connection to ftp://waws-prod-blu-009.ftp.azurewebsites.w