Problem In finding a collection

Hi Friend,
I am having two different ways to get a data value. The data value is mapped with respect to a number or a name. By that I mean a data value can be found out on the basis of name or number. Can anyone suggest a collection or method to implement this. A code snippet will be very helpful.
Thanks,
Regards,
Ravi.

If you have name and number both indicating the value, then you need to be able to ensure that both are unique to the data, and to navigate name-> number and number-> name to remove values.
You need to create you own aggregate collection, something like:import java.util.*;
public class NameAndNumberMap {
  private static class NameNumberDatum {
    final String name_;
    final int number_;
    Object datum_;
    NameNumberDatum (String name, int number, Object datum) {
      name_ = name;
      number_ = number;
      datum_ = datum;
    public String toString () {
      return "<" + name_ + ", " + number_ + ", " + datum_ + ">";
  private final Map nameToDatum_ = new HashMap();
  private final Map numberToDatum_ = new TreeMap();
  public void add (String name, int number, Object datum) {
    if (nameToDatum_.containsKey(name)) {
      throw new RuntimeException("The name is not unique");
    Integer boxedNumber = new Integer(number);
    if (numberToDatum_.containsKey(boxedNumber)) {
      throw new RuntimeException("The number is not unique");
    NameNumberDatum nameNumberDatum = new NameNumberDatum(name, number, datum);
    nameToDatum_.put(name, nameNumberDatum);
    numberToDatum_.put(boxedNumber, nameNumberDatum);
  public Object get (String name) {
    NameNumberDatum nameNumberDatum = (NameNumberDatum)nameToDatum_.get(name);
    return (nameNumberDatum == null) ? null : nameNumberDatum.datum_;
  public Object get (int number) {
    NameNumberDatum nameNumberDatum = (NameNumberDatum)numberToDatum_.get(new Integer(number));
    return (nameNumberDatum == null) ? null : nameNumberDatum.datum_;
  public int number (String name) {
    NameNumberDatum nameNumberDatum = (NameNumberDatum)nameToDatum_.get(name);
    return (nameNumberDatum == null) ? Integer.MAX_VALUE : nameNumberDatum.number_;
  public String name (int number) {
    NameNumberDatum nameNumberDatum = (NameNumberDatum)numberToDatum_.get(new Integer(number));
    return (nameNumberDatum == null) ? null : nameNumberDatum.name_;
  public Object remove (String name) {
    return remove((NameNumberDatum)nameToDatum_.get(name));
  public Object remove (int number) {
    return remove((NameNumberDatum)numberToDatum_.get(new Integer(number)));
  private Object remove (NameNumberDatum nameNumberDatum) {
    if (nameNumberDatum != null) {
      nameToDatum_.remove(nameNumberDatum.name_);
      numberToDatum_.remove(new Integer(nameNumberDatum.number_));
      return nameNumberDatum.datum_;
    } else {
      return null;
  public Collection allData () {
    ArrayList allData = new ArrayList(numberToDatum_.size());
    for (Iterator valueIt = numberToDatum_.values().iterator(); valueIt.hasNext(); ) {
      allData.add(((NameNumberDatum)valueIt.next()).datum_);
    return Collections.unmodifiableList(allData);
  public Collection allNames () {
    return Collections.unmodifiableList(new ArrayList(nameToDatum_.keySet()));
  public Collection allNumbers () {
    return Collections.unmodifiableList(new ArrayList(numberToDatum_.keySet()));
  public String toString () {
    return numberToDatum_.values().toString();
  public static void main (String[] args) {
    NameAndNumberMap map = new NameAndNumberMap();
    for (int number = 0; number < 12; number ++) {
      map.add("fred " + number, number, "ginger " + (number * number));
    System.out.println(map.get(3));
    System.out.println(map.get("fred 7"));
    System.out.println(map.name(11));
    System.out.println(map.number("fred 10"));
    System.out.println(map.remove(2));
    System.out.println(map.remove("fred 4"));
    System.out.println(map.remove(12));
    System.out.println(map.remove("lemons"));
    System.out.println();
    System.out.println(map.allNames());
    System.out.println();
    System.out.println(map.allNumbers());
    System.out.println();
    System.out.println(map.allData());
    System.out.println();
    System.out.println(map);
}Pete

Similar Messages

  • I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. Starting on a new computer now. I can get my music from old computer?

    I am having problems with my music collection, after burning all of my music to the computer I organized it into folders and placed it in the iTunes Folder. As of now i realize this was a mistake. Starting on a new computer now. I cant get my music to transfer from the itunes folder on the old computer? I keep getting error "Can't Read from the source file or disk." Whenever I got to folder properties its always checked read only. But when i play the song it works just fine. Im sure this is just because I added music into itunes folder but is there anyway to fix it?

    WMA files are 'window media audio' files, which is a Microsoft format. If you want to add them to your iTunes library on your Mac then you will need to convert them into a compatible format first. If you still have your windows machine then iTunes for Windows can convert them from WMA to MP3 format : https://discussions.apple.com/message/24158701#24158701
    Or try a search for, for example, 'convert wma to mp3' to find programs to convert them.

  • Problem with finding a File

    Hi:
    I am having problem with finding a file on the OS
    (using Win2000) when given an absolute pathname;
    here is the rough code:
    //theFile is specified at command line
    File f = new File(theFile);
    BufferedReader in = new BufferedReader(new FileReader(f));When I run the program, I type
    java myProgram C:\aFolder\theFile
    But it can't find theFile. I am not sure what's wrong.
    Thanx

    No that can't be it; he takes the filename from the command line, so escaping isn't an issue (unless he used a shell that unescaped '\\' for him, but I think he's using the win2000 cmd shell).
    Dunno, I have no idea of your filesystem or shell. Just do some debugging, around the lines of:
    File f = new File(theFile);
    if (f.exists()) {
      System.err.println(theFile + " exists.");
    } else {
      System.err.println(theFile + " doesn't exist.");
    }

  • Problem to find Exit Name for me52n

    Dear all,
                 Recently i've facing a problem for finding the exact Exit Point for transaction ME52N.Can anyone please help me for finding this?
    regards,
    sameek.

    Hi, read http://www.surfingincognito.com/index.php?q=aHR0cDovL2ZvcnVtcy5zZG4uc2FwLmNvbS9tZXNzYWdlLmpzcGE%2FbWVzc2FnZUlEPTQ0OTU5MDE%3D   You can use inside of methods additional metods-GET_ items, GET_DATA. Please ask from your abaper, he'd know how to use it
    Also check this ME51N / BADI ME_PROCESS_REQ_CUST
    Edited by: alex ice on May 7, 2011 12:47 PM

  • I can hear people on call but sometimes they can't hear me, it maybe fine for afew mins but then sound drops again? Anyone have this problem and find a solution? Thanks.

    I have an Iphone 4 13.5 GB, iOS 7.1.2. Currently when I make a call or someone calls me, I can hear people on call perfectly but sometimes they can't hear me. It maybe fine for afew mins but then sound drops again? Anyone have this problem and find a solution? Thanks.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • I have updated my mac book pro and am trying to get icloud and the new lion version. The lion version will not download and my biggest problem is finding icloud on my system preference. Can anyone help me?

    I have updated my mac book pro and am trying to get icloud and the new lion version. The lion version will not download and my biggest problem is finding icloud on my system preference. Can anyone help me?

    Welcome to the Apple Support Communities
    Connecting your MacBook Pro and your MacBook Air will be the fastest way, but you have to spend money on cables and adapters (also, your MacBook Pro doesn't support Thunderbolt).
    As you have a Time Capsule, one thing you can do is to start your MacBook Pro and make a Time Machine backup. Then, turn on your MacBook Air and set it up. Setup Assistant will ask you to restore a backup, so select the option to restore the backup from the Time Capsule and be patient. This can take a lot of time if you have to migrate a lot of files

  • TS1367 I was having a problem down loading photos, so I force quite all programs.  Then there was problem launching finder.    Relaunched and turned computer off to reboot.    Now computer starts, but does not boot up  I am stopped at a white blank screen

    I was having a problem down loading photos, so I force quite all programs.  Then there was problem launching finder.    Relaunched and turned computer off to reboot.    Now computer starts, but does not boot up  I am stopped at a white blank screen

    Welcome to Apple Discussions Dathanb
    You have posted in the Feedback About New Discussions forum.
    As you are a first time poster, you seem to have missed the text at the top of this forum that says:
    Please Read This Before Posting Here
    If your question concerns a hardware or software technical issue, please do not post in this forum
    Go to the main Apple Discussions page, select an appropriate product category and follow the links until you reach the correct forum for your post, then click the POST NEW TOPIC link. Because your post doesn't indicate was OS you are using on your iMac, I can't give you a link to the most appropriate forum.
    Basically, though, the version of TechTool on the AppleCare disks is not compatible with newer versions of OS X and/or Macs (I can't remember which). If you don't get a satisfactory response by posting in the appropriate iMac or OS X forum, I suggest you take your iMac to the geniuses at the Apple Store. You can set up an appointment time for the same day online before you leave home.
    Peggy

  • Strange problem with Outlets and Collection View Items

    This is a strange issue. I am using XCode 3.2.2 and I am building a Collection View. To do this I have a non-document based application that uses Core Data.
    *Collection View Item Class*
    I created a new class that inherits NSCollectionViewItem and built it to have an outlet to the Label.
    *Collection View Item NIB*
    I created a Empty NIB for my Collection View Item. To the NIB I added a Custom View object and set the Class Identity to NSBox. I then added a Label to the new NSBox. I changed the File Owner to the new class and connected the "view" outlet to the new NSBox and the Label to the label outlet.
    *Main Menu NIB*
    I added a new NSCollectionViewItem object to the Main Menu NIB and set the Class Identity to the new class mentioned above. I then set the NIB Name to the name of the NIB mentioned above. In the window I added a NSCollectionView then set its Item Prototype to the new NSCollectionViewItem object I just configured. This is the typical way to set up a collection view with its item in a different NIB.
    *Back to the problem*
    Everything seem to work well except that in the setRepresentativeObject in the Collection View Item class when it attempts to set the Label to a value. Nothing happens. When I check closely I find that the Label is coming back nil. It is properly linked. I deleted everything and rebuilt the collection view item and relinked everything without success.
    *How I made it work but not happy with it*
    I have finally made this work by simply putting the line "[self view];" just before I attempt to run "[label setStringValue:name];". If I remark out the "[self view];" the label returns nil. I have a note near the line to make it easier to spot. It seems that I should not need to access the superclass's "view" accessor just to access one of view's subviews. Is this a bug or have I written this wrong?
    The Collection View Item code is below. Any help is appreciated.
    Thanks,
    Rob
    #import <Cocoa/Cocoa.h>
    #import "PersonManagedObject.h"
    @interface PersonSelectionViewItem : NSCollectionViewItem {
    NSTextField *label;
    #pragma mark Finalizers
    - (void)dealloc;
    #pragma mark Outlets
    @property (nonatomic, assign) IBOutlet NSTextField *label;
    #pragma mark Instance Methods
    - (void)configureKeyValueObserving;
    - (void)removeKeyValueObserving;
    #pragma mark Overrides
    - (void)setRepresentedObject:(id)representedObject;
    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
    @end
    #import "PersonSelectionViewItem.h"
    @implementation PersonSelectionViewItem
    #pragma mark Finalizers
    - (void)dealloc{
    [self removeKeyValueObserving];
    [super dealloc];
    #pragma mark Outlets
    @synthesize name;
    #pragma mark Instance Methods
    - (void)configureKeyValueObserving{
    PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
    [person addObserver:self forKeyPath:@"lastNameFirstName" options:0 context:NULL];
    - (void)removeKeyValueObserving{
    PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
    [person removeObserver:self forKeyPath:@"lastNameFirstName"];
    #pragma mark Overrides
    - (void)setRepresentedObject:(id)representedObject{
    [super setRepresentedObject:representedObject];
    NSString *personName = (NSString *)[representedObject valueForKey:@"lastNameFirstName"];
    [self view]; //<---Without this line the "label" variable 2 lines down will be nil.
    if (personName) {
    [label setStringValue:personName];
    [self configureKeyValueObserving];
    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{
    if ([keyPath isEqualToString:@"lastNameFirstName"]) {
    [[self label]setStringValue:[object valueForKey:@"lastNameFirstName"]];
    } else {
    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
    @end

    I think you must be correct. I just ran into the problem again in yet another NIB. It was in the setRepresentedObject method. I simply put in the same line "\[self view\]" just before I needed to set the value of the view component and it worked again. If it is the same in other components I guess I just need to pay attention to it. Thanks for the information.
    Message was edited by: Cycles4Fun

  • Icon Preview Problem in Finder

    Hi,
    I've had my new MacBook for about a month now, and as my photo collection has grown I'm starting to notice that while using CoverFlow (which I have as the default view for most of my folders), there are always some icons that appear as a generic JPEG icon instead of having the image preview. This problem goes away (all icons have previews) once I open the same folder again or refresh it somehow (for example by selecting Calculate All Sizes in View Options). However, once I restart/log in again, it happens again. Most of the images are normal JPG's from the web, and which ones have missing previews is completely random. This applies to all of my folders, and I've seen the same thing on several other Macs as well (the family iMac and several others in Apple Stores). This only appears in CoverFlow view, though.
    Here are a couple of screenshots to illustrate the problem:
    http://i92.photobucket.com/albums/l4/Octavarius/Screenshot-IconsinFinder.jpg
    http://i92.photobucket.com/albums/l4/Octavarius/Screenshot-IconsinFinder2.jpg
    Does anyone else also experience this issue? Is it a common issue? The Show Icon Preview option is checked, by the way.
    Any ideas?
    Regards,
    Jacob

    Keep in mind that it's the icons below the Cover Flow section that are the problem. The blurry photos in the Cover Flow section on the first screenshot have very small resolution, that's why they're blurry, but if you look in the second pic, you'll see some others that are completely sharp. Just in case you misunderstood.
    I do sometimes get blurry pictures in the Cover Flow section, just after they're downloaded, but once I log out and back in, they're fine and stay that way.
    Once I click Get Info on an icon that's missing the preview it's immediately refreshed and the preview is there again, as it should be. It seems like Finder is sometimes skipping certain previews the first time you open a folder since log in.
    What did you mean by custom icon? How do you set/delete one?
    Message was edited by: Jacob Matheus

  • Amarok: Could not find any collection plugins

    Hello,
    after some recent updates, my amarok refuses to start giving the message that no collection plugins where found due to an incompatible KDE library version. Searching the internet revealed no cure... All other KDE apps are working fine, the system is up to date and I tried running both kbuildsycoca4 and ldconfig.
    Any idea?
    Thanks!
    florian@horus ~ % amarok --debug
    KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
    amarok: BEGIN: App::App()
    amarok:   BEGIN: void App::continueInit()
    amarok:     BEGIN: EngineController::EngineController()
    amarok:     END__: EngineController::EngineController() [Took: 0s]
    amarok:     BEGIN: void EngineController::initializePhonon()
    amarok:       [EngineController] Tick Interval (actual):  100
    amarok:     END__: void EngineController::initializePhonon() [Took: 0.14s]
    amarok:     BEGIN: MainWindow::MainWindow()
    amarok:       BEGIN: CollectionManager::CollectionManager()
    amarok:       END__: CollectionManager::CollectionManager() [Took: 0s]
    amarok:       BEGIN: Plugins::PluginManager::PluginManager(QObject*)
    amarok:         BEGIN: void Plugins::PluginManager::findAllPlugins()
    amarok:           [PluginManager] found plugin: "amarok_collection-audiocdcollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-daapcollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-ipodcollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-mtpcollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-mysqlservercollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-mysqlecollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-upnpcollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_collection-umscollection" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_device_nfs" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_device_smb" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_device_massstorage" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_ampache" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_jamendo" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_lastfm" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_mp3tunes" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_magnatunestore" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_opmldirectory" enabled: false
    amarok:           [PluginManager] found plugin: "amarok_service_gpodder" enabled: false
    amarok:           [PluginManager] 18 plugins in total
    amarok:         END__: void Plugins::PluginManager::findAllPlugins() [Took: 0.001s]
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-audiocdcollection' from KPluginLoader: The plugin 'amarok_collection-audiocdcollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-ipodcollection' from KPluginLoader: Cannot load library /usr/lib/kde4/amarok_collection-ipodcollection.so: (libgpod.so.4: cannot open shared object file: No such file or directory)"
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-mtpcollection' from KPluginLoader: The plugin 'amarok_collection-mtpcollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-mysqlecollection' from KPluginLoader: The plugin 'amarok_collection-mysqlecollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-umscollection' from KPluginLoader: The plugin 'amarok_collection-umscollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [PluginManager] No Amarok collection plugins found, running kbuildsycoca4.
    amarok:         BEGIN: virtual int App::newInstance()
    amarok:           BEGIN: static void App::handleCliArgs()
    amarok:           END__: static void App::handleCliArgs() [Took: 0s]
    amarok:         END__: virtual int App::newInstance() [Took: 0s]
    florian@horus ~ % amarok:         [PluginManager] Second attempt at finding collection plugins                                                                                                                     
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-audiocdcollection' from KPluginLoader: The plugin 'amarok_collection-audiocdcollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-ipodcollection' from KPluginLoader: Cannot load library /usr/lib/kde4/amarok_collection-ipodcollection.so: (libgpod.so.4: cannot open shared object file: No such file or directory)"
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-mtpcollection' from KPluginLoader: The plugin 'amarok_collection-mtpcollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-mysqlecollection' from KPluginLoader: The plugin 'amarok_collection-mysqlecollection' uses an incompatible KDE library (4.6.4 (4.6.4))."
    amarok:         [WARNING] [PluginManager] "Failed to get factory 'amarok_collection-umscollection' from KPluginLoader: The plugin 'amarok_collection-umscollection' uses an incompatible KDE library (4.6.4 (4.6.4))."

    Durden wrote:https://bbs.archlinux.org/viewtopic.php?id=121446
    Is this posting (or any linked pages) suggesting any way to solve the original problem? If yes, I can't see it....

  • Deployment problem with finder method

    I have a problem deploying an application that was working prior to my adding a finder method to one of the entity beans. Here is the Descriptor from the EJB Module that i created (which appears to be ok):
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <display-name>RFXModule</display-name>
    <enterprise-beans>
    <session>
    <display-name>RFXManager</display-name>
    <ejb-name>RFXManager</ejb-name>
    <home>au.com.alphawest.trader.rfx.business.management.RFXManagerHome</home>
    <remote>au.com.alphawest.trader.rfx.business.management.RFXManagerRemote</remote>
    <ejb-class>au.com.alphawest.trader.rfx.business.management.RFXManagerBean</ejb-class>
    <session-type>Stateful</session-type>
    <transaction-type>Container</transaction-type>
    <ejb-local-ref>
    <ejb-ref-name>ejb/rfx/RFXDocument</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXDocumentLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXDocumentLocal</local>
    <ejb-link>RFXDocument</ejb-link>
    </ejb-local-ref>
    </session>
    <entity>
    <display-name>RFXAttachment</display-name>
    <ejb-name>RFXAttachment</ejb-name>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXAttachmentLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXAttachmentLocal</local>
    <ejb-class>au.com.alphawest.trader.rfx.business.data.RFXDocumentAttachment</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>RFXAttachment</abstract-schema-name>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>type</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>attachmentContents</field-name>
    </cmp-field>
    <primkey-field>name</primkey-field>
    </entity>
    <entity>
    <display-name>RFXDocument</display-name>
    <ejb-name>RFXDocument</ejb-name>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXDocumentLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXDocumentLocal</local>
    <ejb-class>au.com.alphawest.trader.rfx.business.data.RFXDocumentBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>au.com.alphawest.trader.rfx.business.data.RFXDocumentPK</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>RFXDocument</abstract-schema-name>
    <cmp-field>
    <field-name>documentGUID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>creationDate</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>creatorGUID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>dueDate</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>emailAddress</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>faxNo</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>locked</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>notes</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>organisationName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>ownerGUID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>requestId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>subject</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>telephoneNo</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>unitGUID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>buyer</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>organisationGUID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>sourceId</field-name>
    </cmp-field>
    <ejb-local-ref>
    <ejb-ref-name>ejb/rfx/RFXDocumentAttachment</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXAttachmentLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXAttachmentLocal</local>
    <ejb-link>RFXAttachment</ejb-link>
    </ejb-local-ref>
    <ejb-local-ref>
    <description>A line item attached to this document</description>
    <ejb-ref-name>ejb/rfx/RFXLineItem</ejb-ref-name>
    <ejb-ref-type>Entity</ejb-ref-type>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXLineItemLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXLineItemLocal</local>
    <ejb-link>RFXLineItemBean</ejb-link>
    </ejb-local-ref>
    <query>
    <description>Find the rfx documents related to the given supplier through it's line items</description>
    <query-method>
    <method-name>findBySupplierId</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>SELECT OBJECT(d) FROM RFXDocument AS d, IN(d.lineItems) l WHERE l.supplierGuid = 'DummySupplierGuid'</ejb-ql>
    </query>
    </entity>
    <entity>
    <display-name>RFXLineItem</display-name>
    <ejb-name>RFXLineItem</ejb-name>
    <local-home>au.com.alphawest.trader.rfx.business.data.RFXLineItemLocalHome</local-home>
    <local>au.com.alphawest.trader.rfx.business.data.RFXLineItemLocal</local>
    <ejb-class>au.com.alphawest.trader.rfx.business.data.RFXLineItemBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.math.BigDecimal</prim-key-class>
    <reentrant>False</reentrant>
    <abstract-schema-name>RFXLineItem</abstract-schema-name>
    <cmp-field>
    <field-name>itemId</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>rfxGuid</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>contractCode</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>supplierGuid</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>productCode</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>quantity</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>units</field-name>
    </cmp-field>
    <primkey-field>itemId</primkey-field>
    </entity>
    </enterprise-beans>
    <relationships>
    <ejb-relation>
    <ejb-relation-name>RFXDocument-RFXAttachment</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>RFXDocument</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>RFXDocument</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>attachments</cmr-field-name>
    <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>RFXAttachment</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>RFXAttachment</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>RFXDocument-RFXLineItem</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>RFXDocument</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>RFXDocument</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>lineItems</cmr-field-name>
    <cmr-field-type>java.util.Set</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>RFXLineItem</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
    <ejb-name>RFXLineItem</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <container-transaction>
    <description>This value was set as a default by Sun ONE Studio.</description>
    <method>
    <ejb-name>RFXAttachment</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <description>This value was set as a default by Sun ONE Studio.</description>
    <method>
    <ejb-name>RFXDocument</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <description>This value was set as a default by Sun ONE Studio.</description>
    <method>
    <ejb-name>RFXLineItem</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <container-transaction>
    <description>This value was set as a default by Sun ONE Studio.</description>
    <method>
    <ejb-name>RFXManager</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    I get the following error message when i try to run the EJB Module through the Sun One Verifier Tool:
    Error: ** Error trying to process file: java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    at com.sun.enterprise.deployment.xml.EjbNode.parseQueries(EjbNode.java:700)
    at com.sun.enterprise.deployment.xml.EjbNode.completeLoadingDescriptor(EjbNode.java:671)
    at com.sun.enterprise.deployment.xml.EjbBundleNode.completeLoadingDescriptor(EjbBundleNode.java:524)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.load(EjbBundleXmlReader.java:249)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.loadStdAloneModule(EjbBundleXmlReader.java:162)
    at com.sun.enterprise.tools.verifier.Verifier.openEjbJar(Verifier.java:2421)
    at com.sun.enterprise.tools.verifier.Verifier.loadEjbJar(Verifier.java:1318)
    at com.sun.enterprise.tools.verifier.Verifier.loadJar(Verifier.java:866)
    at com.sun.enterprise.tools.verifier.gui.MainPanel.run(MainPanel.java:187)
    at java.lang.Thread.run(Thread.java:536)
    Look in file "RFXModule.jar_verified.xml" for detailed results on test assertions.
    Any help would be greatly appreciated.
    Mark Hesketh

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Problem with CS6 Master collection on iMac

    Hi .
    The installer for CS6 Master Collection (Site Licence) will not accept the serial no on a  iMac
    I have run the adobe cleaner and cleared all Adobe products off the mac.
    I have run ONYX and fixed all it could fix re permissions etc and HD problems (none)
    The OS version is 10.6.8 and latest updates as of yesterday.
    The install and serial no work fine on all other 19 Macs same configuration
    There are no adobe products showing up in applications or Utilities
    Network connection is fine.
    Any suggestions please ?

    Hi sheamusmac ,
    Please refer the mentioned kb: http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html .
    Regards,
    Romit Sinha

  • Problem with CS3 Master Collection on new Box & WinXP

    I just got a new computer, specs given bellow, that I just installed CS3 Master Collection.  The installation was reported as successful but when I try to run any of the CS3 programs (Flash, Photoshop, etc) the process starts (I checked this with Widows Task Manager/Process) but then nothing happens at all.  I haven't been able to find anything like this phenomenon with Google searches so I'm now posting here.
    Sys Specs:
    AMD A10-6800K APU with Radeon HD Graphics
    4.09 GHz, 2.21 GB Ram
    500 GB HD with 166G Free space after CS3 installation.Motherboard is a A55M-E33
    Message was edited by: James Daniel

    Try running the Creative Suite Cleaner Tool, and then try installing again.

  • Problem with CS4 Master Collection Install

    Have tried repeatedly to install CS4 Master Collection on an HP laptop running Microsoft Vista to no avail. I have uninstalled all previous attempts to install, run cleaner, deleted temp file stuff, rebooted ad nauseum etc. Originally, I was receiving a 1603 error code for all major programs: Photoshop, AI, etc. Now, I get a set up error: "set up has encountered an error and cannot continue. Contact Adobe Support." At this point, I have spent days trying to resolve this problem. Please help.

    Since you mention Error 1603 you might try going thru the page linked below...
    Error 1603: A fatal error occurred during installation

  • Problem with Finder and Menu Fonts (uppercase A)

    Hello --
    I'm having a problem with fonts. All the characters that appear under icons in the Finder or in the menu for any application appear as uppercase As with boxes around them. There appears to be one uppercase A for each character that should be there. If I click-pause-click to edit the filename in the Finder, the text appears normal during the duration of the change, and then reverts to uppercase A with a box around it again. All other operation of the computer is normal.
    I was watching and downloading video files in iTunes when the problem appeared. When I pressed ESC to exit full-screen mode, the Finder said that my start-up disk was almost full, and I saw the font problem. Upon investigating, I discovered that my start-up disk was completely full (and the download had failed), so the first thing I did was move some video files to an external drive, which freed about 5 GB.
    Since freeing the space, I've tried the following to fix it, in this order:
    1. booted from Tiger CD to run Repair Disk from Disk Utility
    2. rebooted from the boot hard drive to run Repair Disk Permissions from Disk Utility
    3. run through Disk Warrior
    4. created a test admin user and logged in as that user
    5. removed font cache files using terminal
    6. booted in safe mode, logged in as myself, and then rebooted normally
    None of these actions has had any effect. The computer is still operating normally, except for the characters that don't display correctly.
    I'm running 10.4.6 on a Titanium Powerbook 500 MHz with 512MB RAM. A few months ago, I replaced the internal hard drive with an 80GB Seagate.
    Tibook 500   Mac OS X (10.4.6)  

    Hi again, zoobieboots —
    I appreciate your initiating a new thread. Your post here helps to make the situation much clearer than in bmewolf's thread — particularly in terms of what you've already tried. Thanks again.
    A few initial thoughts —
        (a) As I was trying to suggest previously, you're apparently operating (after moving some files to an external drive) with ~6-10% (?) free disk space. Particularly given that you were working with large video files when this appeared, File fragmentation would be expected. While I haven't heard of this particular symptom resulting from fragmentation, that would be a concern to me — particularly since this immediately preceded the problematic behavior.
    I've read some good reports about iDefrag, but haven't used it myself. A demo version is apparently available for HDs < 100GB. But you'd presumably need to free significantly more space first (you haven't actually said whether 5GB or ?? is the total available now). Having never experienced severe fragmentation, I don't fully understand its consequences — but another participant may be able to explain this.
        <b>(b) You don't mention trying to troubleshoot potentially corrupt or incompatible fonts (or font caches), also as outlined in the other thread. As I suggested there, The X Lab's "undoing Font Book" FAQ is a useful resource in this.
        (c) Although I agree it may be an unsatisfying "solution," an Archive & Install did work for bmewolf in the case that you've indicated matches yours closely.
    I hope one of these suggestions is helpful. Please post back to discuss your progress.
    Regards,
    Dean

Maybe you are looking for

  • Query on Field exits in ECC 6.0

    Hi All, We have implemented field exits in SAP R/3 4.6c and now we have upgraded to ECC 6.0. I need to know the following information: Are field exits obsolete in ECC6.0? Can we create new field exits in ECC 6.0 ? Going forward, what is the alternati

  • Errors encounters after installation????????///

    Hai, i was installed EBS 11.5.10.2 on RHEL ES release 4 (NAHANT) 32 BIT. i followd each step of prerequists of installation document. i found errors and warnings in alert log file. errors: Tue Mar 11 12:19:58 2008 Errors in file /u01/uat2ora/uat2db/9

  • Music on Hold

    Is the product info it talks about music on hold feature, does anyone one know how to set it up

  • Positions not showing under org units

    I am starting to configure the out of the box Org Chart model and I have managed to get the Org Hierachry working but there are no positons showing beneath this. The SAP extractor has extracted the data which I have checked in the SQL Databse and the

  • Can an Elements 6 backup be restored to a new PC with Elements 12?

    Can an Elements 6 backup be restored to a new PC with Elements 12?