Examples of UniqueException


Examples of com.starflow.wf.core.key.UniqueException

      value = new CacheValue();
      value.setMinVal(code + 1);
    } catch (EmptyResultDataAccessException e) {
      logger.debug(name + " 没有找到记录");
    } catch (Exception e) {
      throw new UniqueException(name + " 获取主键失败");
    }
    return value;
  }
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

    Validate.argNotNull(categorie, "categorie");

    if (this.getByCode(categorie.getCodeCategorie(), categorie.getSexe(),
        categorie.getDiscipline()) != null)
    {
      throw new UniqueException(
          "Il existe déjà une catégorie ayant le même code, "
              + "sexe et discipline. ");
    }

    final Categorie categorieDb = new Categorie(this.domainModel);
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

  {
    Validate.argNotNull(discipline, "discipline");

    if (this.getByNom(discipline.getNom()) != null)
    {
      throw new UniqueException("Le nom de la discipline existe déjà. ");
    }

    try
    {
      if (!this.disciplines.add(discipline))
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

      Validate.argNotNull(personne, "personne");
     
      if(!this.isUsernameUsed(username)){
        compte = personne.getComptes().createCompte(username, password, false);        
      }
      else throw new UniqueException("Le nom d'usager existe déjà");
     
    }catch (final ActionException e) {
      throw new SystemeException(e);
    }   
         
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

    if(!this.isUsernameUsed(username)){
     
      personne = this.createPersonne(nom, prenom, adresse, ville, codePostal, telephone, dateNaissance, sexe, province, pays, courriel, nationalite);
      compte = this.createCompte(username, password, personne);        
    }
    else throw new UniqueException("Le nom d'usager existe déjà");
   
   
    return !compte.equals(null);
  }
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

    Validate.argNotNull(course.getDiscipline(), "discipline");
    Validate.argNotNull(course.getDate(), "date");

    if (this.getCourseParNom(course.getEvenement(), course.getNom()) != null)
    {
      throw new UniqueException("Le nom de la course doit être unique. ");
    }

    final Course courseDb = new Course(this.domainModel);
    courseDb.setNom(course.getNom());
    courseDb.setDate(course.getDate());
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

    Validate.argNotNull(evenement.getDateDebut(), "dateDebut");
    Validate.argNotNull(evenement.getDateFin(), "dateFin");

    if (this.getEvenementParNo(evenement.getSaison(), evenement.getNo()) != null)
    {
      throw new UniqueException(
          "Le numéro de la course doit être unique. ");
    }

    final Evenement evenementDb = new Evenement(this.domainModel);
View Full Code Here

Examples of net.fqsc.inscriptions.commun.UniqueException

  {
    Validate.argNotNull(saison.getNom(), "nom");

    if (this.getSaisonParAnnee(saison.getAnnee()) != null)
    {
      throw new UniqueException(
          "Il doit y avoir seulement une saison par année. ");
    }

    final Saisons saisons = (Saisons) this.domainModel.getEntry("Saisons");
    final Saison saisonDb = new Saison(this.domainModel);
View Full Code Here

Examples of org.xrace.util.UniqueException

  public void add(final CartItem item,
      final RabaisEvenementService rabaisEvenementService)
  {
    if (this.containsItem(item))
    {
      throw new UniqueException("Cet item est déjà dans le panier");
    }
    else
    {
      items.add(item);
View Full Code Here

Examples of org.xrace.util.UniqueException

        plaque, categorie);
    if (infoSaison != null)
    {
      if (!infoSaison.getPersonne().equals(personne))
      {
        throw new UniqueException(
            "Plaque déjà assignée à une autre personne "
                + "dans la catégorie. ");
      }
    }
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.