Package org.boco.seamwebappgen.exception

Examples of org.boco.seamwebappgen.exception.MissingSelectionAttributeException


            rel.setMasterDetail(false);

            String selectionAttributes[] = relAnnotation.selectionAttributes();

            if (selectionAttributes.length == 0)
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            if (selectionAttributes[0].equals(""))
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            checkSelectionAttributes(beanName, rel, selectionAttributes);

            rel.setRelatedAttributes(Utils.makeShowAttributeVector(rel.getToBeanName(), selectionAttributes, this));
          }

          if ( (relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.POPUP) || relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.CRUDPOPUP) ) && rel.isUsed())
          {
            rel.setListBox(false);
            rel.setMasterDetail(false);

            if (relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.CRUDPOPUP))
              rel.setCRUD(true);
           
           
            String selectionAttributes[] = relAnnotation.selectionAttributes();

            if (selectionAttributes.length == 0)
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            checkSelectionAttributes(beanName, rel, selectionAttributes);

            rel.setRelatedAttributes(Utils.makeShowAttributeVector(rel.getToBeanName(), selectionAttributes, this));
View Full Code Here


            rel.setMasterDetail(false);

            String selectionAttributes[] = relAnnotation.selectionAttributes();

            if (selectionAttributes.length == 0)
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            if (selectionAttributes.length > 1)
              throw new TooManySelectionAttributesException(beanName, rel.getName());

            if (selectionAttributes[0].equals(""))
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            rel.setRelatedAttributes(Utils.makeShowAttributeVector(rel.getToBeanName(), selectionAttributes, this));
          }

          if ( (relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.POPUP) || relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.CRUDPOPUP)) && rel.isUsed())
          {
            rel.setListBox(false);
            rel.setMasterDetail(false);
           
            if (relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.CRUDPOPUP))
              rel.setCRUD(true);

            String selectionAttributes[] = relAnnotation.selectionAttributes();

            if (selectionAttributes.length == 0)
              throw new MissingSelectionAttributeException(beanName, rel.getName());

            rel.setRelatedAttributes(Utils.makeShowAttributeVector(rel.getToBeanName(), selectionAttributes, this));
          }
          if (relAnnotation.type().equals(org.boco.seamwebappgen.annotations.RelationshipImplementationType.MASTER_DETAIL))
          {
View Full Code Here

   *
   */
  public void checkSelectionAttributes(String beanName, Relationship rel, String selectionAttributes[]) throws Exception
  {
    if (selectionAttributes.length == 0)
      throw new MissingSelectionAttributeException(beanName, rel.getName());

    // Verifica esistenza selectionAttributes
    for (String attr : selectionAttributes)
    {
      if (attr.equals(""))
        throw new MissingSelectionAttributeException(beanName, rel.getName());

      if (attr.contains("."))
      {
        Vector<String> relations = Utils.splitRelationships(attr);

View Full Code Here

TOP

Related Classes of org.boco.seamwebappgen.exception.MissingSelectionAttributeException

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.