Examples of create()


Examples of org.jamesii.perfdb.jdbc.PerformanceType.create()

  // Performances need Application implementation
  public Performance getEntity() throws Exception {
    RuntimeConfiguration rtConfig = (new RTConfigTest()).getConnectedEntity();
    rtConfig.create();
    PerformanceType pm = (new PerfMeasureTest()).getConnectedEntity();
    pm.create();
    return new Performance(null, pm, 0.5);
  }
}

Examples of org.jamesii.perfdb.jdbc.RuntimeConfiguration.create()

  @Override
  @Deprecated
  // Performances need Application implementation
  public Performance getEntity() throws Exception {
    RuntimeConfiguration rtConfig = (new RTConfigTest()).getConnectedEntity();
    rtConfig.create();
    PerformanceType pm = (new PerfMeasureTest()).getConnectedEntity();
    pm.create();
    return new Performance(null, pm, 0.5);
  }
}

Examples of org.jamesii.perfdb.jdbc.SimulationProblem.create()

  @Override
  public Feature getEntity() throws Exception {

    SimulationProblem sp = (new SimProblemTest()).getConnectedEntity();
    sp.create();
    FeatureType f = (new FeatureTest()).getConnectedEntity();
    f.create();
    return new Feature(sp, f, null);
  }

Examples of org.jasig.portal.tools.dbloader.ISchemaExport.create()

            PortalShell.LOGGER.info("");
            PortalShell.LOGGER.info("Hibernate Create DDL: " + databaseQualifier);

            outputFile = StringUtils.trimToNull(outputFile);

            schemaExportBean.create(export, outputFile, true);
           
            this.versionedDataUpdater.postInitDatabase(databaseQualifier);
        }
        catch (Exception e) {
            throw new RuntimeException(target + " for " + databaseQualifier + " failed", e);

Examples of org.jayasoft.woj.server.data.ModuleDescriptorDao.create()

  }

    private ModuleDescriptor newModuleDescriptor(UAK uak, String mod_org, String mod_name, String mod_rev, Long creator_id, int visibility) {
        ModuleDescriptorDao dao = WOJServer.getInstance().getDataService().getModuleDescriptorDao();
        long mrid = getNewMrid(uak);
        return (ModuleDescriptor)dao.create(mrid, creator_id, mod_org, mod_name, mod_rev, Visibility.fromInt(visibility));
    }

  private synchronized long getNewMrid(UAK uak) {
        if (_lastUsedMrid == -1 || _lastUsedMrid >= _reservedUntil) {
            WOJServer.getInstance().getDataService().getModuleDescriptorDao().getTransactionTemplate().execute(new TransactionCallbackWithoutResult() {

Examples of org.jbehave.core.embedder.executors.ExecutorServiceFactory.create()

        embedder.useClassLoader(classLoader);
        embedder.useEmbedderControls(embedderControls());
        if (executorsClass != null) {
            ExecutorServiceFactory executorServiceFactory = classLoader.newInstance(ExecutorServiceFactory.class,
                    executorsClass);
            embedder.useExecutorService(executorServiceFactory.create(embedder.embedderControls()));
        }
        embedder.useEmbedderMonitor(embedderMonitor());
        if (!metaFilters.isEmpty()) {
            embedder.useMetaFilters(metaFilters);
        }

Examples of org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsServiceFactory.create()

    private static SockJsServiceFactory factoryFor(final SockJsService service, final SockJsConfig config) {
        final SockJsServiceFactory factory = mock(SockJsServiceFactory.class);
        when(service.config()).thenReturn(config);
        when(factory.config()).thenReturn(config);
        when(factory.create()).thenReturn(service);
        return factory;
    }

    private static EmbeddedChannel channelForService(final SockJsServiceFactory service) {
        return new TestEmbeddedChannel(

Examples of org.jboss.aerogear.unifiedpush.jpa.dao.impl.JPAPushApplicationDao.create()

        this.installationDao.setEntityManager(entityManager);

        // create the PushApplication and a few variants:
        PushApplication pa = new PushApplication();
        pa.setName("PushApplication");
        pushApplicationDao.create(pa);

        AndroidVariant av = new AndroidVariant();
        av.setGoogleKey("Key");
        av.setName("Android");
        av.setDeveloper("me");

Examples of org.jboss.aerogear.unifiedpush.jpa.dao.impl.JPAVariantDao.create()

        av.setGoogleKey("Key");
        av.setName("Android");
        av.setDeveloper("me");
        // stash the ID:
        this.androidVariantID = av.getVariantID();
        variantDao.create(av);

        SimplePushVariant sp = new SimplePushVariant();
        sp.setDeveloper("me");
        sp.setName("SimplePush");
        // stash the ID:

Examples of org.jboss.aesh.cl.builder.OptionBuilder.create()

            if (input.getShortName() != InputComponents.DEFAULT_SHORT_NAME)
            {
               optionBuilder.shortName(input.getShortName());
            }
            ProcessedOption option = optionBuilder.create();
            if (ARGUMENTS_INPUT_NAME.equals(input.getName()))
            {
               parameter.setArgument(option);
            }
            else
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.