Examples of supportsTransactions()


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

    protected abstract Dataset create() ;
   
    @Test public void transaction_err_00()
    {
        Dataset ds = create() ;
        assertTrue(ds.supportsTransactions()) ;
    }
   
    @Test public void transaction_01()
    {
        Dataset ds = create() ;
View Full Code Here

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

        MGraph graph = tcManager.createMGraph(new UriRef(ontologyURI));
        JenaGraph jenaGraph = new JenaGraph(graph);
        Model model = ModelFactory.createModelForGraph(jenaGraph);
        model.read(bais, ontologyURI);

        if (model.supportsTransactions()) {
            model.commit();
        }
    }

    private void deleteModel(String ontologyURI) {
View Full Code Here

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

        //aSource = new TransactionalDataSource(new JenaDataSource(aModel));
      }
      else {
        // only TDB needs special treatment, otherwise use the default implementations

        if (aModel.supportsTransactions()) {
          aSource = new JenaDataSourceSupportingTransactions(aModel);
        }
        else {
          aSource = new JenaDataSource(aModel);
        }
View Full Code Here

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

                loadFiles(aModel,
                          theMap.get(FILES).toString(),
                          theMap.containsKey(BASE) ? theMap.get(BASE).toString() : "");
            }

            if (aModel.supportsTransactions()) {
                aSource = new JenaDataSourceSupportingTransactions(aModel);
            }
            else {
                aSource = new JenaDataSource(aModel);
            }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreFeatures.supportsTransactions()

        features.isKeyOrdered = false;
        features.isDistributed = true;
        features.hasLocalKeyPartition = false;
        assertNotNull(features);
        assertFalse(features.supportsScan());
        assertFalse(features.supportsTransactions());
        assertTrue(features.isDistributed());
    }


}
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

    this.conn = conn;
    this.coding = coding;
    DatabaseMetaData dm = null;
    try{
      dm = conn.getMetaData();
      supportTransaction = dm.supportsTransactions();
      infs = conn.getClass().getInterfaces();
      if(infs==null || infs.length==0)
         infs = IC;
    }catch(Exception e){}
  }
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

               log.info("The maximum SQL statement length is not defined in JDBC meta data, we set it to " + this.maxStatementLength);
               first = false;
            }
         }

         if (!dbmd.supportsTransactions()) {
            String dbName = dbmd.getDatabaseProductName();
            log.severe("the database '" + dbName + "' does not support transactions, unpredicted results may happen");
         }

         if (!dbmd.supportsBatchUpdates()) {
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

         log.info("max connections      : " + metaData.getMaxConnections());
         log.info("max statement length : " + metaData.getMaxStatementLength());
         log.info("max nr. of statements: " + metaData.getMaxStatements());
         log.info("max tablename length : " + metaData.getMaxTableNameLength());
         log.info("url                  : " + metaData.getURL());
         log.info("support for trans.   : " + metaData.supportsTransactions());
         log.info("support transactions : " + getIsolationLevel(conn));
         log.info("--------------- DUMP OF METADATA FOR THE DB END  ---------------------");

      }
      catch (XmlBlasterException ex) {
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

               log.info("The maximum SQL statement length is not defined in JDBC meta data, we set it to " + this.maxStatementLength);
               first = false;
            }
         }

         if (!dbmd.supportsTransactions()) {
            String dbName = dbmd.getDatabaseProductName();
            log.severe("the database '" + dbName + "' does not support transactions, unpredicted results may happen");
         }

         if (!dbmd.supportsBatchUpdates()) {
View Full Code Here

Examples of java.sql.DatabaseMetaData.supportsTransactions()

         log.info("max connections      : " + metaData.getMaxConnections());
         log.info("max statement length : " + metaData.getMaxStatementLength());
         log.info("max nr. of statements: " + metaData.getMaxStatements());
         log.info("max tablename length : " + metaData.getMaxTableNameLength());
         log.info("url                  : " + metaData.getURL());
         log.info("support for trans.   : " + metaData.supportsTransactions());
         log.info("support transactions : " + getIsolationLevel(conn));
         log.info("--------------- DUMP OF METADATA FOR THE DB END  ---------------------");
         success = true;
      }
      catch (Exception ex) {
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.