Executing Commands with CachedRowSet

Hi,
Could anyone tell me if it is possible to execute a SQL querry against a cached row set? For example, the cached rowset has been populated with data about Customers with fields Name, Order, PartNo. I wish to retrieve the Name and Order fields for a specific PartNo. Any idea how I would do this?
Thanks

What I am doing right now is loading all the data at
the same time. So I don't need to connect to the DB
to fetch the information again.I see.
>
The reason why it is inefficient is that the search
has to be performed about 100 or so times all
sequentially.Why sequentially?
Use an additional hash. The first time you go through the row set you populate the hash with the key being the part number and whatever other info you want associated with it being the data/value - probably as an array or even another hash.
Then when you want info on a part num you use the hash rather than the row set.
Note that excluding other information 100 times is very small in most terms.

Similar Messages

  • Runtime execute command with arguments

    hi
    i need to execute the following command with arguments in java. this is how i would do it in cmd
    C:\Users\name\File\root.exe -a192.168.1.0 -wpassword -p11 -cON   where 192.168.1.0 is the ipaddress and i have it in my java program as a string.similarly password is a string and 11 is the port number as an int in java..i need to execute this in java..
    i just have this:
    String[] command = {"C:\Users\name\File\root.exe", ......};thanks

    d_khakh wrote:
    also when i said this
    String[] command = {"C:\Users\name\File\root.exe", ......};i meant i do not have anything in place of dots. its uncompleted..do not assume i got this part!Yeah, you should read the documents I pointed you to and try to fill in those dots. It really looks like you want someone to do it for you, and that ain't gonna happen (well it usually doesn't anyway).

  • Execute command with defined parameters

    Hi,
    I have a firefox addon, "Image Assistent", which enables you to open images with an image viewer. The only possibility is gThumb, which I do not like. So one makes a symbolic link. I have made one so it uses Feh. But I want Feh to be executed as "feh -ZF --hide-pointer". How do I do this?
    I made a tiny script feh.sh with "feh -ZF --hide-pointer" as content, but this lacks what image it should open. An alias doesnt work. So how can I get feh to open with said parameters?
    Thanks

    Use this as script
    #!/bin/sh
    feh -ZF --hide-pointer "$*"

  • Executing commands with game controller

    How can I map commands (such, uname -a for example) to the buttons on my controller?
    So far, I've gotten xf86-input-joystick to work with the following in my xorg.conf
    Section "InputDevice"
    Identifier "Dualshock2"
    Driver "joystick"
    Option "Device" "/dev/input/js0"
    EndSection
    and the following in the ServerLayout section
    InputDevice "Dualshock2" "SendCoreEvents"
    But for some retarded reason, xorg just seems to consider my controller to be another mouse: I can move the pointer with the arrows, buttons 1, 2, and 3 act as mouse buttons, etc.
    I know I set xorg.conf to map keyboard keys to separate buttons, but how do I map commands? For example, I want to map "mpc toggle" to the start button (button 9).

    ok, I solved this myself
    I just had to remap each button on the controller as another mouse button; for instance
    Section "InputDevice"
    Identifier "Dualshock2"
    Driver "joystick"
    Option "Device" "/dev/input/js0"
    Option "MapButton1" "button=9"
    Option "MapButton2" "button=10"
    Option "MapButton3" "button=11"
    Option "MapButton4" "button=12"
    Option "MapButton5" "button=13"
    Option "MapButton6" "button=14"
    Option "MapButton7" "button=15"
    Option "MapButton8" "button=16"
    Option "MapButton9" "button=17"
    Option "MapButton10" "button=18"
    Option "MapButton11" "button=19"
    Option "MapButton12" "button=20"
    Option "MapButton13" "button=21"
    Option "MapButton14" "button=22"
    Option "MapButton15" "button=23"
    Option "MapButton16" "button=24"
    EndSection
    so, that's that
    from there I've been able to map each button to a command using xbindkeys
    axis 1 (left stick) controlls the pointing, and the right stick seems to do scrolling
    awesome

  • Using continuation character in EXECUTE command

    In SQL*Plus, the following sample EXECUTE command works fine
    EXECUTE MyProcedure(arg1, arg2)
    But if I try to break it into two lines:
    EXECUTE MyProcedure(arg1, -
    arg2)
    I get a character to number conversion error ORA-06502
    Both of the arguments are of VARCHAR2 type.
    I thought the hyphen character was supposed to let you continue a command on more than one line. How can I break up this command?

    The EXECUTE works with SQL*Plus and does not work from within SqlDeveloper
    The contents of the procedure, which is part of a package, seems to be irrelevant since the problem occurs even with an empty procedure body (just a NULL; statement).
    My platform is Windows2000. Database version is 11g. SQLDeveloper version is 1.2.1
    To reiterate, when I type on command line in SqlPlus there is no problem, when I run it from a script file from within SqlPlus there is not problem. The problem occurs only from within SqlDeveloper. Replacing the EXECUTE command with an anonymous block does work in either environment.
    It is difficult for me to show exactly what is in the called procedure since the machine it is running on is not connected to the internet and would require retyping the whole procedure out here -- that's why I tried the experiment with the NULL body with the exact same results as with the non NULL body.
    Message was edited by:
    user556531

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • Problem in using JDBC Execute commands(Update & Delete Only) with af:Table

    HI Everyone,
    I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
    Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
    Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
    Please Help me to understand this problem and give me the solution for this..
    Thanks
    Fizzz...

    Hi frank,
    Thanks to reply me...
    I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
    Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
    Thanks
    Fizzz...

  • Execute an Unix command with pipe

    Hi,
    How do I execute a unix command with pipe from JAVA runTime.exec(cmd)? for example: "ls -l |wc -l"
    should return number of files. However, there is no output result. If I use "ls -l" as command argument, it gives file list.
    Here is my program:
    public static void main(String[] args) {
    try {
    Runtime runCmd = Runtime.getRuntime();
    System.out.println("sys testing");
    Process retProc = runCmd.exec(args[0]);
    BufferedReader bread = new BufferedReader
    (new InputStreamReader(retProc.getInputStream()) );
    String out = bread.readLine();
    while ( out != null ) {
    System.out.println(out);
    out = bread.readLine();
    DataOutputStream outSt = new DataOutputStream(retProc.getOutputStream() );
    outSt.writeChars(args[1]);
    outSt.flush();
    } catch (Exception ie) {
    ie.printStackTrace();
    Thanks in advance,
    Jeff

    I got my answer !
    No need to reply

  • How to execute a system command with call executable in teststand 4.2.1?

    Hi All,
          how to execute a system command with "call executable" step in teststand 4.2.1?
          example as i want to quit a application.using "taskkill /f /im xxx.exe".And execute other system command(DOS).
    BR
    Johnny

    Hi, 
    I want to run netstat -an | find "8080" command from command prompt using call executable in test stand. after that i would like take the std output to local variable. 
    Attachments:
    callsettings.jpg ‏404 KB

  • Execute cmd command with spaces

    Hi dears,
    I am trying to execute a cmd command (shell comnmand), but I got no response from the console i,e it is not executed even no errors returned.
    here is my code to be executed
    import java.io.*;
    import java.util.*;
    public class TestCommand
         public static void main(String[] args)throws IOException
              String[] cmd={"Nvdkit notify.tcl ALL hameed1 hameed2"};//command with arguments
              String[] envo={"path=;","path=C:\\Program Files\\Novadigm"};//path of the file
              //String[] cmd2={"cmd.exe","\\C","dir"};
              Runtime rt = Runtime.getRuntime();
              Process pp = rt.exec(cmd);
              //pp.waitFor();
              writeProcessOutput(pp);
         static void writeProcessOutput(Process p)throws IOException
              InputStreamReader tempReader = new InputStreamReader(new BufferedInputStream(p.getInputStream()));
              BufferedReader br = new BufferedReader(tempReader);
              while(true)
                   String line = br.readLine();
                   if(line==null)
                        break;
                   System.out.println(line);
    }     Could you please assist?
    thanx in advance
    Edited by: hameedo on Sep 21, 2008 11:51 AM

    import java.io.*;
    import java.util.*;
    public class TestCommand
         public static void main(String[] args)throws IOException
              String[] cmd={"java","-version"};
              String[] envo={"path=;","path=C:\\Program Files\\Java\\jdk1.6.0_02\\bin"};
              String[] cmd2={"cmd.exe","\\C","dir"};
              Runtime rt = Runtime.getRuntime();
              Process pp = rt.exec(cmd,envo);
              //pp.waitFor();
              writeProcessOutput(pp);
         static void writeProcessOutput(Process p)throws IOException
              InputStreamReader tempReader = new InputStreamReader(new BufferedInputStream(p.getInputStream()));
              BufferedReader br = new BufferedReader(tempReader);
              while(true)
                   String line = br.readLine();
                   if(line==null)
                        break;
                   System.out.println(line);
    }     The above code won't executed correctely.
    I am trying to get java version, but no errors no iformation were returned!
    Coudl you please assist in this issue?
    thanx all

  • Fatal error when trying to execute a dml-command with OLAP API

    Hi,
    when I created an OracleConnection using the jdbc thin driver. The connection works fine.
    But when I try to execute any dml-command with an SPLExecutor the following fatal error occurs:
    oracle.express.idl.util.OlapiException: ORA-37118: Message 37118 not found; product=RDBMS; facility=ORA
    ORA-06512: at "SYS.GENCONNECTIONINTERFACE", line 66
    ORA-06512: at line 1
    Any Suggestions ?

    Hi Priya,
    1.The entries for the initialization in the BW system are contained in the RSSDLINIT table for the DataSource/source system combination. Compare these with the entries in the ROOSPRMSC table in the OLTP system.
    2. If there are NO entries in the RSSDLINIT table in BW, use transaction RSA7 to delete the delta queue for this DataSource/BW application combination in the source system (OLTP).
    3.Once you deleted all the entries,In Infopackage scheduler option,delete all the init selections to proceed further.
    In which system u r going to do this.....Quality or production.(Better,you check with basis to delete the entries.)
    Regards
    Kumar

  • Execute commands remote with PSSession

    Hi,
    I am trying to write a script that is executed on Server A but connects to Server B and executes the commands with remote Powershell.
    I am currently just trying some simple commands since it's the first time I have tried the remote Powershell function. I connect to a server which is working fine, but if I do a simple command like:
    $FoundFiles = Get-ChildItem - Path "C:\Temp"
    it returns an error telling me that it cannot find the path. If I do the same and use "C:\Windows" it works.
    If I enter the commands manually in a console everything also works as expected.
    Lasse
    /Lasse

    If you do this:
    Enter-PSSession -Name TestConnection
    $tmpFiles = get-childitem -path "C:\temp"
    you will be running  from the remote system and c:\temp will have to be on the remote system.  Either copy the file there or use invoke.
    Spend some time testing the commands until you sort out how remoting works.   When you enter a sessin your prompt changes to tell you you are now running on the remote system and all references are to the remote system.
    This works the same but references are local and execution is remote:
    $session=New-PSSession  -ComputerName Servername
    invoke-command -file c:\temp\script.ps1 -Session $session -ArgumentList '-param1 xxxx','-param2 vvvvv'
    I can also alter the session:
    PS C:\scripts> invoke-command -command {$newvar='hello remote'} -Session $session
    PS C:\scripts> invoke-command -command {$newvar} -Session $session
    hello remote
    Notice the session is retained. I can load modules in one command or file and use them in another:
    We can also use -AsJob for very long running scripts and invoke against a list of computers.
    it is not just a telnet like session but a full remote targetable session.
    ¯\_(ツ)_/¯

  • EXECUTE DOS COMMANDS WITH JAVA

    I'm new to java and I want to execute dos commands by java
    can someone help me by by anyway?
    like tell me the packages or methods I need
    or give me links to sites?
    thanks

    No Arguments:
    try {
            // Execute a command without arguments
            String command = "ls";
            Process child = Runtime.getRuntime().exec(command);
            // Execute a command with an argument
            command = "ls /tmp";
            child = Runtime.getRuntime().exec(command);
        } catch (IOException e) {
        }With Arguments:
    try {
            // Execute a command with an argument that contains a space
            String[] commands = new String[]{"grep", "hello world", "/tmp/f.txt"};
            commands = new String[]{"grep", "hello world", "c:\\Documents and Settings\\f.txt"};
            Process child = Runtime.getRuntime().exec(commands);
        } catch (IOException e) {
        }

  • Tcp/ip write help - need to send a motor command with parameters

    hello - i have one small, main labview 7.0 vi that i use to control a drill's two motors.
    right now i press a button on the front panel to move the motor, and when i do, a sub vi window pops up so the operator can set a couple of parameters and press an ok button.....the vi then sends the command with the parameters to the drill's motors.
    i am trying to change it so i can send the move command from another computer, in another room, while the main vi sits on the computer with the drill. i know i will use TCP listen, write, read, and close in both the main vi (the TCP server?) and the client which is on the remote computer.
    my problem is with setting the parameters for the subvi's that usually pops up. how do i set the parameters from the remote-client and have them be sent into the subvi on the main vi. if i can do this, i would have to also have a way to close the sub vi after it pops up in the main program too.
    OR should i use something else like and application reference or an invoke node function?????
    please help
    thanks!!!!
    sam

    Hi again,
    If the VI in the lab will be running continuously, then you will need
    to alter some things from the example I sent you or look at an
    alternate implementation. The example I sent you assumed that the VI in
    the lab was not running. This technique actually starts the VI and runs
    it somewhat like a subVI. It inputs values into the connector pane,
    runs it, and then returns values from the outputs on the connector pane
    after it finishes executing. It will not work to call a VI by reference
    if it is already continuously running.
    Instead I imagine you would want to have your VI in the lab have some
    sort of State Machine that polls a certain control value, such as an
    enum control, to determine which state to execute next. You could
    modify the technique I first sent to still open a reference to the VI
    in the lab, but it wouldn't try to run it. Instead you could use the VI
    method Set Control Value to set the value of a certain control or
    controls in the lab VI to certain values. The VI in the lab would then
    hopefully be in some Idle state where it polled one of those control
    values continuously to decide what to do next. That would allow the VI
    in the office to programmatically send commands to the other VI, as
    well as parameters for those commands. Simply set control values for
    the VI in the lab and let the VI in the lab go about its business. I've
    attached an example below.
    That's just one idea. Other options you have would be to use a
    DataSocket connection to send parameters and commands back and forth
    between computers. This is a pretty simple API to use. If you have
    LabVIEW 8, Shared Variables are an option. Or you might look into
    simply using Remote Front panels, which allows you to connect to a VIs
    Front Panel across the network. You could then have the whole VI in the
    Lab, but you could connect to it, view it, modify the controls and so
    on from your office. If you want to view and control a VI without
    having LabVIEW installed on the viewing computer, you can use the Web
    Publishing Tool to create a web interface for your front panel. Lots of
    options. Let me know what sounds interesting.
    Jarrod S.
    National Instruments
    Attachments:
    Lab_VI.vi ‏29 KB
    Office_VI.vi ‏51 KB

  • Lom doesn't execute commands

    I'm new in Sun, i just recieved a sun v100 server, i already connected the server to a workstation (using the hyperterminal tool) and it seemmed to be fine... however when the LOM> prompt appears and i try to introduce various commands but it does nothing.
    LOMlite starting up.
    CPU type: H8/3437S, mode 3
    Ram-test: 2048 bytes OK
    Initialising i2c bus: OK
    Searching for EEPROMs: 50(cfg)
    I2c eeprom @50: OK
    i2c bus speed code 01... OK
    Probing for lm80s: none
    Probing for lm75s: 48
    Initialising lm75 @48: OK
    System functions: PSUs fans breakers rails gpio temps host CLI ebus clock
    LOMlite console
    lom>
    LOM event: +0h0m0s LOM booted
    lom>poweron
    (it does nothing...)
    also when i turn the server on with the on/standby switch it also seems to be starting fine, but again when the ok prompt is displayed i try to execute commands and it does again nothing.
    Firmware CORE Sun Microsystems, Inc.
    @(#) core 1.0.18 2002/05/23 18:22
    Software Power ON
    Verifying NVRAM...Done
    Bootmode is 0
    MCR0 = 57b2ce06
    MCR1 = 80008000
    MCR2 = cff0ffff
    MCR3 = b00003ff
    Ecache Size = 512 KB
    Clearing E$ Tags Done
    Clearing I/D TLBs Done
    Probing memory
    Done
    MEMBASE=0xc0000000
    MEMSIZE=0x20000000
    Clearing memory...Done
    Turning ON MMUs Done
    Copy ROM to RAM (154720 bytes) Done
    Orig PC=0x1fff0007edc New PC=0xf0f07f34
    Processor Speed=648MHz
    Looking for Dropin FVM ... found
    Decompressing Client Done
    Transferring control to Client...
    Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
    Probing upa at 1f,0 pci
    Probing upa at 0,0 SUNW,UltraSPARC-IIe (512 Kb)
    Loading Support Packages: kbd-translator
    Loading onboard drivers:
    Probing /pci@1f,0 Device 7 isa dma rtc power SUNW,lomh serial serial
    flashprom
    Probing /pci@1f,0 Device 3 pmu i2c temperature dimm dimm dimm dimm
    i2c-nvram idprom motherboard-fru ppm beep fan-control
    lomp
    Probing Memory Bank #0 512 Megabytes
    Probing Memory Bank #1 512 Megabytes
    Probing Memory Bank #2 512 Megabytes
    Probing Memory Bank #3 512 Megabytes
    Probing /pci@1f,0 Device 7
    Probing /pci@1f,0 Device 3
    Probing /pci@1f,0 Device c ethernet
    Probing /pci@1f,0 Device 5 ethernet
    Probing /pci@1f,0 Device a usb
    Probing /pci@1f,0 Device d ide disk cdrom
    todm5819 Sun Fire V100 (UltraSPARC-IIe 648MHz), No Keyboard
    OpenBoot 4.0, 2048 MB memory installed, Serial #53320536.
    Ethernet address 0:3:ba:2d:9b:58, Host ID: 832d9b58.
    Environment monitoring: disabled
    ok boot
    (again... did nothing)
    i think is a hyperterminal configuration problem but please advide.
    thanks in advance.

    I think I took the wrong path to validate the New Zealand specific tax number. Is it possible to set some rules in PRST1_005 in table T005.
    If this is possible then please pass me the steps description.
    Thanks.
    Naz

Maybe you are looking for

  • How do I organize / reorganize / redo my own Web email address?

    GL CS. Mac G5. Final Tiger. I'll try to be organized and explain clearly. Some questions re the Web site email address. The Web URL is "listenwritedesign.com." I enclose two screenshots for the material below. If only one shows, I'll send the other w

  • How to define the Previous Year Up to Date in BI 7?

    Dear Expert, I have got a BI 7 report requirement which needs to restricted a key figure with Previous Year Up to date. I have found a time variable as Current Year Up to Date but not able to find the one for Previous Year Up to Date. Is it possible

  • Safari 6.1 sends files in random order to flash uploaders?

    Here are two demo sites of popular flash uploaders where you can easily recreate the issue. http://img.hompee.com/fupload/simpledemo/ http://www.uploadify.com/demos/ If you upload 2 or more files you expect them to be uploaded in the order in which t

  • Syntax error in From clause from Access

    I am trying to migrate a database from Access 2000, and all of the tables except one migrate correctly. The one problem table gives me the following error message: Unable to migrate table data: NWQ_TANC.PARAMETERS; [Microsoft][ODBC Microsoft Access D

  • Raw file created by Nikon D7000 with multi-exposure

    After recent updates to ACR6.3 etc.,  I find all my photos taken by D7000 with multi-exposure turn into PINK colored when opened by ACR.  I have no problem in opening other raw files taken by D7000 without multi-exposure nor those taken by D700 (not