How do I build an expression for a multi-element in-list?

How do I build an expression for a multi-element in-list? For example:
SELECT * FROM employees
WHERE (first_name, last_name, email) IN
(('Guy', 'Himuro', 'GHIMURO'),('Karen', 'Colmenares', 'KCOLMENA'))
Passing a Vector to Expression.in(Vector) where each element is a Vector of values itself will result in the appropriate expression for the values clause, but how to I get the columns to be considered together, that is, how do I get the "(first_name, last_name, email)" part?
Steve

Steve,
I do not believe this is currently supported in the TopLink expression framework. Your best bet at this point will be to use custom SQL.
Doug

Similar Messages

  • How can i build RPMs file for my own Java Application?

    How can i build RPMs file for my own Java Application?....I have my own directory that contains all Java Source files and some files that my Application required....I want to build RPMs file like a install File to Linux System, Now my OS is Linux Fedora core 1.....How can i do this?

    I think that in order to create a RPM, you'd need to
    use some C.Nope - the RPM is all about packaging and the "magic" x.spec file. You can have anything you want in the RPM, but you have to use RPM tools to build the .rpm file. One of the features is that you can also indicate (via "install" scripts) modifications to other files or the filesystem to support the installation of whatever's in the RPM.

  • How to write the regular expression for Square brackets?

    Hi,
    I want regular expression for the [] ‘Square brackets’.
    I have tried to insert in the below code but the expression not validate the [] square brackets.
    If anyone knows please help me how to write the regular expression for ‘[]’ Square brackets.
    private static final Pattern DESC_PATTERN = Pattern.compile("({1}[a-zA-Z])" +"([a-zA-Z0-9\\s.,_():}{/&#-]+)$");Thanks
    Raghav

    Since square brackets are meta characters in regex they need to be escaped when they need to be used as regular characters so prefix them with \\ (the escape character).

  • How do I get a reminder for birthdays on my "Contact" list to pop up on my e-mail, like FaceBook does?

    How do I get a reminder for birthdays from my "Contact" list to pop up on my g-mail, like FaceBook does? In other words, how can I set up a reminder for birthdays to come up on my g-mail from my Contact list, perhaps a few days before the birth date? I use e-mail more than FaceBook; and my Contact list is larger and more complete. Thank you. Please e-mail your answer to: [email protected]

    Firefox does not have a contact list. Any contact list that you have will be part of the email service that you are using, you will need to check with the support for that email service to see if they offer such a feature.

  • How to form a regular expression for matching the xml tag?

    hi i wanted to find the and match the xml tag for that i required to write the regex.
    for exmple i have a string[] str={"<data>abc</data>"};
    i want this string has to be splitted like this <data>, abc and </data>. so that i can read the splitted string value.
    the above is for a small excercise but the tagname and value can be of combination of chars/digits/spl symbols like wise.
    so please help me to write the regular expression for the above requirement

    your suggestion is most appreciable if u can give the startup like how to do this. which parser is to be used and stuff like that

  • How can I build Instalation Program for java applet?

    I want to build on line internet game based on java applet.
    Uset must instull the game to his computer.And this program mast Connect to the server when user enter
    to this application.Not from explorer,but from my application,like when i enter to ICQ.
    My questions:
    How can i build instalation program in java?
    How can i connect to the server when user enter into my game not from explorer but from game?
    Thanks,Maya.

    Hi Maya
    First of all an Applet does not have to be "installed" as you would with a normal application. The browser handles the install and execution of the applet.
    Check out this URL for more about applets:
    http://web2.java.sun.com/docs/books/tutorial/applet/index.html
    On the subject client/server pairs - see:
    http://web2.java.sun.com/docs/books/tutorial/networking/sockets/index.html
    If you decide to make the game an application instead check out Sun's WebStart - under the products section.
    That's about all the help I can give you.
    Programming a game is a complicated subject - I am doing one too:
    http://hjem.get2net.dk/mhjembaek/armageddon/
    Kind reg,
    Hjembaek

  • How to write the map expression for a const string

    hi all,
    i am trying to map from source table A to target table B. Table B has a column that A doesn't have and the column type is string.
    what should i do if i want to keep this column a const string like "abc"? How to write the map expression?
    Setting a default value like "abc" of this column in database is not available .
    please try to help, thanks a lot.
    jun

    Hi jun,
    You mean, u want to give some hard coded value to a specific column in mapping?
    If so , give 'abc' in the target column and execute it on Target.
    Thanks,
    Guru

  • How 2 better build this Expression?

    As you can see in the code below a null means don't use this object in the criteria. Conditionally building an Expression like this is rather cumbersome. There has got to be a better way to do this!
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = null;
    if (name != null) {
    expression = builder.get("name").equal(name);
    if (age != null) {
    if (expression == null) {
    expression = builder.get("age").equal(age);
    else {
    expression = expression.and(builder.get("age").equal(age));
    Collection persons = null;
    if (expression == null) {
    session.readAllObjects(Person.class);
    else {
    session.readAllObjects(Person.class, expression);

    One thing that may help is that expression.and will allow you to pass in null (just returns the expression).
    So...&gt;&gt;
    ExpressionBuilder builder = new ExpressionBuilder();
    Expression expression = null;
    if (name != null) {
    expression = builder.get("name").equal(name);
    if (age != null) {
    expression = (builder.get("age").equal(age)).and(expression);
    Collection persons = session.readAllObjects(Person.class, expression);
    You can also use query by example, which makes simple queries much simpler.

  • How can I wrap the text for LinkToAction UI Element.

    Hi All,
    I am trying to wrap the text for LinkToAction UI Element which is inside the group.I have set the wrap property to be true.But still its not getting wrapped.I have set the width of the group to be 0px.I have even set the wrap property for the RootUIElementContainer and set the width property to be 0 px.I am using the FlowLayout.Any ideas are appreciated.
    Thanks in Advance

    I have the same problem.
    would you plz tell me how to wrap.

  • How do we get complete hierarchy for a WBS element??

    Hi All,
    Is there any FM to get complete hierarchy for a WBS element??
    Or any other method that would achieve this requirement ??
    Eg:
    C.00103.1
    C.00103.1.1
    C.00103.1.2.3
    C.00103.2
    C.00103.2.1 etc
    If i give C.00103.1, all the WBS elements in the hierarchy should be displayed.
    Any pointers are of  great help.
    Regards
    Prathima

    Hi,
    Available Methods
    Getinfo : Read detailed information about WBS [ BAPI_PROJECT_GETINFO ]
    Maintain : BAPI: Project maintenance [ BAPI_PROJECT_MAINTAIN ]
    SaveReplica : Replicate work breakdown structure (ALE) [ BAPI_PROJECT_SAVEREPLICA ]
    The WBS hierarchy object type defines the hierarchy of the WBSelements. A project definition always has exactly one hierarchy. If theposition of a WBS element changes, the whole hierarchy has to berebuilt. Therefore, the WBS hierarchy object type has only one command:
    Create. Every WBS element receives exactly one entry in the table parameter IWbsHierarchieTable with which it defines its position.
    Command: Create
    Use this command to create or change a WBS element hierarchy for aproject definition. Enter the WBS hierarchy object type and the Create
    command in the table of the IMethodProject parameter. The commandrefers to all entries in the table of the IWbsHierarchieTable parameterthat contains the data for the data for the hierarchy. Each entry inthe IWbsHierarchieTable refers to a WBS element that describes its position relative to the other WBS elements.
    Example
    - Positioning WBS elements TRAINING , TRAINING.1 and TRAINING.2 . (WBS elements TRAINING.1 and TRAINING.2 are subordinate toWBS element TRAINING. WBS element TRAINING1 is positioned on the left of TRAINING.2.)
    IMethodProject
    OBJECTTYPE = WBS-Hierarchy
    METHOD = Create
    OBJECTKEY =
    REFNUMBER =
    OBJECTTYPE =
    METHOD = Save
    OBJECTKEY =
    REFNUMBER = I
    ProjectDefinition
    PROJECT_DEFINITION = PD-TRAINING
    IWbsHierarchieTable
    WBS_ELEMENT = TRAINING
    PROJECT_DEFINITION = PD-TRAINING
    UP =
    DOWN = TRAINING.1
    LEFT =
    RIGHT =
    WBS_ELEMENT = TRAINING.1
    PROJECT_DEFINITION = PD-TRAINING
    UP = TRAINING
    DOWN =
    LEFT =
    RIGHT = TRAINING.2
    WBS_ELEMENT = TRAINING.2
    PROJECT_DEFINITION = PD-TRAINING
    UP = TRAINING
    DOWN =
    LEFT = TRAINING.1
    RIGHT =
    Notes
    Further Information
    For more information, see the R/3 Library under PS Project System -> Structures -> EPS Interface
    Regards,
    Vijetha.

  • What is the easiest way to always increment to index 0 only for a multi-element array ?

    The premise is to populate a spreadsheet from left to right in the same row but incrementing the column letter only (ie - B4, then C4 etc). Attached I have customized an existing example VI that works for a 2 element array (ie - B4) but does not work for a 3 element array (ie - B40, then becomes B50). Keeping it simple, what is the best and easiest way to modify my existing code to always check the array size and automatically index back to 0 in order to properly increment the first letter only (ie - B) and not the number (ie - 4) ?
    Thanks !
    Barry
    Solved!
    Go to Solution.
    Attachments:
    String Increment.vi ‏7 KB

    In case you ever have more than 26 columns (as Ravens Fan noted), here
    is some code I use to generate the column label from the column number
    (0=A,1=B,...).
    Attachments:
    ExcelColumnLabels.png ‏17 KB

  • How do I build an EXE for RT board?

    LabVIEW 7.0, App Builder, Win2000.
    I've been working on this program for a while. It uses the RT board as an engine controller and a host part as a supervisor, collecting data from the RT, as well as other places.
    What I've been doing is this:
    1... Launch LabVIEW.
    2... Select TARGET = RT::0
    3... Double-clicking the ENGINE CONTROLLER.llb (it loads)
    4... Click RUN arrow (it downloads to the RT and starts running).
    5... OPERATE | SWITCH EXECUTION TARGET | LABVIEW for WINDOWS
    6... Double-click my HOST.llb, and it loads.
    7... Click RUN arrow, and I'm off.
    That's fine for development, but now it's stable enough to where I want to have the RT part downloaded automatically, whenever the RT boots.
    I tried this:
    1... Launch LabVIEW.
    2... TOOLS | BUILD APP
    3... Choose my BLD file (which refers to the ENGINE CONTROLLER.VI, and builds something called ENGINE CONTROLLER.EXE)
    4... The SHOW RT TARGET SELECTION DIALOG option is checked, by default.
    5... I BUILD the thing, which creates an ENGINE CONTROLLER.exe
    OK so far.
    If I double-click the EXE file, then I get the selection - dialog. I choose the RT option. The thing downloads and starts running.
    I understand that. But how do I make it automatic?
    I tried this:
    1... Launch LabVIEW.
    2... Select TARGET = RT::0
    3... TOOLS | BUILD APP
    4... Choose my BLD file (which refers to the ENGINE CONTROLLER.VI, and builds something called ENGINE CONTROLLER.EXE)
    5... I BUILD the thing, which brings up a dialog that says "Starting build..." and nothing else ever happens. At least not in the five minutes I waited.
    6... The Windows TAKS MANAGER says that LabVIEW is not hung, but I can't do anything except abort LV.
    I tried this:
    1... Launch LabVIEW.
    2... Select TARGET = RT::0
    3... Choose RT::0 OPTIONS | RT TARGET: MISCELLANEOUS
    4... In the APPLICATION PATH field, I typed in the path to the EXE file that I built earlier (NOT targeted to RT), check the LAUNCH APP at BOOT-UP box, and leave the DOWNLOADED VI PATH field at what it was (C:\ni=rt\startup, or something like that).
    So, when I reboot the thing, I get a message about the "STARTUP application is missing". I've checked the path several times, moved it to root folder, all to no avail.
    I haven't checked the version that runs (targeted for windows) to see if EVERYTHING is OK, but at least it starts without errors.
    What am I missing? Why does it complain about a "Missing" application? Do I need to use the DOWNLOADED VI PATH field? How?
    Why does it hang when I build it targetting the RT?
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    ftp into your RT controller,
    Not sure what you mean. I know what FTP is, but I don't know how to use it to talk to the RT board. Even if I did, there are no "files" on the board - there is no disk drive or file system (I have PCI-7041 as my RT board).
    navigate to 'NI-RT/STARTUP' folder
    No such folder on my host machine, no files at all on the RT board (there is no disk there).
    and delete the startup.exe (if you encounter errors, rename the file and then delete it)
    No can do.
    create your executable again and this time make sure to place a check mark in the 'set target to launch application at start-up' chech box in the Application Settings tab of the Application builder.
    I didn't mention it because that's the default state, but my BLD file already has it set that way.
    restart your RT controller and your application will start automatically.
    But if RT is the target it won't even build....
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How can i run AirPort Express for both a Mac and Windows 2000 SP2?

    I have my AirPort Express set up for my iMac and it runs fine. We have a house guest who has a laptop running Windows 2000 SP2. Can I set up Airport so that both computers can access internet wirelessly?

    Just did a quick check of the Unofficial Averatec Support Forum. Several posters there upgraded the driver for the wireless card to support WPA on the 5110.
    They used drivers from other computer manufacturers and indicated that Averatec has not provided updated drivers.
    They were running XP SP2.
    Many Averatec models have weak wifi cards. Mine included. Sorry I am unable to be of more help.
    Good luck
    susan
    iBook G4   Mac OS X (10.3.4)  

  • How can I build app's for RTE 8.0 with Labview 8.2

    Is there a possibility to build applications with LabView 8.2 in a way to execute them with the RTE 8.0. It's not a problem to save the sourcecode as LabView 8.0 format, but if I build this code e.g as  *.exe and try to execute with RTE 8.0 an error occured. The errormessage is, that it's not possible to execute an file created for RTE 8.2 with RTE 8.0. What is to do to build an RTE 8.0 compatible application?

    Applications written for 8.0 will only run with the 8.0 rte. New applications written for 8.2 will run only with the 8.2 rte. Your internal support doesn't know what it is talking about if they think otherwise. No need to upgrade the rte unless you paln to rebuild the 8.0 apps with 8.2. Both run times can be installed on the same pc if the old apps are working. Not much reason to change unless they need to be edited and you use 8.2 as the editor. I would image that if you build a new app in 8.2, it would have to undergo the same quality check as the 8.0 applications.
    You are able to do a save as for 8.0 so that users with 8.0 can open them and use them with the older version. It's simply not possible for a newer development environment to target a build for an older run-time. Before you even do a build, the source code is compiled for the version you are currently using. The only way to swithc compilers is to switch versions of LabVIEW.

  • How do I build a redirect for a mobile site

    I want to get a few opinions on this. I want have the option of when someone with a smart phone lands on the site, they have the option of viewing the full site or the mobile.
    Is this an advanced function? Is there JS involved? Can I easily do this in Muse or do I have to set this up on a server?
    Thanks.

    It seems to me that you want mobile users to be asked which version they want to use. Here's how its done:
    Add a mobile version of your website (hit the "+Phone" button).
    Add two buttons or links to the homepage of your phone version ("Use mobile version" and "Use desktop version").
    Add a link to the 'Use desktop version' to the desktop homepage (you can choose this in the link panel).
    Add a link to a second page (make this page in the mobile version of your website), that you will be using as your mobile version homepage, from the 'Use mobile version'.
    This will only work if your visitor enters via www.yoursite.com , not if he enters via www.yoursite.com/example.html .

Maybe you are looking for

  • Sleep button used to have a click sound

    My phone is 4 days old and I remember hearing a "click" sound effect when pressing the sleep/wake button. After a day or two it stopped, and makes no sound. I've checked settings and there is no option for it. Do other people's make this sound when p

  • BADI_BUILD_MESSAGE Alet email notification

    Hi All, We are implementing the BADI_BUILD_MESSAGE according to the instructions provided on SAP OSS note 0001609090. As per now call to the monitored systems always comes with the message No IDOCS Found. Any advice or guidance would be appreciated?

  • Why does quicktime 7 save movies to grapher movies?

    Installed the latest quicktime  7.6.6. Have the pro key. When I save a movie as a self-contained movie, it saves it as a grapher movie. When I open this movie, it opens in grapher and I can only play it, not crop it for instance. And if I open it in

  • Um Error for iTunes! PLEAS HELP!

    I have been have a problem for a while now. WHENEVER i try to open itunes it says "iTunes cannot run because some of it's files are missing. Please re-install iTunes." When i go to program files and try to restore/re-install/ OR EVEN DELETE it says i

  • My apps in Itunes

    Ok when i open itunes without my iphone connected everything is fine, but when i connect my iphone and try to checkmark the apps i want to sync it doesn't let me.  it stays on the screen that shows your phone screens with your apps for about a second