Examples of create()


Examples of org.fenixedu.academic.domain.accounting.PaymentCodeMapping.PaymentCodeMappingBean.create()

        final PaymentCodeMappingBean bean = getRenderedObject("paymentCodeMappingBean");
        request.setAttribute("paymentCodeMappingBean", bean);

        try {
            bean.create();
        } catch (final DomainException e) {
            addActionMessage(request, e.getKey(), e.getArgs());
            return mapping.findForward("createPaymentCodeMapping");
        }

Examples of org.fenixedu.academic.domain.phd.PhdProgram.create()

    public ActionForward addPhdProgramPeriod(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        try {
            PhdProgram phdProgram = getDomainObject(request, "phdProgramId");
            PhdProgramContextPeriodBean bean = getRenderedObject("phdProgramContextPeriodBean");
            phdProgram.create(bean);

        } catch (PhdDomainOperationException e) {
            addErrorMessage(request, e.getKey(), e.getArgs());
            return addPhdProgramPeriodInvalid(mapping, form, request, response);
        }

Examples of org.ff4j.FF4j.create()

        // Initialize with empty store
        FF4j ff4j = new FF4j();

        // Dynamically register new features
        ff4j.create("f1").enable("f1");

        // Assertions
        assertTrue(ff4j.exist("f1"));
        assertTrue(ff4j.check("f1"));
    }

Examples of org.ff4j.store.FeatureStoreMongoDB.create()

    public FongoRule fongoRule = new FongoRule(false);

    @Override
    protected FeatureStore initStore() {
        FeatureStoreMongoDB storeMongoDB = new FeatureStoreMongoDB(fongoRule.getDB().getCollection("ff4j"));
        storeMongoDB.create(new Feature("AwesomeFeature", true, "some desc"));
        // First
        storeMongoDB.create(new Feature("first", true, "description", null, Arrays.asList("USER")));
        // Second
        storeMongoDB.create(new Feature("second", false, "description", "GRP0", Arrays.asList("USER")));
        // Third

Examples of org.ff4j.store.InMemoryFeatureStore.create()

    }

    @Test
    public void testUnitFeatureInitialization() {
        InMemoryFeatureStore imfs = new InMemoryFeatureStore();
        imfs.create(new Feature("default", true, "grp1", "desc", null, new PonderationStrategy()));
        Assert.assertEquals(1, imfs.readAll().size());
    }

    @Test
    public void testUnitFeatureInitialization2() {

Examples of org.freeplane.features.map.MapReader.NodeTreeCreator.create()

      final MapReader mapReader = mapController.getMapReader();
      final NodeTreeCreator nodeTreeCreator = mapReader.nodeTreeCreator(target.getMap());
      nodeTreeCreator.setHint(Hint.MODE, Mode.CLIPBOARD);
      for (int i = 0; i < textLines.length; ++i) {
        try {
          final NodeModel newModel = nodeTreeCreator.create(new StringReader(textLines[i]));
          newModel.removeExtension(FreeNode.class);
          final boolean wasLeft = newModel.isLeft();
          mapController.insertNode(newModel, target, asSibling, isLeft, wasLeft != isLeft);
        }
        catch (final XMLException e) {

Examples of org.fto.jthink.transaction.TransactionFactory.create()

    /* 将事务管理器加入到资源管理器中 */
    resManager.setResource(TransactionManager.class.getName(), transactionManager);
   
    /* 返回在fto-jthink.xml中配置的JDBC事务 */
    TransactionFactory transactionFactory = transactionManager.getTransactionFactory("SampleTransaction");
    JDBCTransaction transaction  = (JDBCTransaction)transactionFactory.create();
    /* 将此事务处理对象加入到事务管理器中 */
    transactionManager.addTransaction(JDBCTransaction.class.getName(), transaction);
    resManager.setResource(JDBCTransaction.class.getName(), transaction);
   
    return resManager;

Examples of org.fusesource.hawtdb.api.MultiIndexFactory.create()

            t.printStackTrace();
           
            logger.log(Level.WARNING, "Could not open or create log db page for key {0}", key);

            index = (SortedIndex<String, Object>) multiIndexFactory.create(key, indexFactory);

          }

          String uuid  = UUID.randomUUID().toString().replaceAll("[\\-]+", "");

Examples of org.g4studio.core.id.generator.DefaultIDGenerator.create()

    DefaultSequenceGenerator sequenceGenerator = TimeRollingSequenceGenerator
        .getDayRollingSequenceGenerator();
    sequenceGenerator.setMinValue(1000000);
    sequenceGenerator.setMaxValue(9999999);
    generator.setSequenceGenerator(sequenceGenerator);
    System.out.println(generator.create());
    logger.debug("dddddddddddd");

    // net.jcreate.e3.commons.id.sequence.DefaultSequenceGenerator
    // sequenceGenerator =
    // new net.jcreate.e3.commons.id.sequence.DefaultSequenceGenerator();

Examples of org.gdal.gdal.Driver.Create()

{
    public static void main(String args[])
    {
        gdal.AllRegister();
        Driver memDriver = gdal.GetDriverByName("MEM");
        Dataset ds1 = memDriver.Create("mem", 100, 100);
        ds1.SetGeoTransform(new double[] { 2, 0.01, 0, 49, 0, -0.01 });
        SpatialReference sr1 = new SpatialReference();
        sr1.ImportFromEPSG(4326);

        Dataset ds2 = memDriver.Create("mem2", 100, 100);
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.