Package org.objectweb.jorm.api

Examples of org.objectweb.jorm.api.PMapper


    }
  }

  protected void initDataStructure(boolean clean) throws Exception {
    String[] classNameToInit = getClassNamesToInit();
    PMapper mapper = getMapper(getPMF());
    PersistenceManager pm = getPMF().getPersistenceManager();
    for(int i=0; i<classNameToInit.length; i++) {
      pm.getObjectIdClass(Class.forName(classNameToInit[i]));
      if (clean) {
        PMapCluster pmc = mapper.getPMapCluster(classNameToInit[i]);
        assertNotNull("No PMapCluster for the class: " + classNameToInit[i], pmc);
        pmc.deleteData();
      }
    }
  }
View Full Code Here


      //Assign the connection factory to the mapper
      logger.log(BasicLevel.INFO, LocaleHelper.getSpeedoRB().getString("connfact")
          + LocaleHelper.getSpeedoRB().getString("jndinm") + cfName
          + LocaleHelper.getSpeedoRB().getString("factfound") + cf
          + LocaleHelper.getSpeedoRB().getString("mappernm") + mapperName);
      PMapper mapper = (PMapper) component.getFcInterface("mapper");
      mapper.setMapperName(mapperName);
      mapper.setConnectionFactory(cf);

    } else {
      JDBCMapperAttributes jdbcma = (JDBCMapperAttributes) ma;

      //deprecated properties
View Full Code Here

                getPMF());
        server.registerMBean(c, new ObjectName("speedo:name=connection"));
    }
   
    public void addPMFMBeans() throws Exception {
        PMapper mapper = (PMapper)
      FractalHelper.getSubComponent(
            speedo, AbstractSpeedo.PRIMITIVE_MAPPER_PATH, logger)
            .getFcInterface("mapper");
        PMF p = new PMF(
                getPoolAttributes(AbstractSpeedo.PM_POOL_PATH),
View Full Code Here

TOP

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

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.