Examples of create()


Examples of org.lilyproject.repository.api.Link.LinkBuilder.create()

        if (args != null && args.length() > 0) {
            argsFromString(args, builder, args /* does not matter, should never be invalid */);
        }

        return builder.create();
    }

    private static void argsFromString(String args, LinkBuilder builder, String link) {
        String[] variantStringParts = args.split(",");
        for (String part : variantStringParts) {

Examples of org.lilyproject.repository.api.RecordBuilder.create()

            builder.field(new QName(NS2, "match" + i), id + "_" + "match" + i + "_orig");
            builder.field(new QName(NS, "nvmatch" + i), id + "_" + "nvmatch" + i + "_orig");
        }
        builder.field(previewTag.getName(), new Long(1));

        builder.create();
    }

    @Test
    public void changeIndexUpdaterMultipleTimes() throws Exception {
        changeIndexUpdater("indexerconf1.xml");

Examples of org.lilyproject.repository.api.RecordTypeBuilder.create()

    @Test
    public void testRecordTypeBuilderBasics() throws Exception {
        RecordTypeBuilder builder = typeManager.recordTypeBuilder();
        try {
            builder.create();
            fail("Exception expected since name of recordType is not specified");
        } catch (Exception expected) {
        }
        QName rtName = new QName("builderNS", "builderName");
        builder.name(rtName);

Examples of org.lilyproject.repository.api.Repository.create()

        recordType = typeMgr.createRecordType(recordType);

        Record record = repository.newRecord();
        record.setRecordType(typeName);
        record.setField(fieldName, "foo");
        record = repository.create(record);

        assertEquals("foo-create-hook", record.getField(fieldName));

        record = repository.read(record.getId());
        assertEquals("foo-create-hook", record.getField(fieldName));

Examples of org.lilyproject.repository.model.api.RepositoryModel.create()

    public void createRepository(String repositoryName) {
        try {
            RepositoryModel model = new RepositoryModelImpl(getZooKeeper());
            if (!model.repositoryExistsAndActive(repositoryName)) {
                model.create(repositoryName);
                model.waitUntilRepositoryInState(repositoryName, RepositoryDefinition.RepositoryLifecycleState.ACTIVE,
                        100000);
            }
        } catch (Exception ex) {
            throw new RuntimeException(ex);

Examples of org.lilyproject.repository.model.impl.RepositoryModelImpl.create()

    public void createRepository(String repositoryName) {
        try {
            RepositoryModel model = new RepositoryModelImpl(getZooKeeper());
            if (!model.repositoryExistsAndActive(repositoryName)) {
                model.create(repositoryName);
                model.waitUntilRepositoryInState(repositoryName, RepositoryDefinition.RepositoryLifecycleState.ACTIVE,
                        100000);
            }
        } catch (Exception ex) {
            throw new RuntimeException(ex);

Examples of org.locationtech.geogig.api.GeogigTransaction.create()

        } catch (TimeoutException e) {
            Throwables.propagate(e);
        }
        try {
            // Copy original refs
            t.create();
        } finally {
            // Unlock the repository
            refDatabase().unlock();
        }
        // Return the transaction

Examples of org.locationtech.udig.document.source.ShpDocFactory.create()

    public void testCreateDocument() {
       
        final ShpDocFactory factory = new ShpDocFactory(null);
       
        DocumentInfo info = new DocumentInfo(LABEL, DESCRIPTION, INFO, ContentType.FILE, false, Type.LINKED);
        IDocument doc = factory.create(info);
        assertNotNull("Doc is null.", doc);
        assertTrue("Doc's type is not expected.", doc instanceof FileLinkedDocument);
       
        info = new DocumentInfo(LABEL, DESCRIPTION, INFO, ContentType.FILE, false, Type.ATTACHMENT);
        doc = factory.create(info);

Examples of org.logicalcobwebs.cglib.proxy.Enhancer.create()

        Enhancer e = new Enhancer();
        e.setNamingPolicy(NAMING_POLICY);
        e.setInterfaces(getInterfaces(delegate.getClass(), def));
        e.setCallback(callback);
        e.setClassLoader(ProxyFactory.class.getClassLoader());
        return e.create();
    }

    /**
     * Gets the real Statement that we got from the delegate driver. This is no longer
     * necessary and only provided for backwards compatability.

Examples of org.maqetta.server.IVResource.create()

    /*
     * Load the initial user files extension point and copy the files to the projects root
     */
   
    if(basePath!=null && !basePath.equals("")){
      project.create(basePath + "/");
    }

    if(initFiles){
      List<?> extensions = ServerManager.getServerManager().getExtensions(IDavinciServerConstants.EXTENSION_POINT_INITIAL_USER_FILES, IDavinciServerConstants.EP_TAG_INITIAL_USER_FILE);
          for (Iterator<?> iterator = extensions.iterator(); iterator.hasNext();) {
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.