Package com.sun.jdo.api.persistence.model

Examples of com.sun.jdo.api.persistence.model.ModelException


        }
      }
    }
    else
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "mapping.element.null_argument"));          // NOI18N
    }
  }
View Full Code Here


  private void setTableInternal (MappingTableElement table)
    throws ModelException
  {
    if (table == null)
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "mapping.element.null_argument"));          // NOI18N
    }

    _table = table;
View Full Code Here

            if (remove1 != null)
              key.add(index, remove1);
            else if (remove2 != null)
              refKey.add(index, remove2);

            throw new ModelException(I18NHelper.getMessage(
              getMessages(),
              "mapping.element.element_not_removed",     // NOI18N
              pairName));
          }
View Full Code Here

          // this part was blank -- do we want an error or skip here?
        }
      }
      else
      {
        throw new ModelException(I18NHelper.getMessage(getMessages(),
          "mapping.element.null_argument"));        // NOI18N
      }
    }
  }
View Full Code Here

                    messages,
                    "EXC_InvalidRelationshipMapping"// NOI18N
                    failedItem,
                    accessor);
            logger.log(Logger.SEVERE, msg);
            throw new ModelException(msg);
        }
    }
View Full Code Here

          throw new ModelVetoException(e);
        }
      }
      else
      {
        throw new ModelException(I18NHelper.getMessage(getMessages(),
          "mapping.column.column_defined", columnName))// NOI18N
      }
    }
    else
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "mapping.element.null_argument"));          // NOI18N
    }
  }
View Full Code Here

  {
    if (column instanceof ColumnPairElement)
    {
      if (!getAssociatedColumns().isEmpty())
      {
        throw new ModelException(I18NHelper.getMessage(getMessages(),
          "mapping.column.associated_columns_defined",     // NOI18N
          NameUtil.getRelativeMemberName(
          column.getName().getFullName())));
      }

      super.addColumn(column);
    }
    else
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "mapping.column.column_invalid",       // NOI18N
        NameUtil.getRelativeMemberName(
        column.getName().getFullName())));
    }
  }
View Full Code Here

      {
        fireVetoableChange(PROP_ASSOCIATED_COLUMNS, null, null);

        if (!getAssociatedColumns().remove(columnName))
        {
          throw new ModelException(
            I18NHelper.getMessage(getMessages(),
            "mapping.element.element_not_removed",    // NOI18N
            columnName));
        }
View Full Code Here

        // this part was blank -- do we want an error or skip here?
      }
    }
    else
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "mapping.element.null_argument"));        // NOI18N
    }
  }
View Full Code Here

      {
        fireVetoableChange(PROP_KEY_COLUMNS, null, null);

        if (!getKey().remove(columnName))
        {
          throw new ModelException(
            I18NHelper.getMessage(getMessages(),
            "mapping.element.element_not_removed",    // NOI18N
            columnName));
        }
View Full Code Here

TOP

Related Classes of com.sun.jdo.api.persistence.model.ModelException

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.