Examples of begin()


Examples of com.hp.hpl.jena.tdb.StoreConnection.begin()

    // Basics.
   
    @Test public void trans_01()
    {
        StoreConnection sConn = getStoreConnection() ;
        DatasetGraphTxn dsg = sConn.begin(ReadWrite.READ) ;
        dsg.end() ;
    }
   

    @Test public void trans_02()
View Full Code Here

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction.begin()

    public static void main(String... argv)
    {
        DatasetGraphTransaction dsg = (DatasetGraphTransaction)TDBFactory.createDatasetGraph() ;

        // Start READ transaction.
        dsg.begin(ReadWrite.READ) ;
       
        try
        {
            // Do some queries
            String sparqlQueryString1 = "SELECT (count(*) AS ?count) { ?s ?p ?o }" ;
View Full Code Here

Examples of com.hp.mwtests.performance.products.TxWrapper.begin()

    public void work()
    {
        try
        {
            TxWrapper tx = getTxWrapper();
            tx.begin(); // Top level begin

            // enlist two participants (resource) two-phase commit

            tx.add(DummyResource.create());
            tx.add(DummyResource.create());
View Full Code Here

Examples of com.mojang.minecraft.render.ShapeRenderer.begin()

            GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
            GL11.glTranslatef(-1.5F, 0.5F, 0.5F);
            GL11.glScalef(-1.0F, -1.0F, -1.0F);
            int var20 = var6.load("/terrain.png");
            GL11.glBindTexture(3553, var20);
            var7.begin();
            Block.blocks[var15].renderFullbright(var7);
            var7.end();
            GL11.glPopMatrix();
            if(var8.count[var12] > 1) {
               var23 = "" + var8.count[var12];
View Full Code Here

Examples of com.mysql.clusterj.core.store.ScanFilter.begin()

    @Override
    public void filterCmpValue(QueryExecutionContext context,
            ScanOperation op) {
        try {
            ScanFilter filter = op.getScanFilter(context);
            filter.begin();
            filterCmpValue(context, op, filter);
            filter.end();
        } catch (Exception ex) {
            throw new ClusterJException(
                    local.message("ERR_Get_NdbFilter"), ex);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocument.begin()

      db.hide(new ORecordId());
      Assert.fail();
    } catch (ODatabaseException ex) {
    }
    try {
      db.begin();
      Assert.fail();
    } catch (ODatabaseException ex) {
    }
    try {
      db.begin(OTransaction.TXTYPE.NOTX);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.begin()

    long totalAccounts = db.countClusterElements("Account");

    String json = "{ \"@class\": \"Account\", \"type\": \"Residence\", \"street\": \"Piazza di Spagna\"}";

    db.begin(TXTYPE.OPTIMISTIC);
    for (int g = 0; g < 1000; g++) {
      ODocument doc = new ODocument(db, "Account");
      doc.fromJSON(json);
      doc.field("nr", g);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.begin()

    ODatabaseFlat db1 = new ODatabaseFlat(url);
    db1.open("admin", "admin");

    long rec = db1.countClusterElements("binary");

    db1.begin();

    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    db1.rollback();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecord.begin()

  public Object execute(Map<Object, Object> iArgs) {
    final ODatabaseRecord database = getDatabase();
    boolean txbegun = database.getTransaction() == null || !database.getTransaction().isActive();

    if (txbegun)
      database.begin();

    try {
      final Object result = super.execute(iArgs);

      if (txbegun)
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.begin()

  public static void requestTransaction(){
    if (Logger.isDebugEnabled()) Logger.debug("Request Transaction: transaction count -before-: " + tranCount.get());
    ODatabaseRecordTx db = getConnection();
    if (!isInTransaction()){
      if (Logger.isTraceEnabled()) Logger.trace("Begin transaction");
      db.begin();
    }
    tranCount.set(tranCount.get().intValue()+1);
    if (Logger.isDebugEnabled()) Logger.debug("Request Transaction: transaction count -after-: " + tranCount.get());
  }
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.