Package nexj.core.meta

Examples of nexj.core.meta.MetadataException


      if (oldMessage != null && message != oldMessage)
      {
         rsmMapping.m_xsdTypeMessageMap.put(sNamespaceURI, sXSDType, oldMessage);

         throw new MetadataException("err.meta.integration.xml.duplicateXSDTypeMapping", new Object[]
         {
            sNamespaceURI, sXSDType, message, oldMessage
         });
      }
   }
View Full Code Here


                     sName);
            }

            if (uriNamespace == null)
            {
               throw new MetadataException("err.meta.integration.xml.missingURI",
                  new Object[]{part.getFullPath()});
            }

            namespace.setURI(uriNamespace.getURI());
            namespace.setSchema(uriNamespace.getSchema());
         }

         if (namespace.getSchema() != null)
         {
            addNamespace(XMLNamespace.XSI_NAME, XMLNamespace.XSI, null, false);

            break;
         }
      }

      // Propagate namespaces from this mapping to the base recursively
      propagateNamespaces();

      super.finish(part);

      if (m_sXSDType != null)
      {
         String sURI = (m_namespace == null) ? null : m_namespace.getURI();

         addXSDTypeMessage(sURI, m_sXSDType, m_message);
      }

      if (baseMessage != null)
      {
         RootXMLMessagePartMapping baseRootMapping = (RootXMLMessagePartMapping)baseMessage.getRoot().getMapping();

         if (baseRootMapping.m_schemaResourceLookupDeque != null)
         {
            if (m_schemaResourceLookupDeque == null)
            {
               m_schemaResourceLookupDeque = new LinkedHashTab();
            }

            for (Lookup.Iterator itr = baseRootMapping.m_schemaResourceLookupDeque.iterator(); itr.hasNext(); )
            {
               String sSrcURL = (String)itr.next();
               URL dst = (URL)itr.getValue();
               URL oldDst = (URL)m_schemaResourceLookupDeque.put(sSrcURL, dst);

               if (oldDst != null && !oldDst.equals(dst))
               {
                  throw new MetadataException("err.meta.integration.xml.schemaResourceMismatch",
                     new Object[]{sSrcURL, m_message.getName(), baseRootMapping.m_message.getName()});
               }
            }
         }
      }
View Full Code Here

         m_hintSet = new HashHolder/*<String>*/(2);
      }

      if (!m_hintSet.add(sHint))
      {
         throw new MetadataException("err.meta.tableHintDup", new Object[]{sHint, getName()});
      }
   }
View Full Code Here

   {
      verifyNotReadOnly();

      if (m_hintSet == null || !m_hintSet.remove(sHint))
      {
         throw new MetadataException("err.meta.tableHintDup", new Object[]{sHint, getName()});
      }
   }
View Full Code Here

      verifyNotReadOnly();
      m_nPriority = nPriority;
     
      if (nPriority < 0 || nPriority > 9)
      {
         throw new MetadataException("err.meta.integration.mq.priority",
            new Object[]{Primitive.createInteger(nPriority)});
      }
   }
View Full Code Here

   {
      verifyNotReadOnly();

      if (!(replyQueue instanceof MessageQueue))
      {
         throw new MetadataException("err.meta.integration.mq.replyQueueChannel", new Object[]{getName()});
      }
     
      m_replyQueue = (MessageQueue)replyQueue;
   }
View Full Code Here

            {
               Table table = m_schema.findTable(sName);

               if (table != null && table != this)
               {
                  throw new MetadataException("err.meta.tableDup",
                     new Object[]{sName, m_schema.getDataSource().getName()});
               }
            }

            if (!isTemporary() && m_schema.m_tableMap.remove(m_sName) != null)
            {
               m_schema.m_tableMap.put(sName, this);
            }
         }
      }

      super.setName(sName);

      m_sPrefix = null;

      if (sName == null)
      {
         m_sQuotedName = null;
         m_sTableName = null;
         m_sOwnerName = null;
      }
      else
      {
         int i = sName.lastIndexOf('.');

         if (i < 0 && (m_nType == MANAGED || m_nType == QUERY || m_nType == VIEW))
         {
            String sPrefix = m_schema.getPrefix();

            if (sPrefix != null)
            {
               i = sPrefix.lastIndexOf('.');

               if (i < sPrefix.length() - 1)
               {
                  m_sPrefix = sPrefix.substring(i + 1);
               }

               sName = sPrefix + sName;
               i = sName.lastIndexOf('.');
            }
         }

         if (i > 0)
         {
            m_sOwnerName = sName.substring(0, i);
         }
         else
         {
            m_sOwnerName = null;
         }

         m_sTableName = sName.substring(i + 1);
         m_sQuotedName = getFullName(null);

         if (m_nType != ASPECT && m_sTableName.length() > MAX_NAME_LENGTH)
         {
            if ((m_schema == null || m_schema.isPortable()) && !isTemporary())
            {
               throw new MetadataException("err.meta.tableNameLength",
                  new Object[]{m_sTableName, Primitive.createInteger(MAX_NAME_LENGTH)});
            }
         }
      }
   }
View Full Code Here

   {
      verifyNotReadOnly();

      if (errorQueue != null && !(errorQueue instanceof MessageQueue))
      {
         throw new MetadataException("err.meta.integration.mq.errorQueueChannel", new Object[]{getName()});
      }

      setErrorQueue((MessageQueue)errorQueue);
   }
View Full Code Here

   {
      verifyNotReadOnly();
     
      if (sSubscription != null && !m_bBroadcast)
      {
         throw new MetadataException("err.meta.integration.mq.subscription",
            new Object[]{m_sName});
      }

      m_sSubscription = sSubscription;
   }
View Full Code Here

      if (sName != null)
      {
         if (m_schema != null && m_schema.isPortable())
         {
            throw new MetadataException("err.meta.portableTableAlias", new Object[]{m_sName});
         }

         if (m_nType != EXTERNAL)
         {
            throw new MetadataException("err.meta.nonExternalTableAlias", new Object[]{m_sName});
         }

         m_sQuotedName = sName;
         m_sPrefix = null;
      }
View Full Code Here

TOP

Related Classes of nexj.core.meta.MetadataException

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.