Package nexj.core.meta

Examples of nexj.core.meta.MetadataCompoundValidationException


            XMLMetadataHelper.validateName(sArgName);
            event.addArgument((arg == null) ? new Argument(sArgName) : arg);
         }
      }

      MetadataCompoundValidationException e = null;

      for (Iterator/*<Argument>*/ itr = argMap.valueIterator(); itr.hasNext();)
      {
         if (e == null)
         {
            e = new MetadataCompoundValidationException();
         }

         e.addException(
            new MetadataException("err.meta.argLookup", new Object[]{itr.next(), event}));
      }

      if (e != null)
      {
View Full Code Here


    * @param iterator An iterator over the set of messages on which to
    * call finish().
    */
   public static void finishMessagePartMappings(Iterator iterator)
   {
      MetadataCompoundValidationException comp = null;

      while (iterator.hasNext())
      {
         Message message = (Message)iterator.next();
         CompositeMessagePart root = message.getRoot();
         MessagePartMapping mapping = root.getMapping();

         if (mapping != null)
         {
            try
            {
               mapping.finish(root);
            }
            catch (UncheckedException ex)
            {
               if (comp == null)
               {
                  comp = new MetadataCompoundValidationException();
               }

               message.addException(comp, ex);
            }
         }
View Full Code Here

   public void validate(ContextMetadata metadata, ExceptionHolder warnings)
   {
      super.validate(metadata, warnings);

      Lookup stateMap = new HashTab();
      MetadataCompoundValidationException eh = null;

      if (m_lastVersion != null && !m_metadata.getVersion().equals(m_lastVersion.getName()))
      {
         eh = new MetadataCompoundValidationException();

         MetadataValidationException e = new MetadataValidationException("err.upgrade.lastVersion",
            new Object[]{m_lastVersion.getName(), m_metadata.getVersion()});

         setProperties(e);
         eh.addException(e);
      }

      // roll back the state and validate that can undo each step and state is still valid
      for (VersionUpgrade version = m_lastVersion; version != null; version = version.getPrev())
      {
View Full Code Here

      }

      // validate that all specified hints are valid/defined
      if (m_hintSet != null && !m_hintSet.isEmpty())
      {
         MetadataCompoundValidationException eh = null;

         for (Iterator/*<String>*/ itr = m_hintSet.iterator(); itr.hasNext();)
         {
            String sHint = itr.next().toString();

View Full Code Here

   /**
    * @see nexj.core.meta.upgrade.VersionUpgrade#apply(nexj.core.meta.upgrade.UpgradeState)
    */
   public void apply(UpgradeState state)
   {
      MetadataCompoundValidationException eh = null;

      for (int i = 0, n = getStepCount(); i < n; ++i)
      {
         try
         {
View Full Code Here

   /**
    * @see nexj.core.meta.upgrade.VersionUpgrade#undo(nexj.core.meta.upgrade.UpgradeState)
    */
   public void undo(UpgradeState state)
   {
      MetadataCompoundValidationException eh = null;

      for (int i = getStepCount() - 1; i >= 0; --i)
      {
         RelationalSchemaUpgradeStep step = getStep(i);

View Full Code Here

    */
   public void validate(
      RelationalSchema schema, Table table, DataSourceAdapter[] adapterArray)
      throws MetadataException
   {
      MetadataCompoundValidationException eh = null;

      // validate every statement
      for (int i = 0, nCount = getStatementCount(); i < nCount; ++i)
      {
         try
View Full Code Here

    */
   public void validate(
      RelationalSchema schema, Table table, DataSourceAdapter[] adapterArray)
      throws MetadataException
   {
      MetadataCompoundValidationException eh = null;

      // validate every script
      for (int i = 0, nCount = getScriptCount(); i < nCount; ++i)
      {
         try
View Full Code Here

   /**
    * @see nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeStep#apply(nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeState)
    */
   public void apply(RelationalSchemaUpgradeState state)
   {
      MetadataCompoundValidationException eh = null;

      // check for duplicate starting point for definition of adapter support
      if (state.containsAdapter(m_adapter))
      {
         MetadataValidationException e = new MetadataValidationException(
View Full Code Here

   /**
    * @see nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeStep#undo(nexj.core.meta.persistence.sql.upgrade.RelationalSchemaUpgradeState)
    */
   public void undo(RelationalSchemaUpgradeState state)
   {
      MetadataCompoundValidationException eh = null;

      // check for duplicate definition of adapter support starting point
      if (state.containsAdapter(m_adapter))
      {
         state.removeAdapter(m_adapter, this);
View Full Code Here

TOP

Related Classes of nexj.core.meta.MetadataCompoundValidationException

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.