Examples of Artist


Examples of net.sf.jmp3renamer.plugins.MusicBrainz.ws2.Artist

        if (rl != null) {
            List<Release> list = rl.getRelease();
            for (Release release : list) {
                MusicBrainzAlbum mba = new MusicBrainzAlbum();
                mba.setTitle(release.getTitle());
                Artist artistName = release.getArtistCredit().getNameCredit().get(0).getArtist();
                mba.setArtist(artistName.getName());
                mba.setId(release.getId());

                // check, if this is a compilation
                if ("Compilation".equalsIgnoreCase(release.getReleaseGroup().getType())) {
                    mba.setCompilation(true);
View Full Code Here

Examples of org.apache.art.Artist

                LifecycleEvent.POST_LOAD,
                Artist.class,
                listener,
                "publicCallback");

        Artist a1 = context.newObject(Artist.class);
        a1.setArtistName("XX");
        context.commitChanges();
        assertEquals(0, a1.getPostLoaded());
        assertNull(listener.getPublicCalledbackEntity());

        SelectQuery q = new SelectQuery(Artist.class);
        context.performQuery(q);
        assertEquals(1, a1.getPostLoaded());
        assertSame(a1, listener.getPublicCalledbackEntity());

        a1.resetCallbackFlags();
        listener.reset();

        // post load must be called on rollback...
        a1.resetCallbackFlags();
        listener.reset();

        context.rollbackChanges();
        assertEquals(0, a1.getPostLoaded());
        assertNull(listener.getPublicCalledbackEntity());

        // now change and rollback the artist - postLoad must be called
        a1.setArtistName("YY");
        context.rollbackChanges();
        assertEquals(1, a1.getPostLoaded());
        assertSame(a1, listener.getPublicCalledbackEntity());

        // test invalidated
        a1.resetCallbackFlags();
        listener.reset();
        assertEquals(0, a1.getPostLoaded());
        assertNull(listener.getPublicCalledbackEntity());

        context.performQuery(new RefreshQuery(a1));
        assertEquals(0, a1.getPostLoaded());
        assertNull(listener.getPublicCalledbackEntity());

        a1.getArtistName();
        assertEquals(1, a1.getPostLoaded());
        assertSame(a1, listener.getPublicCalledbackEntity());
    }
View Full Code Here

Examples of org.apache.cayenne.testdo.testmap.Artist

        // select all galleries that have exhibits by both Picasso and Dali...

        ObjectContext context = createDataContext();

        Artist picasso = Cayenne.objectForPK(context, Artist.class, 1);
        Artist dali = Cayenne.objectForPK(context, Artist.class, 2);

        SelectQuery query = new SelectQuery(Gallery.class);
        query.andQualifier(ExpressionFactory.matchAllExp(
                "|exhibitArray.artistExhibitArray.toArtist",
                picasso,
View Full Code Here

Examples of org.apache.cayenne.tutorial.persistent.Artist

    }

    static void newObjectsTutorial(ObjectContext context) {

        // creating new Artist
        Artist picasso = context.newObject(Artist.class);
        picasso.setName("Pablo Picasso");
        picasso.setDateOfBirthString("18811025");

        // Creating other objects
        Gallery metropolitan = context.newObject(Gallery.class);
        metropolitan.setName("Metropolitan Museum of Art");

        Painting girl = context.newObject(Painting.class);
        girl.setName("Girl Reading at a Table");

        Painting stein = context.newObject(Painting.class);
        stein.setName("Gertrude Stein");

        // connecting objects together via relationships
        picasso.addToPaintings(girl);
        picasso.addToPaintings(stein);

        girl.setGallery(metropolitan);
        stein.setGallery(metropolitan);

        // saving all the changes above
View Full Code Here

Examples of org.company.recordshop.domain.Artist

  /**
   * {@inheritDoc}
   */
  public ArtistDto readArtistAsArtistDto(Long id) {
    Artist result = customerServiceModelDomainService.readArtist(id);
    return (result == null) ? null : artistDtoTranslator.toDto(result);
  }
View Full Code Here

Examples of org.discogs.model.Artist

    lstArtists.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent arg0) {
        DiscogsArtistListModel artistModel = (DiscogsArtistListModel) lstArtists.getModel();
        ListSelectionModel selectionModel = lstArtists.getSelectionModel();
        if (!selectionModel.isSelectionEmpty() && !arg0.getValueIsAdjusting()) {
          Artist artist = artistModel.getEx(selectionModel.getMinSelectionIndex());
          if (artist != null) {
            DiscogsReleaseListModel releaseModel = (DiscogsReleaseListModel) lstReleases.getModel();

            releaseModel.clear();
            for (ArtistRelease release : artist.getReleases()) {
              releaseModel.addElement(release);
            }

            lstReleases.revalidate();
            lstReleases.clearSelection();
View Full Code Here

Examples of org.jboss.errai.demo.jpa.client.shared.Artist

    });

    newArtistButton.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        ArtistForm af = new ArtistForm(new Artist(), em);
        final PopupPanel pp = new PopupPanel(true, true);
        af.setSaveHandler(new RowOperationHandler<Artist>() {
          @Override
          public void handle(Artist artist) {
            em.persist(artist);
View Full Code Here

Examples of org.jboss.seam.example.seamdiscs.model.Artist

            protected void updateModelValues() throws Exception
            {
                setValue("#{disc.description}", DISC4_NEW_DESCRIPTION);
                // Simulate the entity converter
                setValue("#{exampleArtist.name}", ARTIST6_NAME);
                Artist artist = (Artist) getValue("#{artists.singleResult}");
                setValue("#{disc.artist}", artist);
                assert isLongRunningConversation();
                assert cid.equals(getConversationId());
            }
           
View Full Code Here

Examples of org.jboss.seam.example.seamdiscs.model.Artist

    private void assertArtist(DataModel dataModel, int row, String name)
    {
        dataModel.setRowIndex(row);
        Object rowData = dataModel.getRowData();
        assert rowData instanceof Artist;
        Artist artist = (Artist) rowData;
        assert name.equals(artist.getName());
    }
View Full Code Here

Examples of org.jboss.seam.example.seamdiscs.model.Artist

      {
         return new Band();
      }
      else
      {
         return new Artist();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.