Package org.objectweb.jorm.api

Examples of org.objectweb.jorm.api.PClassMapping


      return pcm.getPBinder();
    return getPClassMapping(clazz).getPBinder();
  }

  public PBinder getPBinder(String classname, ClassLoader cl) throws PException {
    PClassMapping pcm = mapper.lookup(classname);
    if (pcm != null)
      return pcm.getPBinder();
    return getPClassMapping(getClass(classname, cl)).getPBinder();
  }
View Full Code Here


  public PClassMapping getGenClassMapping(String path) {
    return JormPathHelper.getPClassMapping(path, mapper);
  }

  public PClassMapping getPClassMapping(Class clazz) throws PException {
    PClassMapping pcm = mapper.lookup(clazz.getName());
    if (pcm == null) {
      pcm = getPClassMapping(clazz.getName(),
        clazz.getClassLoader());
    }
    return pcm;
View Full Code Here

  public PNamingContext getPNamingContext(String classname, ClassLoader cl) throws PException {
    return getPNamingContext(getClass(classname, cl));
  }

  public PNamingContext getPNamingContext(Class clazz) throws PException {
    PClassMapping pcm = getPClassMapping(clazz);
    String className = clazz.getName();
    String path = JormPathHelper.getPath(className);
    Properties classProperties = getClassProperties(clazz);
    String jormConf = classProperties.getProperty(path);
    if (jormConf != null) {
View Full Code Here

   * @return the java.util.Properties instance describing the configuration
   * properties of the given persistent class.
   * @throws PException if an error occurs during the method invocation.
   */
  private Properties getClassProperties(Class clazz) throws PException {
      PClassMapping pcm = getPClassMapping(
              clazz.getName(), clazz.getClassLoader());
      return ((HomeItf) pcm).getClassProperties();
  }
View Full Code Here

TOP

Related Classes of org.objectweb.jorm.api.PClassMapping

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.