GET_UTC_DATE() and GET_UTC_TIMESTAMP() with Toplink Expression

Hi All,
I have a requirement which needs me to do some manipulation with dates. I am writing a report query and need to use the get_utc-date() function. What is the equivalent using the toplink expression builder?
An example of such a query should generate the following SQL:
SELECT order_no FROM vista_order_transfer vot where vot.updated_timestamp < get_utc_date() - 30. I could not figure out how to use the expression builder to build the get_utc_date() - 30 part of this SQL.
Any help would be gratly appreciated.
Roland.

There is a currentDate() method on Expression which will return the current date, but this is SYSDATE not UTC. To call this function you can use the getFunction() method on the ExpressionBuilder.
i.e.
ExpressionBuilder builder = new ExpressionBuilder();
Expression expression = builder.get("updatedTimestamp").lessThan(ExpressionMath.subtract(builder.getFunction("GET_UTC_DATE"), 30));
There is also an Expression method postfixSQL() that will let you append any SQL you wish to the expression.

Similar Messages

  • Connecting Interface and recoding with Logic Express 9

    Hi apologies if I've posted this in the wrong location. I need some help.
    I have just bought an iMac (with Logic express 9) along with a focusrite saffire pro 14 sound interface.
    i'm having difficulties getting a line in and out of the focusrite and into logic.
    I currently have passive monitors plugged into an amp, which is then plugged into the headphone jack on the iMac, the focusrite is connected via firewire.
    my mic is connected via xlr with phantom power into the focusrite, and my guitar (via an effect unit with built in pre-amp) is connected into the 1/4'' input. both signals are showing levels on the focusrite mixer software - but no sound. the only output from the sound interface is the firewire.
    I can record, and play back in logic using my usb midi controller- USB direct into the iMac.
    i've selected the focusrite as the driver in logic, also as the input device in system preferences on the iMac.
    any ideas when I am doing wrong?
    any help would be good
    thanks
    Chris

    Hi,
    there are some points where the big bear trap might have snapped onto your feet
    First: You said you have selected the focusrite as the core audio input device in Logic. This is okay. But have you selected the correct inputs for the audio tracks you are recording to? You focusrite has 4 possible line inputs (1 and 2 are combined on the front in the middle of the XLR jacks, which are also inputs 1 and 2 for mics, and 3 and 4 are on the back).
    When you connect a headphone to your focusrite, can you hear your mic or your guitar? (turn up the monitor volume as well as the headphones volume!)
    Given you really have a good signal that goes into your focusrite, the same signal should be available in Logic *for the appropriate inputs* . It won't work if you have plugged your guitar into input 3 and have input 1 or 2 selected in the channelstrip's input selector tab.
    Second: Given there's a signal coming into Logic, where does it go from there? The focusrite has 4 outputs, and you should connect your amp&speakers to them. If your amp&speakers are still connected to your iMac's headphone jack, you must select your Mac's "built in output" as the output device in Logic. The OS X preference pane has nothing to do with Logic's preferences. Don't confuse them.
    Cheers,
    Fox

  • Setup wireless network for mac and pc with Airport Express?

    Mac Mini/OSX/10.8.2/Airport Express
    Question,
    I have my AIrPort Express setup for my Mac Mini and I have dell computer that I want to share the wireless network. Is it possible to setup a wireless network with my mini and the pc using only the AirPort Express? Is the Airport Express a wireless router?
    Thanks,

    If your Mac Mini is connecting to the Express using wireless, then this confirms that the device is working correctly. 
    The Express is a wireless router that can support up to 10 wireless connections, so your Dell computer should be able to connect assuming that its wireless card is working correctly, and the Dell indentifies the network and enters the correct wireless network password.
    If you are having difficulty with the Dell PC connecting, this Windows troubleshooting document might help:
    http://windows.microsoft.com/en-US/windows/network-connection-problem-help#netwo rk-problems=windows-8&v1h=win8tab1&v2h=win7tab1&v3h=winvistatab1&v4h=winxptab1

  • Advice to extend range from Time Capsule - wireless and ethernet with Airport Express and Airport Extreme

    Current wireless network is Time Capsule (connected to a Cisco router, 1GB switch to servers and printer 1) to Airport Express (wireless) and to Airport Extreme (wireless). Distance means poor signal at the Extreme which has 2 printers (ethernet cables) and an iMac (wireless)
    Solution is to connect the Extreme to the Time Capsule via Cat 6 ethernet cable
    How do I configure the TC and the Extreme?
    I will keep the Express for a wireless extension to the TC 

    Wired Ethernet from the TC to the AirPort Extreme will result in much better performance.  It sounds as if you are not configuring the AirPort Extreme correctly.
    Please try the following steps carefully:
    Unplug the Ethernet cable from the AirPort Exteme if it is not already unplugged. With the AirPort Extreme powered on, hold in the reset button on the Extreme for 10 seconds and release. Allow a full minute for the Extreme to restart
    Connect the Ethernet cable to the WAN "O" port on the Extreme.
    Click the AirPort icon at the top of the Mac's screen and wait a few seconds for a listing of New AirPort Base Station to appear. Just below that, click on AirPort Extreme.
    The example below displays an AirPort Express. You will see AirPort Extreme.
    AirPort Setup will open up automatically and take a minute to analyze the network, then announce that the Extreme will be configured to extend the Time Capsule network.
    Enter a device name that you want to use for the Exterme and click Next
    Wait a minute while AirPort Setup configures everything for you. When you see the message of Setup Complete, click Done.
    That's it.  Pretty simple.  Things should be working fine now.

  • Fax and Scan with Airport Express

    I have an Airport Express with my Mac and a Windows Vista PC running on my wireless network. I have a HP PSC printer, but I am unable to scan or fax from either computer. Any ideas if this is possible, and if so, how?

    I have a HP PSC printer, but I am unable to scan or fax from either computer.
    Unfortunately, not all USB printers are compatible with AirPort base stations. In addition, the AirPort's USB port does not support the "advanced" printer functions, like scanning, copying or faxing, of multi-function printers.
    Any ideas if this is possible, and if so, how?
    Yes, two that come to mind are:
    o Connect the printer directly to the USB port on your Mac, or
    o If the printer is Ethernet-enabled, you could connect it to the Ethernet port of the AirPort Express Base Station (AX) if the AX is reconfigured to be a remote base station in a Wireless Distribution System (WDS).

  • VPD and Context With Application Express

    Dear All
    i'm going to build application using application express and oracle database enterprise , VPD Implemented on the schema using Context,
    for developer issue i set on login trigger to set user ;
    but i can't view data inside application but i can view it using sql statement
    So is their issue in Apex when using VPD , Context , or On log on trigger?
    thanks

    Logon triggers won't work with web apps using a connection pool like APEX. The VPD context should be set via the APEX VPD application security attribute.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/bldr.htm#CHDFCFGD

  • Slingbox AND Airplay with one express possible?

    I two Airport Express units, one connected to my modem (WDS main) and a second connected to a Slingbox (via ethernet cable) and my stereo.  I can get the Slingbox to work on my network, but not airplay (and vise versa).  When the Slingbox is configured, I can "see" the Express in iTunes as a speaker choice but when I try to play to the stereo iTunes tells me that it cannot connect or find the stereo.  By using the second Express as a bridge (is that correct lingo) am I somehow disabling airplay from the same Express? 
    Thanks!
    Peter

    HI,
    I see you "reset" but if you didn't reset network settings.. do that.
    Tap Settings / General / Reset / Reset Network Settings.
    Then restart your iPad.Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Carolyn

  • WDS and WPA with 2x Express and 1 x Extreme - barbed wire in the *** easier

    Frankly I am disgusted at the near impossibility of getting this to work after 5 hours of playing, resetting and stuffing around. Apple need to pull their fingers out and realise that "we make em simple so you don't need docs" is not going to cut it for everything.
    Each time I get aways into this (got it working sans WPA after 3 hrs) I get either a non subnet IP address, or the Setup Utility can see but not open a station. No probs hard rests all around and awayyyyy we go again.
    At this stage I will NEVER purchase a Airport base station again. My years with NetGear showed how it can be done properly.
    If this keeps up, and factoring in my 2 day old dead iMac, I'm off to Dell for a complete technology refresh!
    Has anyone ever got this simple configuration to work? if so can you point me at some doc or tips?
    Forgive me for wanting security and wireless access at the same time!
    Rant=off, apologies=on
    regards Paul

    Thanks Dwayne,
    However I had already upgraded Firmware on all devices.
    I actually solved the issue as follows:
    1) The problem was that using the auto-config feaature of the Airport Admin Utility kept crashing as it tried to update the Main Base Station. It was in effect freezing in the rejoin and getting a 169.x private address - therefore unable to see the 10.0.x subnet of the network.
    2) Use the auto-config, but once the Remote Base Station(s) are updated, power them off before the wizard gets to the Main Base Stattion.
    3) It then manages to see the right subnet and can complete the update.
    My guess is that this is an isue with more than 2 Airports and the very slow speed of the DHCP service on the Airport Extreme.
    I am dissapointed to say the least.
    Cheers
    Paul

  • IPad and printing with airport express

    I don't have an air printer but I have a wireless printer and I'm using the airport express router, is there a way I can print from my iPad?
    Thanks

    No help on this?

  • MIDI recording and editing with Logic Express 8

    Hello, I am a beginner. In the literature it is stated that I should "make sure that the latest DRIVER version is installed. I suppose that means the driver from the MIDI system manufacturer which in my case is LIMEX, Vienna, Austria. The MIDI system product name is MidiPro 3, not well known in the US.
    Limex does not make/offer a driver. In the audio Midi setup window I was able to install this system and it took it. I can perform single track Midi recordings but when I select three tracks for simultaneous multi-track recording using three different instruments, the recording plays back with one and the same instrument on all tracks.
    What am I doing wrong?
    Could this have something to do with the fact that I don't have a DRIVER from my MIDI instrument supplier, Limex?
    Someone told me that since I can get Logic to recognize Limex and can record single MIDI tracks it means that I probably don't need a driver and that I am doing something wrong with the set-up.
    PLEASE HELP!

    Hi,
    please clarify what you want to do. If you record midi data, this has absolutely nothing do to with the sound. Midi is data only, no sound. So, if you have three tracks containing the same midi data, it depends on the instrument (real or software instrument) you are triggering with this data what sound you'll get.
    Example: You record to three tracks at once. Now all three tracks have the same midi data.
    Now you set one track to the ES1 Synth, the other to a EXS24 sampler and the third to whatever.
    Now all three tracks play back the same notes (midi data), but with different sounds (instruments).
    If you trigger an external instrument (is the LIMEX an Instrument or just a midi keyboard?), the midi data has to be set to the correct midi channel and maybe you need a program change event to tell the external instrument which sound bank to use. You can create this Event in the Event List.
    Fox

  • Sync with outlook express 6

    Can itunes sync my iphone contacts and calender with Outlook express 6 ?
    Also can mobileme sync my iphone contacts and calender with Outlook express 6 ?

    Carving1 wrote:
    Please can anybody tell me if it is possible to sync my contacts with Outlook Express? Right now I am syncking with Palm Desktop. My PDA is a Palm Zire 72.
    Thanks
    Post relates to: Zire 72
    Sorry, it's not possible to sync to Outlook Express, only Outlook.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How do i use my time capsule and extend the network with airport express

    I have a new iMac and Time Capsule, how do i extend the network with airport express. My time capsule does have a guest net work, and logins and passwords? I am no computer person. So for me it would have to be spelled out.

    Use the search as this has been done to death ..
    Bob Timmons is the expert on this.. look at his answers here.
    https://discussions.apple.com/thread/4274187?start=0&tstart=0
    https://discussions.apple.com/message/21856077#21856077
    This has been automated in the v6 utility. I am used to doing it manually in v5 utility which is also fairly easy.
    Apple doco is also good to read.
    http://support.apple.com/kb/HT4145
    http://support.apple.com/kb/HT4259
    Note.
    You cannot extend the guest network unless everything is up to date 7.6.3 firmware. And that is only with the TC as the main router in the network.
    All apple routers can be configured as the main wireless or as the extend wireless.. so don't worry if a post uses express or extreme or TC.. they are for wireless, the same thing.

  • XP with AirPort Express and WDS ... works brilliant!!! Read how to ...

    I have worked out an interesting setup which uses max. power of AE with my 3Com Router, Dell and Denon AVR-4306.
    It took some hours of testing and finding the right configs, which was a pain in my brain. But now: YEEEHAAA!
    My home setup is:
    - AirPort Express 6.3
    - 3Com OfficeConnect Model 3CRWDR100B-72
    IMPORTANT: IT SUPPORTS WDS!!!
    - Dell Inspiron 9300 with WLAN
    - Epson Stylus Color 740
    - DENON AVR-4306 [Receiver with Ethernet connection]
    Till yesterday I used AE as a client which turns off the ethernet port. And I had a router without WDS support. AND: I had those audio drop outs which made no fun.
    The new configuration at the end is not such complicated.
    AE is connected by WDS to my router, by Toslink and ethernet cable to my receiver. A printer by USB of course.
    Now I am able to:
    - WLAN stream AAC by Dell with AirTunes through AE to my receiver
    - WLAN printing
    - WLAN config of my receiver and internet radio streaming
    - write that posting by WLAN and DSL ... STRIKE!
    AND THE BEST: NO AUDIO DROP OUTS ANYMORE!!!
    The configuration:
    I will not discribe the WLAN setup between my Dell and 3Com in all details because this should be a basic knowledge.
    First I configure router and Dell with WEP. I didn't test WPA with WDS yet. I set the router to my ISP settings to get connection to DSL. The router config by webbrowser is not complex. This is done by the shipped manual. DHCP turned on etc..
    Next step I will setup my DELL for WLAN connection to the router. My router eg. just uses WEP HEX. I can use a ASCII passphrase but this will be converted to HEX. What's now important: I had to use HEX also for DELL WLAN config and AE WITHOUT "$" before the key what's often discribed in the web. Otherwise AE config will give an error message and ASCII will prevent connection by WEP. I set my DELL to IP by DHCP. I use the same ISSD of the router and set WEP. The first setup was done by ethernet cable which is discribed in my manual. After all steps I turned off LAN and am able to connect to WLAN DSL.
    Now the important part:
    I configured the router after config and restart of AE again. The router MUST SUPPORT WDS!!! Otherwise my config will not work. In my 3Com config I turn on WDS and scan for AE when it is set up right. This will grab the right MAC address automatically. But it's also possible to set the AE MAC manually and then:
    I will do a AE reset by holding down the reset button till the yellow light flashes fast. This will set the AE to basic settings. After a while you will recognize the AE's factory name in your WLAN network list on your PC where you also see your router WLAN connection.
    Now drop the router connection by connecting to AE which is unprotected.
    Open the AirPort Admin Utility.
    Choose the factory AE name.
    Open the config.
    Change the password of your AE which is basic "public" to the SAME of your router.
    Choose „AirPort“ and set „Wireless Mode“ to „Create a Wireless Network“.
    Eg. I use for „Network Name“: „DELL9300“ which matches with the SSID of the router.
    Set „Channel“ to „1“ [it seems most robust here].
    Set „Wireless Security“ with WEP. In my case I have to use the router's HEX key.
    On page „Internet“ set „Connect using“ to „AirPort (WDS)“.
    The „MAC Address“ MUST be the MAC address of the WLAN router, BUT THE WLAN ADDRESS ... NOT LAN ADDRESS!!!
    [this was one trap and time killer because I just tried to use the printed MAC address on my routers label which is WRONG because there's a WLAN MAC ADDRESS I found by accident in my router's config overview]
    Activate „Also allow wireless client computers“.
    I use a static IP:
    IP 192.168.1.200
    Subnet 255.255.255.0
    Router 192.168.1.1
    DNS 192.168.1.1
    On page “Network” activate “Distribute IP addresses”.
    On page „WDS“ set to „remote base station“.
    Activate „Allow wireless client computers“.
    You will recognize here that the WLAN MAC address was copied automatically.
    On page "Music" activate AirTunes and define a name. In my case "DENON".
    Save the config to harddrive and then save it to AE.
    AE will restart automatically.
    NOW PRAY! If everything is done right you will reconnect your PC to the router [automatically because AE is dropped or try manually] and after a while the AE lamp shows "green".
    The full power of AE is unlocked and ... actually ... AirTunes still plays without drop outs. GREAT! This could also be router related or WDS works generally better than client mode.
    president

    The 802.11n AirPort Express Base Station (AXn) can be configured in a number of ways when the topic is around extending.
    If you just want to support wired clients, you can configure the AXn as a wireless Ethernet bridge. In this configuration, the AXn would "join" an existing wireless network and share that connection via its Ethernet port.
    The other option is to configure the AXn to extend another AirPort. In this configuration, the AXn would both extend the other AirPort's wireless range, but it would also have its Ethernet port enabled for wired clients.

  • HT4259 I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets block somehow when the Express looks like it's set up and 'green' - no in

    I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets blocked somehow when the Express is online and looks like it's set up perfect and 'green' - but no internet connection for anything even though the Extreme is green and the modem is good.  Once I disconnect the Express, everything is good again.
    I've tried LAN, WAN, though a switch, direct connect, Extreme set to Extend the network, the Express set to be an extension.  Most of the time I get an error trying to update the Express.  But when it seems to be set up perfect, the entire house can't get to the internet.  Just when it looks right, it is so wrong.
    If anyone can give me exact steps (e.g., "...from the Base Station menu, select the Restore Default Setting option" vice "...just restore the defaults..."), I would greatly appreciate it.  I'm left to the conclusion that the Express is faulty.  I've been using Airport Utility 6.2 from Mountain Lion on one computer and Airport Utility 5.6.1 from Snow Leopard on another computer (the latter give more control while the former just want you to 'forget' the Express).

    I finally got it working.  I was trying to set it up ethernet.  My biggest mistake was when the new Express came on, I did not select 'Continue' - I went straight to manual thinking that I would get the most setup options in manual mode.  So everything I initially tried always resulted in 'wireless'.  Even when I would update or restore default settings, the Express would not completely restart. Or sometimes I would get an error. So most of the time I had to unplug it.  So when it came back up, none of my changes were retained. But there were a lot of times when everything was green and appeared to be fine. But anytime the ethernet cable was plugged in, no more internet.
    So here's the weird part.  When I finally tried 'continue' (vice manual), I would get 4 options.  One would be 'ethernet' extended.  So I would select it, it gave me green lights, all looked good, and still the same problem.  This is when I got frustrated.  I thought I had exhausted all possible combinations.
    But somehow when trying continue again after another restore, I only got 3 options.  One was the same ethernet extended option (can't remember what the missing 4th one was).  And this time it worked - it gave me the big green circle with the checkmark saying it was successful.  I don't know what I did different, but I know now that it won't work if 4 options come up to choose from.  It will work if only 3 options come up.  And success if only verified by the big checkmark.  Had anyone anywhere said the checkmark declaring success is validation, then maybe I wouldn't have gone down so many rabbit holes thinking it should have been successful.
    As for which Airport Utility I prefer, 6.2 looks nice, but it would just ignore the Express and would want me to 'forget' it and would not let me edit it.  Airport Utility 5.6.1 was the one that I ended up using the most and finally had success with.  It still strikes me as odd that there is no manually way to pick ethernet, it can only be choosen following a 'restore defaults', and only from the 3-option list (the 4-option list had the same ethernet choice, but it no worky).
    Thanks for the response.  I really do appreciate it.
    Aiport Extreme Gen5 - internet access and router
    Airport Express Gen2 - connected via ethernet, extending my wireless
    - configured while connect directly to the Extreme, but now on a switch (16-port hub)
    Using Airport 5.6.1
    1) Restore Defaults from Base Station menu
    2) Following restart, Select Continue
    3) Of the 3 option presented, select 'ethernet.... extend network...'
      - if 4 options are present, may not work
    4) Wait for the green circle with the big white checkmark.
    5) Connected Express to the switch where a cable went to other end of house - works.
    Dead-zone went from 2mbps to 24mbps.
    I probably spent 4 hours chasing my tail in anger.  The correct way took about 5 minutes total.
    Thanks again.

  • When I open logic express 8 with eyetv open but not active and i close logic express 8 and make eyetv active it won't show closed captioning even though closed captioning is turned on

    when I open logic express 8 with eyetv open but not active and i close logic express 8 and make eyetv active eyetv won't show closed captioning even though closed captioning is turned on.  When I totally close eyetv and reopen eyetv and open a live tv window the closed captioning comes back.  I never noticed this with os leopard, Just after i installed os snow leopard.  All software is up to date only I think, thanks to apple they droped support for logic express.  Thanks for any suggestions.

    Does toggling CC off & back on bring it back?
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

Maybe you are looking for