Examples of Persistence


Examples of ch.hortis.sonar.jpa.Persistence

      webInterfaceService = null;
    }
  }

  private Persistence getPersistence() throws MojoExecutionException {
    Persistence persistence;
    try {
      persistence = Persistence.create(getJdbcData());
    } catch (PersistenceException e) {
      throw new MojoExecutionException("DB model exception occured", e);
    }
View Full Code Here

Examples of com.arconsis.android.datarobot.config.Persistence

  @Override
  public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) {
    if (!roundEnv.processingOver()) {
      try {
        Persistence persistence = checkPersistenceAnnotation(roundEnv);
        if (persistence == null) {
          return true;
        }

        AndroidManifest androidManifest = androidManifestAccess.load();
View Full Code Here

Examples of com.jada.xml.persistence.Persistence

  public void export() throws Exception {
    AnnotationConfiguration configuration = new AnnotationConfiguration();
    configuration.setProperty("hibernate.hbm2ddl.auto","create");
    PersistenceLoader persistenceLoader = PersistenceLoader.getInstance();
    Persistence persistence = persistenceLoader.getPersistence();
    for (String className : persistence.getPersistenceUnit().getClassNames()) {
      Class<?> c = Class.forName(className);
      configuration.addAnnotatedClass(c);
    }
   
    configuration.setProperty("hibernate.dialect", dialectName);
View Full Code Here

Examples of com.sun.java.xml.ns.persistence.Persistence

        return JavaScope.CLASSPATH.equals(scope) && "/META-INF/persistence.xml".equals(path) || "/WEB-INF/persistence.xml".equals(path);
    }

    @Override
    public Iterable<? extends FileDescriptor> scan(InputStream item, String path, Scope scope, Scanner scanner) throws IOException {
        Persistence persistence;
        try {
            Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
            persistence = unmarshaller.unmarshal(new StreamSource(item), Persistence.class).getValue();
        } catch (JAXBException e) {
            throw new IOException("Cannot read model descriptor.", e);
        }
        Store store = getStore();
        PersistenceDescriptor persistenceDescriptor = store.create(PersistenceDescriptor.class);
        persistenceDescriptor.setVersion(persistence.getVersion());
        // Create model units
        for (PersistenceUnit persistenceUnit : persistence.getPersistenceUnit()) {
            PersistenceUnitDescriptor persistenceUnitDescriptor = store.create(PersistenceUnitDescriptor.class);
            persistenceUnitDescriptor.setName(persistenceUnit.getName());
            PersistenceUnitTransactionType transactionType = persistenceUnit.getTransactionType();
            if (transactionType != null) {
                persistenceUnitDescriptor.setTransactionType(transactionType.name());
View Full Code Here

Examples of elephantdb.persistence.Persistence

            this.progressable = progressable;
            localManager = new LocalElephantManager(fileSystem, args.spec, LocalElephantManager.getTmpDirs(conf));
        }

        private Persistence retrieveShard(int shardIdx) throws IOException {
            Persistence lp = null;

            if (lps.containsKey(shardIdx)) {
                lp = lps.get(shardIdx);
            } else {
                String localShard = localManager.downloadRemoteShard("" + shardIdx, null);
View Full Code Here

Examples of hexenschach.gameplay.Persistence

    System.setErr(fileStream);
    } catch (FileNotFoundException fnfe) {
    } catch (SecurityException se) {
    }*/
   
    p = new Persistence();
    gui = new GUI(p);
    checkDisplayResolution();
    gui.start();
  }
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.Persistence

                }

                this.addMandatoryAttributes( orm, e.getAttributes(), this.getClassOutline( model, e.getClazz() ) );
            }

            final Persistence p = new Persistence();
            final Persistence.PersistenceUnit u = new Persistence.PersistenceUnit();
            u.setName( this.persistenceUnitName );
            p.setVersion( PERSISTENCE_VERSION );
            p.getPersistenceUnit().add( u );

            this.customizePersistenceUnit( model.getModel().getCustomizations(), u );

            for ( Entity e : orm.getEntity() )
            {
View Full Code Here

Examples of org.apache.geronimo.jee.persistence.Persistence

        namingPattern.setVersion("resourceref-pattern-version");
        resourceRef.setPattern(namingPattern);
        webApp.getResourceRef().add(resourceRef);

        // set the Service or Persistence
        Persistence persistence = persistenceFactory.createPersistence();
        persistence.setVersion("persistence-version");
        Persistence.PersistenceUnit persistenceUnit = persistenceFactory.createPersistencePersistenceUnit();
        persistenceUnit.setName("persistence-name");
        persistenceUnit.setDescription("persistence-description");
        persistenceUnit.setExcludeUnlistedClasses(true);
        persistenceUnit.setJtaDataSource("persistence-jtadatasource");
        persistenceUnit.setNonJtaDataSource("persistence-nonjtadatasource");
        persistenceUnit.setProvider("persistence-provider");
        Persistence.PersistenceUnit.Properties properties = persistenceFactory.createPersistencePersistenceUnitProperties();
        Persistence.PersistenceUnit.Properties.Property property = persistenceFactory.createPersistencePersistenceUnitPropertiesProperty();
        property.setName("persistence-property-name");
        property.setValue("persistence-property-value");
        properties.getProperty().add(property);
        persistenceUnit.setProperties(properties);
        persistenceUnit.setTransactionType(PersistenceUnitTransaction.RESOURCE_LOCAL);
        persistenceUnit.getClazz().add("persistence-clazz");
        persistenceUnit.getJarFile().add("persistence-jarfile");
        persistenceUnit.getMappingFile().add("persistence-mappingfile");
        persistence.getPersistenceUnit().add(persistenceUnit);
        webApp.getServiceOrPersistence().add(persistence);

        // set the Service Ref
        ServiceRef serviceRef = namingFactory.createServiceRef();
        serviceRef.setServiceRefName("serviceref-refname");
View Full Code Here

Examples of org.apache.muse.core.Persistence

       
        PersistenceDefinition persistenceDef = getPersistenceDefinition();
       
        if (persistenceDef != null)
        {
            Persistence persistence = persistenceDef.newInstance();
            capability.setPersistence(persistence);
        }
       
        return capability;
    }
View Full Code Here

Examples of org.apache.openejb.jee.Persistence

                    pu.setProperties(new Persistence.PersistenceUnit.Properties());
                }
                pu.getProperties().getProperty().add(prop);
            }

            Persistence persistence = new Persistence();
            persistence.setVersion(info.getPersistenceXMLSchemaVersion());
            persistence.getPersistenceUnit().add(pu);

            try {
                FileWriter writer = new FileWriter(file);
                JAXBContext jc = JAXBContextFactory.newInstance(Persistence.class);
                Marshaller marshaller = jc.createMarshaller();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.