Package org.objectweb.speedo.api

Examples of org.objectweb.speedo.api.SpeedoRuntimeException


            + destclassName + ": " + pnc);
        logger.log(BasicLevel.DEBUG,
          "getPNameManager(" + destclassName + ") ==>" + pnc);
        return pnc;
      } catch (PException e) {
        throw new SpeedoRuntimeException(
          "ERROR during the assignation of the PNameManager of the reference "
          + refFieldName + " of the class " + sourceclassName, e);
      }
    }
View Full Code Here


        PNamingContext pnc = (PNamingContext) findPNameManager(path, classLoader, null, hints);
        logger.log(BasicLevel.DEBUG,
          "getPNameManager(" + path + ") ==>" + pnc);
        return pnc;
      } catch (PException e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
      }
    }
View Full Code Here

        logger.log(BasicLevel.DEBUG, "\tbinder=" + pb);
        gcm.setPBinder(pb);
        pb.setPClassMapping(gcm);
        return gcm;
      } catch (Exception e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
      }
    }
View Full Code Here

        PNamingContext pnc = getPNamingContext(destclassName, classLoader);
        logger.log(BasicLevel.DEBUG, "\tpnc=" + pnc);
        ((PClassMappingCtrl) gcm).setPNameCoder(pnc);
        return gcm;
      } catch (Exception e) {
        throw new SpeedoRuntimeException(e.getMessage(), e);
      }
    }
View Full Code Here

                    }
                } else {
            try {
              h = (HomeItf) jf.getPClassMapping(o.getClass());
            } catch (PException e) {
              throw new SpeedoRuntimeException(e);
                    }
        }
      }
            if (h == null) {
                logger.log(BasicLevel.WARN, "Impossible to find the home");
View Full Code Here

  public Object encodeAbstract(PName pn) throws PExceptionNaming, UnsupportedOperationException {
    try {
      return nmf.encode(pn);
    } catch (PException e) {
      throw new SpeedoRuntimeException(
        "Impossible to encode the identifier :" + pn);
    }
  }
View Full Code Here

                             ClassLoader classLoader,
                             PClassMapping pcm,
                             String hints
                             ) throws PException {
    if (hints == null || hints.length() == 0)
      throw new SpeedoRuntimeException(
        "Impossible to get the PNamingContext of the class " + className
        + ": Specified PNameManager class is not valid: " + hints);
    PNameManager pnm = (PNameManager) pnamingContexts.get(className);
    if (pnm != null && (hints.indexOf(NamingManagerHelper.POLYMORPHIC_PNC) == -1))
      return pnm;
View Full Code Here

      AbstractGenClassHome gcHome = (AbstractGenClassHome)
        Class.forName(cn).newInstance();
      gcHome.init(_pcm, _tpm, _pmf, path);
      return gcHome;
    } catch (Exception e) {
      throw new SpeedoRuntimeException(e);
    }
  }
View Full Code Here

            "Speedo Meta Object Sequence " + o + " loaded");
        } else if (o instanceof SpeedoIndex) {
          //SpeedoIndex si = (SpeedoIndex) o;
          //TODO handle speedo index
        } else
          throw new SpeedoRuntimeException("Umanaged Jorm/Speedo Meta Object " + o);
      }
      if (m.getClass(className) == null) {
        throw new SpeedoRuntimeException(
          "Internal ERROR: No meta information found about the persistent class '"
          + className + "' in the file '" + fn + "'.");
      }
    }
  }
View Full Code Here

   */
  protected String getGCMClassName(String mapperName) {
    if (mapperName.startsWith("rdb")) {
      return "org.objectweb.jorm.mapper.rdb.genclass.RdbGenClassMapping";
    } else {
      throw new SpeedoRuntimeException("Umanaged mapper: " + mapperName);
    }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.api.SpeedoRuntimeException

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.