Trouble with generics.

I want to double up on generics like:public class Foo<List<Bar>>
{/*class details*/}However, I seem to be getting compiler errors. Is there a way to do this?

I'm not quite sure on what you want to do.
If it is to say "I want a class that takes Gerneric Lists of type E, I don't think you can, instead you would say "I want a class that takes type E", and the ctor/methods would take a list, holding type E. I.e.
class Foo<E> {
    Foo( final List<E> dataSet ) {}
}

Similar Messages

  • Trouble with generic data source

    Dear Gurus,
    I've created a generic data sources using tx. rso2, based on the view ZTV_CONFLO, that is created based on two tables: ZTB_CONFLO and MSEG, there comes the problem. My table ZTB_CONFLO has 500 registries, and I'm using MSEG table in my view just to avoid problem with units, anyway, when I check to see the registries in the view there are muy 500 entries multiplied by the number of entries in MSEG table.
    Please how can I solve this problem, it is urgent.
    Best regards,
    Pilar Infantas.

    Pilar,
      1. Create a View on table ZTB_CONFLO.
      2. Select all required fields except PESCA(wht ever key figures giving problem).
      3. Create a Datasource using View created in the above Step.
      4. Enahnce Datasource from RSA6 by selecting DS in RSA6(Append Datasource).
      5. System will propose one technical name. Accept the Name. Press Enter.Provide the Description for Structure.
      6. Provide the Quntity and Unit Fields.
    Fields Name ZZECSCA "Provide DataElement from MSEG for any Quantity field
    ZZMEINS                   MEINS
    7. Save and Activate the Structure.
    8. Create user Exit to poopulate the Data through User Exit.
    Please check forum for User exit coding Tips. Let me know if you have any Questions.
    all the best.
    Regards,
    Nagesh Ganisetti.
    Assign points if it helps.

  • Trouble with color on Presario, No red tones on display. Not a monitor issue.

    Am experiencing trouble with color on Presario, model no. CQ5500F. Purchased a couple of years ago, and trouble was present immediately. Am getting no red tones - red items appear black or sometimes blue. Was told by HP that it was a monitor issue, and let computer slide out of warranty. installed new monitor today and problem still exists. Is this merely a display adjustment of some kind? Or will I have to pay HP their $99 for a one time fix? Any suggestions appreciated.

    Hello UncleBob62,
    It could be the display driver that is not properly working
    1. Click on the start icon
    2. Right click on computer and go to properties
    3. Select Device Manager
    4. Expand display adapters and right click on the video card driver and uninstall
    The computer screen will go blank
    On the keyboard press the windows key the right arrow key twice and then the letter R.
    At this point your computer is going to reboot. After the reboot Windows will install generic drivers for your video card. Do you still see a lack of red tones?
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Doubts with generic service in "HCM processes and forms"

    Hello friends:
        Im having troubles trying to figure out how to use generic services. I implemented a badi with generic services and this have the following methods:
    IF_HRASR00GEN_SERVICE~GET_SPECIAL_FIELDS
    IF_HRASR00GEN_SERVICE~GET_FIELD_INFO
    IF_HRASR00GEN_SERVICE~GET_OPERATIONS
    IF_HRASR00GEN_SERVICE~INITIALIZE
    IF_HRASR00GEN_SERVICE~DO_OPERATIONS
    IF_HRASR00GEN_SERVICE~GET_HELP_VALUES
       I could initialize values of my form using only INITIALIZE method, and I could perform some validation using  and then DO_OPERATIONS.
       I cant understand what is the usage of methods like GET_FIELD_INFO and GET_OPERATIONS?? according to the badis help, get_field_info must be implemented, but i didnt do so and it worked anyway?
    I will be grateful with all your help,
    Best regards,

    GET_FIELD_INFO is for adding fields. Suppose you are using the generic service for IT0008 data. The IT0008 fields
    which need to be used on the adobe form has to be added in this method. You need to add field name and data element
    to the field_infos table. GET_OPERATIONS is used to define operations associated with the fields. Suppose you have a
    scenario when user selects personnel area all personnel subareas associated with the selected value should come.
    Then you need to group together personnel area and sub area together into an operation. Also even if a field is not aasociated
    with any operation, to add a field to form scenario you need group them into operations in GET_OPERATIONS.
    Check the class CL_IM_HRRCF_REQUI_REQUEST to determine how this can be used.
    Thanks,
    Aravind

  • Need help with generics

    I have written a java program using jdk1.5. After completing my program I noticed that the compiler was outputting a warning. It tells me that there were a few unsafe operations in my code. Anyway I found out that my code needed to include generics. I was able to figure out how too include some of the generics. I am having trouble with the following:
    [javac] /home/paul/Documents/java/PersonalInfo/src/personalInfo/logic/DB.java:105: warning: [unchecked] unchecked conversion
    [javac] found : personalInfo.logic.FNComparator
    [javac] required: java.util.Comparator<? super java.lang.Object>
    [javac] Arrays.sort(sort, fn);
    [javac] ^
    [javac] /home/paul/Documents/java/PersonalInfo/src/personalInfo/logic/DB.java:105: warning: [unchecked] unchecked method invocation: <T>sort(T[],java.util.Comparator<? super T>) in java.util.Arrays is applied to (java.lang.Object[],personalInfo.logic.FNComparator)
    [javac] Arrays.sort(sort, fn);
    [javac] ^
    [javac] /home/paul/Documents/java/PersonalInfo/src/personalInfo/logic/DB.java:109: warning: [unchecked] unchecked conversion
    [javac] found : personalInfo.logic.LNComparator
    [javac] required: java.util.Comparator<? super java.lang.Object>
    [javac] Arrays.sort(sort, ln);
    [javac] ^
    [javac] /home/paul/Documents/java/PersonalInfo/src/personalInfo/logic/DB.java:109: warning: [unchecked] unchecked method invocation: <T>sort(T[],java.util.Comparator<? super T>) in java.util.Arrays is applied to (java.lang.Object[],personalInfo.logic.LNComparator)
    [javac] Arrays.sort(sort, ln);
    [javac] ^
    The FN/LNComparator class implements the java.util.Comparator class. I have looked at the generics tutorial on the java.sun.com website. I can't figure out what I replace the <T> with to make the code compile and the warning to go away. I have tried <Comparator> but that just gives me an error that says FNComparator does not take any parameters.
    If anyone knows how to fix these warnings let me know
    -Hockeyfan

    I know how to fix it.
    Step 1. Stop writing subject-lines like "Need help with generics". Everyone who starts a topic needs help, that's why people post here!
    Step 2. Don't just post the error message, post the relevant code. In [code ][code ] tags of course.
    Step 3. Stop watching hockey, it'll stunt your growth
    Step 4. Have the FN/LNComparator implement, not the raw Comparator, but Comparator<Object>

  • I am having trouble with disk space,

    I am having trouble with disk space, I am always getting the error message that I need to delete files on my start up disk, I am all out of space. I cant even save a file to my desktop without getting the message, Is there a way I can free up space. I am not very computer savvy, being a pensioner I  cannot afford expensive options.  I was familiar with the old apple imac, but I was given a macbook pro for my birthday, and am trying to work it out.  I use it mostly for photos and web.

    Jillian,
    I'm assuming this is a second-hand machine.  If it is brand new, get it to Apple because it's their problem, not yours.
    First thing you should do is go to Programs: Utilities: Disk Utlity and choose "Repair Permissions."  If you don't have the OS X system disk (a DVD) go ahead and verify the Disk. It can't fix itself, so to speak, but can tell you if there is a problem.  iIf you have the OS X system disk then boot off the disk, go to Disk Utility, and run Repair Disk.  Assuming all is OK:
    You don't need to download any programs to get started on figuring out why all your space is gone.  Try this first:
    Oh, when deleting, especially at first, you may have to move only small folders or even files, of 100 MB or so to the trash, then empty the trash.  As the free space increases, you can trash progressively larger files.  To delete files, the computer needs to create even more files to tell it what files it is deleting before it deletes them.  I know, go figure.;)
    It would not be a bad idea, and is in fact a very good idea, to run the disk utility "Repair permissions" after every half-dozen trash/empty trash cycles and then restart the computer.
    The basic plan is to search for unreasonably sized folders. 
    From the Finder:
    Open a window, click in the window and then:
    Go to menu item View. (If you click on the desktop instead of a window, you'll get a different set of view options, none of which is the one you want.)
    Click on it and move the cursor to the bottom choice, Show View Options (alternative Apple (Command)-J).  Make sure the checkbox "Calculate all sizes" is checked. If it isn't, check it and then click on "Use as default" When checked, it will show you the size of a folder.  If it was unchecked, don't be surprised if nothing seems to be happening as it will take awhile for the computer to calculate the size of, literally, thousands of folders.  But some will start to show up right away. If you open a new window and don't see any folder sizes, Repeat the Show View Options routine above and if Calculate all sizes is checked, just wait.
    I've heard you Aussies enjoy a beer or two.  If your Mac has to calculate all the folder sizes, this might well be a good time to have a cold one or two, as it will take some time.
    Go to the root level, which is "Computer" or "_Your Disk Name_," generically Macintosh under Devices in the sidebar.
    Make sure you are in list view and can have the size column visible.  Click on it (turns blue-grey) and it will sort by size, large to small or the reverse.  Click again to reverse the sort order.
    On my 10.6.8 machine, I have
    98 GB under Users.
    22 GB under Applications. If you only have the Apple-supplied applications, you probably have between 4 and 6 GB here.
    Library is 24.5 GB
    System is 4.6 GB
    Other than a few trivially small files or folders, that should be about it for the root level.
    If you have two System files, you shouldn't, and will need to get rid of one.  Ask for advice before deleting one or the other.  If you have a, "Previous System," or "Old System," -- can't remember the language, you can proably safely delete it if you are satisified with how your computer is working. 
    The Library is a candidate for bloat.  Some applications, especially those that manipulate audio or video, store the bulk of their code, generally resources of one type or the other, in the Application Support folder. For instance, I have a 10.5 GB folder of Live Type in my Application Support folder.  Honestly, I don't know what program it is for, but don't care because I upgraded to a 3/4 TB drive.  In contrast, on my 10.7.1 computer, which has little more than the Apple supplied software on it at this point, uses only 1.5 GB for Application Support.  The support folders will remain even if the program itself is deleted.  As a general rule, I wouldn't bother checking out anything under 300 MB or so.  Any folders over that, you should note for possible deletion _but_ be sure to ask someone with more knowledge about this what it is used for before deleting.  If it is used for some program that isn't on your machine, meaning the program has been deleted, you can safely delete it.  If the program is still on the machine, decide if you will use that program and, if not, delete the program and its application support files.
    My next largest folder in the Library is Audio at 2.7 GB.  I have audio editing programs, so that makes sense. You probaby have one also, but shouldn't be over 500 MB or so.
    Next is Printers at 1.4 GB.  This is a good place to clear up space.  You'll see folders with various printer brands.  Do you have a Brother printer?  No?  Trash it.  Just keep the folder with your printer brand and the PPD folder and trash the rest.  If you want to get real fancy, open your brands folder and delete the files for every model other than the one you have. 
    My next largest is Fonts at 490 MB.  Leave that alone. In fact, unless Fonts is something insane like 2 GBs, stop deleting from the Library.
    Go to Users.  There could be between one and more than one user.  (Fudge of an answer there.)  There is no such thing as a guideline for user folder size.  Is there a previous user?  If so, check with them and see if you can delete it.  I have a "dummy" administrative - level user that can be used for some esoteric rescue operations and it takes up a trivial 33 KB or something like that while my own account is pushing 100 GB.
    You'll see several folders, Music, Pictures, Desktop, etc.  This is stuff you or the previous user have created.  If you don't want it, delete it.  You will also see, aha! another Library folder.  There shouldn't be many folders over 100 MB here except for Mail and our friend Application Support.  I get a lot of mail, rarely delete any, and have carried it over from 10.3 and measures out at 3.7GB.  Still, if its someone elses mail and you don't want it, you can delete it, but again, check with more knowledgable people as there are probably some files and folders you absolutely should not delete, others that you should delete from within Mail, and some you can manually delete. 
    My Application Support Folder weighs in at 1.4 GBs, of which 1.2 GBs is for Final Vinyl.  That's a lot.  Sneaky sucker stored some untitled audio files in there.  Bye! OK, now the Application Support folder is down to 145 MB.  So, I'd say anything much over that should be investigated for possible deletion.  Close up Library and move on.
    Downloads may be very small or very large.  Depends on how meticulous the previous user was in deleting or moving to a more appropriate location.  Ask them if there is anything they want, and if no, delete it.
    My Application folder has Zero KB because I always install at the root, administrative level.  If there is anything there, figure out if you want to use it or not.  If not, trash it.
    Overall:
    1) Don't sweat the small stuff.  The days are long gone when searching a hard drive for a 100 K file to delete is worthwhile.
    2) Start small.  A disk that full is going to be pretty touchy, so once you have identified a bloated folder, go inside of it and trash the smaller files and folder, then empty the trash, then delete a few more files, empty the trash, etc. 
    3) Don't forget to periodically Repair Permissions and restarting the computer.
    4) If you are unsure about whether a folder or file can be safely deleted, ask someone knowledgable or just knock off for the day and hit it again tomorrow.  Seriously, an unanswerable question you have might well be answered by sleeping on it and attacking it the next day.
    5) As Douglas Adams wrote: DON'T PANIC!
    Best of luck! 
    Chris

  • K9a2 platinum motherboard, trouble with mouse/updating bios.

    Hello all, I have a MSI K9A2 Platinum mb, using vista 64 bit. I wanted to flash my bios, Pretty sure I have 1.4, wanted to try 1.8, or 1.9. When I go to download center will ask me where I want to download from, I click on U.S nothing happens, even tried the other countries nothing. Up top tab will say blank page and go back to download center. Reason I wanted to try and flash my bios to update it is. I have a USB razer lachesis which I have to unplug and plug back in several several times a day, Im having trouble with it lagging or stuttering. I have tried every driver update new and old and nothing works. I have unchecked enhance pointer precision, I have tried every usb port on my computer. Nothing. I have tried updating my video card, on board sound drivers, mouse drivers nothing. Im at a lost. I have no clue  on what else to try. Do you think updating my bios will work? Thank you all for reading this. Hope it makes sense)

    Quote from: Stu on 12-April-11, 02:42:09
    Get another mouse. I bought a Razer Copperhead a few years ago, and had similar troubles on several different boards. I just use cheap generic mice again now, they just work.
    QFT
    I just use some leftover kensington notebook mouse (ci25m), even though its small it fits my fingers(not my palm, just my fingers ..because my hand/palm is huge lol) and it just works. The only time I bought a really spendy mouse (creative fatality) I only ever had problems with it.

  • I have been having a lot of trouble with the latest itunes update and my ipod classic 80Gb i.e. being unable to sync songs, but now i have no files at all on my ipod, it is completely blank when i view it from my computer. I need help, please, anybody.

    As it says above, i have been having a lot f trouble with my ipod classic and the latest itunes update, i was unable to sync songs or anything to it and have tried every conceivable 'fix' i could find. i have run an itunes diagnostic and the results are posted below. a major problem is that when i try and view my ipod through my computer it displays nothing at all on the ipod, no files or anything, this may be the problem but i have no idea how it has happened or how i could resolve it.
    This ipod holds huge sentimental value and i am loathe to buy a new one! If anybody can help it is greatly appreciated, than kyou in advanced.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    ASUSTeK Computer Inc. K50IJ
    iTunes 11.1.5.5
    QuickTime not available
    FairPlay 2.5.16
    Apple Application Support 3.0.1
    iPod Updater Library 11.1f5
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 7.1.1.3
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 0038B8600B98D1E0
    Current user is not an administrator.
    The current local date and time is 2014-03-21 16:52:39.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    Intel Corporation, Mobile Intel(R) 4 Series Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2fd81a1f13cf3ff25a8b4f0e8e725116
    **** Device Connectivity Tests ****
    iPodService 11.1.5.5 (x64) is currently running.
    iTunesHelper 11.1.5.5 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) ICH9 Family USB Universal Host Controller - 2934.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2935.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2936.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2937.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2938.  Device is working properly.
    Intel(R) ICH9 Family USB Universal Host Controller - 2939.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293A.  Device is working properly.
    Intel(R) ICH9 Family USB2 Enhanced Host Controller - 293C.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • Trouble with Toshiba built-in webcam: "unable to enumerate USB device"

    I am running archlinux on a Toshiba Satellite L70-B-12H laptop, and having troubles with the Webcam. *Once in a while*, everything goes well and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 004: ID 04f2:b448 Chicony Electronics Co., Ltd
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    # dmesg
    [ 3433.456115] usb 3-1.3: new high-speed USB device number 4 using ehci-pci
    [ 3433.781119] media: Linux media interface: v0.10
    [ 3433.809842] Linux video capture interface: v2.00
    [ 3433.826889] uvcvideo: Found UVC 1.00 device TOSHIBA Web Camera - HD (04f2:b448)
    [ 3433.835893] input: TOSHIBA Web Camera - HD as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input15
    [ 3433.835976] usbcore: registered new interface driver uvcvideo
    [ 3433.835977] USB Video Class driver (1.1.1)
    Unfortunately, *most of the time* the camera seems invisible to my system, and I get
    # lsusb
    Bus 004 Device 002: ID 8087:8000 Intel Corp.
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 8087:07dc Intel Corp.
    Bus 003 Device 002: ID 8087:8008 Intel Corp.
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    (note the missing "04f2:b448 Chicony Electronics Co., Ltd" device), and
    # dmesg
    [ 480.104252] usb 3-1.3: new full-speed USB device number 4 using ehci-pci
    [ 480.171097] usb 3-1.3: device descriptor read/64, error -32
    [ 480.341235] usb 3-1.3: device descriptor read/64, error -32
    [ 480.511375] usb 3-1.3: new full-speed USB device number 5 using ehci-pci
    [ 480.578007] usb 3-1.3: device descriptor read/64, error -32
    [ 480.748151] usb 3-1.3: device descriptor read/64, error -32
    [ 480.918282] usb 3-1.3: new full-speed USB device number 6 using ehci-pci
    [ 481.325196] usb 3-1.3: device not accepting address 6, error -32
    [ 481.392091] usb 3-1.3: new full-speed USB device number 7 using ehci-pci
    [ 481.798926] usb 3-1.3: device not accepting address 7, error -32
    [ 481.799166] hub 3-1:1.0: unable to enumerate USB device on port 3
    Searching on the web, most results I found lead to this page, where it is said that the problem is due to badly tuned overcurrent protection, and advocated that unplugging and switching off the computer for a little while gets things back into normal. This does not really work for me; the problem seems to occur more randomly, unfortunately with high probability (my camera is available after less than one boot out of ten).
    I tried to ensure that the ehci-hcd module is loaded at boot with the ignore-oc option (with a file in /etc/module-load.d/), to no avail.
    I also wrote a script which alternatively removes and reloads the ehci-pci driver until my device is found in lsusb. It is sometimes helpful, but usually not. And even when my device is found that way, it can only be used for a while before disappearing again.
    Anyway, such a hack is unacceptable... So, my questions are:
    is it indeed related to overcurrent protection ?
    is there anything else I can try ?
    should I file somewhere an other of the numerous bug reports about "unable to enumerate USB device" already existing ?
    If of any importance, I am running linux 3.15.7, because at the time I installed my system, I couldn't get the hybrid graphic card Intel/AMD working under 3.16.
    Last edited by $nake (2014-10-18 16:29:06)

    uname -a
    Linux libra 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux
    pacman -Qi linux
    Name : linux
    Version : 3.9.4-1
    Description : The linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licences : GPL2
    Groups : base
    Provides : kernel26=3.9.4
    Depends On : coreutils linux-firmware kmod mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 65562.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sat 25 May 2013 16:28:17 CEST
    Install Date : Sun 02 Jun 2013 15:30:35 CEST
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature

  • Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hi, i am having trouble with my mac mail account, i cannot send or receive any emails because of the server connection problems. Message says it could not be connected to SMTP server. Thanks in advance for your help.

    Hello Sue,
    I have an iPad 3, iPad Mini and iPhone 5S and they are all sluggish on capitalisation using shift keys. I hope that Apple will solve the problem because it is driving me crazy.
    I find using a Microsoft Surface and Windows 8 phone, which I also have, work as well as all the ios devices before the ios 7 upgrade.
    It has something to do with the length of time that you need to hold the shift key down. The shift key needs to be held longer than the letter key for the capitalisation to work. For some reason, this is a major change in the way we have learnt to touch type on computers. I am having to relearn how to type!
    Michael

  • Trouble with OR in where clause

    Hello,
    I'm having trouble with execution speed. The problem seems to be with using OR in my where clause.
    Here's the meat of the function where i_pledge_number is an input parm:
    BEGIN
    SELECT /*+ INDEX (pp) */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM
    primary_pledge pp
    WHERE
    -- Get total if multiple allocations
    pp.prim_pledge_number IN
    (SELECT pc.pledge_number
    FROM pledge_codes pc
    WHERE pc.pledge_code_type = 'M'
    AND pc.pledge_code = 'AC'
    AND lpad(pc.pledge_comment,10,'0') = i_pledge_number)
    -- Get total if single allocation
    OR pp.prim_pledge_number = i_pledge_number;
    RETURN return_amount;
    END;
    If I comment out either half of the OR statement (either the subquery or the pp.prim_pledge_number = i_pledge_number half) the function returns a value in .02 seconds. If I leave the OR in, it takes 2.764 seconds to execute?? Can someone please show me a better way (faster) to do this? I tried using nvl() around the subquery but couldn't get it to compile.
    Thanks

    These things are difficult to diagnose remotely, but here is something you can try....
    SELECT */ SUM(pp.prim_pledge_amount)
    INTO return_amount
    FROM   primary_pledge pp
    WHERE  pp.prim_pledge_number IN (SELECT pc.pledge_number
                                     FROM pledge_codes pc
                                     WHERE pc.pledge_code_type = 'M'
                                     AND pc.pledge_code = 'AC'
                                     AND lpad(pc.pledge_comment,10,'0') = i_pledge_number
    UNION ALL
    SELECT i_pledge_number FROM dual)
       RETURN return_amount;
    END;If that doesn't do anything (and it might well not) there are a large number of different ways we can recast this query. To save us further guessing please give us more details: execution plans, database version number, volumetrics.
    Cheers, APC

  • A trouble with "LIKE" in a select statement

    Hi!
    I'm having trouble with "LIKE" in a select statement...
    With Access I can make the following and everything works well:
    SELECT name, birthday
    FROM client
    WHERE birthday LIKE '*/02/*';
    but if try to do it in my application (it uses Access), it doesn't work - I just can't understand that!!!
    In my application the "month" is always the currently month taken from the "System". Look what I'm doing...
    String query1 = "SELECT name, birthday " +
              "FROM client " +
              "WHERE birthday " +
              "LIKE '*/" +
              pMonth +
              "/*' " +
              "ORDER BY birthday ASC ";
    ResultSet rs = statement1.executeQuery(consulta1);
    boolean moreRecords = rs.next();
    The variable "moreRecords" is always "false", the query returns nothing although the table "client" has records that attend the query.
    Please, anyone can help me?! It's a little bit urgent.
    Thanks,
    Katia.

    Hi Katia,
    I'll bet the problem lies with the characters you're using to escape the LIKE clause. You're using the ones that Access likes to see, but that's not necessarily what's built into the JDBC-ODBC driver class.
    You can find out what the correct escape wildcard characters are from the java.sql.DatabaseMetaData.getSearchStringEscape() method. It'll tell you what to use in the LIKE clause.
    I'm not 100% sure about your code. It doesn't use query1 anywhere. I'd do this:
    String query = "SELECT name, birthday FROM client WHERE birthday LIKE ? ORDER BY birthday ASC";
    PreparedStatement statement = connection.createStatement(query);
    String escape = connection.getMetaData().getSearchStringEscape();
    String test = escape + '/' + pMonth + '/' + escape;
    statement.setString(1, test);
    ResultSet rs = statement.executeQuery();
    while (rs.hasNext())
    // load your data into a data structure to pass back.
    rs.close();
    statement.close();Let me know if that works. - MOD

  • (Trouble printing) Trouble with connection between Macbook Pro and Hp Deskjet 1510.

    Trouble with connection between Macbook Pro and Hp Deskjet 1510. (Nothing Prints).
    I have a Macbook Pro and am having difficulty printing documents from ‘Pages' from my Hp Deskjet 1510. I have installed the necessary software for the printer and it is connected via USB. Every time I try to print the printer icon comes up as it should, 'printing' and then 'job completed' and then the icon disappears. (Nothing is printed.) I thought it might be something to do with Pages compatibility with the printer but exporting the document to Word or making it a PDF doesn’t change anything. I don’t have Microsoft Word on my computer. The scanner does work and when I printed a ‘Test Page’ that worked too.
    Let me know if you know why this is happening.

    With these settings the network now works flawlessly, however, when i have my ethernet cable plugged in, my internet access via my airport card(on the macbook pro) is no longer available. Hoping you can tell me why this would be with this info i've provided.
    Educated guess. The networking devices have priorities as to which are used. The standard order is that Ethernet has a higher priority than Airport.
    While your Ethernet is unplugged it is inactive and the Mac ignores it. Once you plug it in, the Mac sees that it is active and switches traffic to that interface.
    I actually take advantage of this feature at home, but configuring my Airport and Ethernet with identical fixed IP addresses. Normally I'll use Airport, but if I'm copying a huge file and I want faster performance, I'll just walk my MacBook (previously iBook, previously Powerbook) over to my Ethernet switch and plug in my MacBook. Magically, the Mac detects that the Ethernet is active and continues the file transfer uninterrupted over the faster 100baseT Ethernet connection. When the transfer is finished, or if I really need to move back to the Comfy Chair, I unplug the Ethernet cable, and all activity reverts back to the Airport, all without disrupting any existing networking connections.
    You on the other hand have totally different settings for your Ethernet and your Airport, so when you switch to Ethernet, you basically loose your Airport connections.
    Something you can try:
    System Preferences -> Network
    Gear icon on the bottom left, next to the [+] [-] icons.
    Select *Set Service Order...*
    Now Drag the network interfaces into the perfer priority order you want. In this case put Airport above Ethernet.
    NOTE: You may want to create a new Network Location for this, instead of messing with your normal home Location (which is most likely the default Automatic. That way you have your original you can always fall back to.

  • Edge Animation having troubles with iOS devices within Muse Site

    Hi All! I've been creating a mobile version of my website www.rinkdesigns.com and have it all complete. I created an animation/navigation bar within Adobe Edge Animate and imported it into Muse. It functions AMAZINGLY on my Nexus 4 (Android) in Chrome but on a buddies iPhone 5 Chrome only loads about 3/4 of the animation/nav bar, in Safari the animation does not load at all and half of the page background does not load either. Please check out the preview site here http://rinkdesignsmobile.businesscatalyst.com/phone
    Has anyone else been having animation/mobile troubles with iOS devices? Any hints as to how you fixed your errors would be extremely helpful! I also posted this question in the Muse forum and haven't gotten a response...
    Thanks,
    John

    Or, how about this:
    Does anyone know how to have Edge Animate objects that utilize "_top" in an open url trigger make the Muse site that they are a part of open a new window/tab with that action (as opposed to having it open the url in the current page, or using "_blank" in the trigger)?

  • Trouble with 3rd party VST installs for Garageband, can't find instruments

    Hi,
    I am having trouble with Audio Units for Garageband when installing 3rd party software, VSTs, loops, instruments. I have more issues with Logic Pro. I am hoping that it is the same underlying issue and that I am just missing something. I have the manuals (not great for troubleshooting). I am confused with some installs use User Library and others use the Computer Library. I do go to the mfgs sites for updates. The installs sometimes work as standalones but I don't see ALL of the components of the software in say Garageband or Logic. Mostly, I am missing the "instruments" and "loops" that I want to access within the DAW. Some examples:
    • Here is some of the software I am talking about:  East West sample libraries (Play and Native Instruments); Vienna Symphonic librarires; Sylenth1 (just last night); Sample Tank 2 and Total Workstation 2 from IK Multimedia and others.
    • In GB I see the Audio Units for Vienna, Play, Sylenth, some of the IK Multimedia but NOT any instruments when I go to the "Sound Generator" -- I seem to be missing the instruments and loops. I see less AUs in Logic Pro. Some of these are VST instruments.
    • Can I just drag-drop samples to the library folders to fix this?
    • The plug-ins do not seem to work (though Sylenth1 worked for a single sound). When there is a standalone app (as in Sample Tank), I finally got the "sounds" to be reinstalled and loaded, those sounds/samples don't show up in any DAW.
    • When and if the sounds/loops/samples show up in GB's "Instruments" section will I be able to tell that they belong to that particular software or library?
    Thanks in advance.
    John

    Found the answer myself, it was simple:
    • Select the Track
    • Show the Instrument (info area)
    • Click on Edit
    • Click on the "Sound Generator" pop up field.
    • At the bottom of the pop-up list, select from the Audio Units that you have installed. This is where you see "Sample Tank 2, Vienna Instruments..."
    • NEXT -- IMPORTANT:   CLICK ON THE PICTURE next to the Sound Generator pop-up field.The AU unit loads up, the interface pops up, you load up the instruments in this AU Unit. You do NOT see the sounds from the AU unit in the normal Apple instrument list.
    This was not intuitive but once you know it, fairly simple.
    Still, the devil is in the details -- more questions on the way.

Maybe you are looking for