Package jtrackbase.db

Examples of jtrackbase.db.Artist


    }
  }

  @Override
  public Object getValueAt(int rowIndex, int columnIndex) {
    Artist a=get(rowIndex);
    if (a==null) {
      return null;
    }
    switch (columnIndex) {
    case 0:{
      return a.getId();
    }
    case 1:{
      return a.getName();
    }
    }
    return null;
  }
View Full Code Here


    }
    medium.setLabel(label);
   
    Collection<Artist> artists = ArtistFacade.findByName(artistField
        .getText());
    Artist artist;
    if (artists == null || artists.size() == 0) {
      artist = new Artist();
      artist.setName(artistField.getText());
    } else if (artists.size() == 1) {
      artist = artists.iterator().next();
    } else {
      throw new UnsupportedOperationException("There ought to popup a list");
    }
View Full Code Here

TOP

Related Classes of jtrackbase.db.Artist

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.