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

   */
  public void setUpdateAction (int action) throws ModelException
  {
    if ((action < NONE_ACTION) || (action > AGGREGATE_ACTION))
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "jdo.relationship.update_action_invalid", action))// NOI18N
    }

    getRelationshipImpl().setUpdateAction(action);
  }
View Full Code Here

   */
  public void setDeleteAction (int action) throws ModelException
  {
    if ((action < NONE_ACTION) || (action > AGGREGATE_ACTION))
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "jdo.relationship.delete_action_invalid", action))// NOI18N
    }

    getRelationshipImpl().setDeleteAction(action);
  }
View Full Code Here

   */
  public void setLowerBound (int lowerBound) throws ModelException
  {
    if ((lowerBound > getUpperBound()) || (lowerBound < 0))
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "jdo.relationship.lower_cardinality_invalid"));    // NOI18N
    }

    getRelationshipImpl().setLowerBound(lowerBound);
  }
View Full Code Here

   */
  public void setUpperBound (int upperBound) throws ModelException
  {
    if ((upperBound < getLowerBound()) || (upperBound <= 0))
    {
      throw new ModelException(I18NHelper.getMessage(getMessages(),
        "jdo.relationship.upper_cardinality_invalid"));    // NOI18N
    }

    getRelationshipImpl().setUpperBound(upperBound);
  }
View Full Code Here

      if (!hasPrefix || (!nameSuffix.equalsIgnoreCase("Key") &&   // NOI18N
        !nameSuffix.equalsIgnoreCase(".OID")          // NOI18N
        && !nameSuffix.equalsIgnoreCase("$OID")))        // NOI18N
      {
        throw new ModelException(I18NHelper.getMessage(getMessages(),
          "jdo.class.key_class_invalid",             // NOI18N
          new Object[]{name, className}));
      }
    }
View Full Code Here

                    messages,
                    "EXC_InvalidRelationshipMapping"// NOI18N
                    failedItem,
                    accessor);
            logger.log(Logger.SEVERE, msg);
            throw new ModelException(msg);
        }
    }
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.