Package nexj.core.persistence

Examples of nexj.core.persistence.PersistenceException


    */
   public void initialize() throws Exception
   {
      if (m_sDataSource == null)
      {
         throw new PersistenceException("err.persistence.sqlConnectionProperties");
      }
     
      if (m_sDataSource.indexOf(':') < 0)
      {
         if (m_sDataSource.length() > 0 && m_sDataSource.charAt(0) == '/')
View Full Code Here


      {
         OID oid = instance.getOID();

         if (srcKey.isObjectKey() && nCount != oid.getCount())
         {
            throw new PersistenceException("err.rpc.oidPartCount",
               new Object[]{m_instance.getMetaclass().getName()});
         }

         for (int i = 0; i < nCount; ++i)
         {
View Full Code Here

   {
      Message retVal = (Message)getMessageRegistry().get(typeDef);
     
      if (retVal == null)
      {
         throw new PersistenceException("err.persistence.messageNotFoundForElementTypeDefinition", new Object[] {typeDef.getName()});
      }
     
      return retVal;
   }
View Full Code Here

               instance.setOID(tobj.getOID());
            }

            if (instance.getOID() == null)
            {
               throw new PersistenceException("err.persistence.requiredOID", new Object[]{instance.getMetaclass().getName()});
            }
         }
      }
   }
View Full Code Here

                  if (locking == null || ObjUtil.equal(locking, instance.getValue(nLockingOrdinal)))
                  {
                     if (!bError)
                     {
                        PersistenceException ex = new PersistenceException("err.persistence.virtual.lockingNotModified",
                           new Object[]{sLockingAttributeName, instance.getMetaclass().getName()});

                        ex.setValue("result", tobj);

                        throw ex;
                     }
                  }
                  else
View Full Code Here

    */
   public Component getComponent()
   {
      if (m_component == null)
      {
         throw new PersistenceException("err.persistence.dataSourceDisabled", new Object[]{getName()});
      }

      return m_component;
   }
View Full Code Here

         }
         else
         {
            if (bSelectUnbatchable)
            {
               throw new PersistenceException("err.persistence.virtual.updateNotCovered",
                  new Object[]
                  {
                     appendAttrSet(new StringBuilder(), updateSet, m_virtualMapping.getMetaclass()).toString(),
                     m_virtualMapping.getMetaclass().getName()
                  }
View Full Code Here

                        uow.addReplicationFragment(this, ((DataSourceFragment)itr.next()).getName());
                     }
                  }
                  else
                  {
                     throw new PersistenceException("err.persistence.broadcastFragment",
                        new Object[]{m_metaclass.getName(), m_context.getFragmentName()});
                  }
               }
            }
         }
View Full Code Here

                  if (version != null)
                  {
                     if (!metadata.getNamespace().equals(version.getNamespace()))
                     {
                        throw new PersistenceException("err.persistence.storageNamespace",
                           new Object[]{version.getNamespace(), dataSource.getName(),
                              sFragment, metadata.getNamespace()});
                     }

                     if (!metadata.getVersion().equals(version.getVersion()))
                     {
                        throw new PersistenceException("err.persistence.storageVersion",
                           new Object[]{version.getVersion(), dataSource.getName(),
                           sFragment, metadata.getVersion(), metadata.getNamespace()});
                     }
                  }
               }
View Full Code Here

            os.flush();
            m_obj = aos.toByteArray();
         }
         catch (Exception e)
         {
            throw new PersistenceException("err.runtime.cacheSerialize", e);
         }
      }
View Full Code Here

TOP

Related Classes of nexj.core.persistence.PersistenceException

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.