Examples of begin()


Examples of com.googlecode.objectify.ObjectifyFactory.begin()

    public void prepare() throws Exception {
        request.setAttribute(GUI_SERVICE, getGuiService());
        request.setAttribute(CURRENT_PAGE, getCurrentUrl());
        ObjectifyFactory objectifyFactory = getGuiService().getObjectifyFactory();
        ObjectifyOpts opts = new ObjectifyOpts().setSessionCache(true);
        Objectify objectify = objectifyFactory.begin(opts);
        request.setAttribute(OBJECTIFY, objectify);
        this.objectify = objectify;

        if (request.getParameter("errorMessages") !=null) {
            List<String> errorMessages = new ArrayList<String>() ;
View Full Code Here

Examples of com.googlecode.objectify.test.util.TestObjectifyFactory.begin()

    // Now we need to read it using the non-zip annotation
    TestObjectifyFactory fact2 = new TestObjectifyFactory();
    fact2.register(HasSerialize.class);

    HasSerialize fetched = fact2.begin().load().type(HasSerialize.class).id(hs.id).now();
    assert fetched.numbers.equals(hs.numbers);
  }

  @Test
  public void testSerializeUnzipButReadZip() throws Exception
View Full Code Here

Examples of com.hazelcast.core.Transaction.begin()

            if (dc != null) {
                curi = dc.getContributionURI();
            }
        }
        Transaction txn = hazelcastInstance.getTransaction();
        txn.begin();
        try {
            localEndpoints.put(endpointURI, endpoint);
            endpointMap.put(endpointURI, endpoint);
            endpointOwners.put(localMemberAddr, endpointURI);
            if (curi != null) {
View Full Code Here

Examples of com.hp.hpl.jena.db.ModelRDB.begin()

            if ( outPath.startsWith( "jdbc:" ) )
              {
              if ( dataName.startsWith( "jdbc:" ) )// We need to backup the old data
                  new JDBCLoader().load( bkpPath ).add( input );
              ModelRDB dbm = (ModelRDB) new JDBCLoader().load( outPath );
              dbm.begin().remove( input ).add( repaired ).commit();
              }
            else
              {
                File outFile = new File( outPath );
                if ( outFile.exists() ) // Don't overwrite the old file if we can help it!
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.inspectors.SparqlDrivenInspector.begin()

    @Test public void testPrefixInspectorDeclaresPrefixes()
        {
        Report r = new Report();
        Resource root = resourceInModel( "root rdf:type some" );
        SparqlDrivenInspector s = new SparqlDrivenInspector( root );
        s.begin( r, ontModel() );
        List<Property> predicates = r.getPredicateRegister().getRegisteredPredicates();
        assertEquals( eyeResourceSet( "sparqlRequireFailed sparqlProhibitFailed" ), new HashSet<Property>( predicates ) );
        }
   
    @Test public void testReportsSPOViolation()
View Full Code Here

Examples of com.hp.hpl.jena.eyeball.inspectors.VocabularyInspector.begin()

    @Test public void testDoesNotReportOpenNamespace()
        {
        Resource root = resourceInModel( "root eye:openNamespace open:/" );
        OntModel assume = ontModel( "open:/cabbage P Y" );
        VocabularyInspector ins = new VocabularyInspector( root );
        ins.begin( r, assume );
        ins.inspectURI( r, S, resource( "open:/rhubarb" ) );
        assertIsoModels( model(), r.model() );
        }
    }
View Full Code Here

Examples of com.hp.hpl.jena.graph.TransactionHandler.begin()

    public void testHasTransactions()
    {
        Graph g = getGraph();
        TransactionHandler th = g.getTransactionHandler();
        th.transactionsSupported();
        try { th.begin(); } catch (UnsupportedOperationException x) {}
        try { th.abort(); } catch (UnsupportedOperationException x) {}
        try { th.begin(); th.commit(); } catch (UnsupportedOperationException x) {}
        /* */
        Command cmd = new Command()
        { @Override
View Full Code Here

Examples of com.hp.hpl.jena.query.Dataset.begin()

    Dataset dataset = TDBFactory.createDataset(location);
   
    Dataset dataset1 = TDBFactory.createDataset(location);
   
    if ( bracketWithReader )
        dataset1.begin(ReadWrite.READ) ;
   
    for (int i = 0; i < TOTAL; i++) {
      List<String> lastProcessedUris = new ArrayList<String>();
      for (int j = 0; j < 10*i; j++) {
        String lastProcessedUri = "http://test.net/xmlns/test/1.0/someUri" + j;
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Model.begin()

                        // create store                
                        store = StoreFactory.create(desc, sdbConn);
       
                        // save model
                        Model m = SDBFactory.connectDefaultModel(store) ;              
                        m.begin();
                        m.removeAll();
                        m.add(model);
                        m.commit();

                    } catch (Exception e) {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.core.Transactional.begin()

       
        for ( Iterator<String> iter = requestFiles.iterator() ; iter.hasNext() ; )
        {
            String filename = iter.next();
            try {
                transactional.begin(ReadWrite.WRITE) ;
                execOneFile(filename, graphStore) ;
                transactional.commit() ;
            } finally { transactional.end() ; }
        }
       
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.