Examples of Catalogue


Examples of de.unigoettingen.sub.search.opac.Catalogue

         */
        coc = catalogue;
        if (this.coc == null) {
            throw new IOException("Catalogue not found: " + coc.getTitle() + ", please check Configuration in goobi_opac.xml");
        }
        Catalogue cat =
                new Catalogue(this.coc.getDescription(), this.coc.getAddress(), this.coc.getPort(), this.coc.getCbs(), this.coc.getDatabase());
        if (verbose) {
            Helper.setMeldung(null, Helper.getTranslation("CatalogueUsage") + ": ", this.coc.getDescription());
        }
        GetOpac myOpac = new GetOpac(cat);
        myOpac.setData_character_encoding(this.coc.getCharset());
View Full Code Here

Examples of org.objectweb.speedo.pobjects.inheritance.ejboo.Catalogue

    final int NB_ARTICLE = 10;
    final int CATLAOGUE_SIZE = 2;
    final int MARCHE_SIZE = 2;
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    Catalogue cat = null;
    int nbCat = 0;
    Marche mar= null;
    int nbMar = 0;
    Article a;
    for(int idArt=0; idArt<NB_ARTICLE; idArt++) {
      if ((idArt / CATLAOGUE_SIZE) == nbCat) {
        cat = new Catalogue();
        pm.makePersistent(cat);
        nbCat ++;
      }
      if ((idArt / MARCHE_SIZE) == nbMar) {
        mar = new Marche();
        pm.makePersistent(mar);
        nbMar ++;
      }
      if ((idArt % 2) == 0) { //pair
        a = new Service(idArt);
      } else { //impair
        a = new Materiel(idArt);
      }
      pm.makePersistent(a);
      a.setCatalogue(cat);
      mar.getArticles().add(a);
    }
    pm.currentTransaction().commit();

    a = null;
    cat = null;
    mar = null;
    pm.evictAll();

    Article a2 = null;
   
    Extent extent = pm.getExtent(Catalogue.class, true);
    Iterator it = extent.iterator();
    while(it.hasNext()) {
      cat = (Catalogue) it.next();
      logger.log(BasicLevel.DEBUG, "Catalogue " + cat.getId());
      Collection arts = cat.getArticles();
      Iterator articles = arts.iterator();
      while(articles.hasNext()) {
        a2 = a;
        a = (Article) articles.next();
        logger.log(BasicLevel.DEBUG, "\tArticle " + a.getId());
View Full Code Here

Examples of org.objectweb.speedo.pobjects.inheritance.filterOutOfPK.rdbsequence.Catalogue

    final int NB_ARTICLE = 10;
    final int CATLAOGUE_SIZE = 2;
    final int MARCHE_SIZE = 2;
    PersistenceManager pm = pmf.getPersistenceManager();
    pm.currentTransaction().begin();
    Catalogue cat = null;
    int nbCat = 0;
    Marche mar= null;
    int nbMar = 0;
    Article a;
    for(int idArt=0; idArt<NB_ARTICLE; idArt++) {
      if ((idArt / CATLAOGUE_SIZE) == nbCat) {
        cat = new Catalogue();
        pm.makePersistent(cat);
        nbCat ++;
      }
      if ((idArt / MARCHE_SIZE) == nbMar) {
        mar = new Marche();
        pm.makePersistent(mar);
        nbMar ++;
      }
      if ((idArt % 2) == 0) { //even
        a = new Service(idArt);
      } else { //uneven
        a = new Materiel(idArt);
      }
      pm.makePersistent(a);
      a.setCatalogue(cat);
      mar.getArticles().add(a);
    }
    pm.currentTransaction().commit();

    a = null;
    cat = null;
    mar = null;
    pm.evictAll();

    Extent extent = pm.getExtent(Catalogue.class, true);
    Iterator it = extent.iterator();
    while(it.hasNext()) {
      cat = (Catalogue) it.next();
      logger.log(BasicLevel.DEBUG, "Catalogue " + cat.getId());
      Collection arts = cat.getArticles();
      Iterator articles = arts.iterator();
      while(articles.hasNext()) {
        a = (Article) articles.next();
        logger.log(BasicLevel.DEBUG, "\tArticle " + a.getId());
        Collection mars = a.getMarches();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.relations.ni_ejboo.Catalogue

        final int NB_ARTICLE = 10;
        final int CATLAOGUE_SIZE = 2;
        final int MARCHE_SIZE = 2;
        PersistenceManager pm = pmf.getPersistenceManager();
        pm.currentTransaction().begin();
        Catalogue cat = null;
        int nbCat = 0;
        Marche mar= null;
        int nbMar = 0;
        Article a;
        for(int idArt=0; idArt<NB_ARTICLE; idArt++) {
            if ((idArt / CATLAOGUE_SIZE) == nbCat) {
                cat = new Catalogue();
                pm.makePersistent(cat);
                nbCat ++;
            }
            if ((idArt / MARCHE_SIZE) == nbMar) {
                mar = new Marche();
                pm.makePersistent(mar);
                nbMar ++;
            }
            a = new Article(idArt);
            pm.makePersistent(a);
            a.setCatalogue(cat);
            mar.getArticles().add(a);
        }
        pm.currentTransaction().commit();

        a = null;
        cat = null;
        mar = null;
        pm.evictAll();

        Extent extent = pm.getExtent(Catalogue.class, true);
        Iterator it = extent.iterator();
        while(it.hasNext()) {
            cat = (Catalogue) it.next();
            logger.log(BasicLevel.DEBUG, "Catalogue " + cat.getId());
            Collection arts = cat.getArticles();
            Iterator articles = arts.iterator();
            while(articles.hasNext()) {
                a = (Article) articles.next();
                logger.log(BasicLevel.DEBUG, "\tArticle " + a.getId());
                Collection mars = a.getMarches();
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.