Examples of beginTransaction()


Examples of org.jbpm.persistence.db.DbPersistenceService.beginTransaction()

        if (jbpmJsfContext.hasJbpmContext()) {
            final JbpmContext jbpmContext = jbpmJsfContext.getJbpmContext();
            DbPersistenceService dbPersistenceService = (DbPersistenceService) jbpmContext.getServices().getPersistenceService();
            log.fine("Committing transaction");
            dbPersistenceService.endTransaction();
            dbPersistenceService.beginTransaction();
        }
    }

    private static final Logger log = Logger.getLogger("org.jbpm.jsf.core.phase.JbpmPhaseListener");
}
View Full Code Here

Examples of org.mule.api.transaction.TransactionFactory.beginTransaction()

        {
            throw new TransactionException(CoreMessages.createStaticMessage("Single resource transaction has already a resource bound"));
        }
        TransactionFactory transactionFactory = muleContext.getTransactionFactoryManager().getTransactionFactoryFor(key.getClass());
        this.unbindTransaction();
        this.delegate = transactionFactory.beginTransaction(muleContext);
        delegate.bindResource(key, resource);
    }

    @Override
    public void setRollbackOnly() throws TransactionException
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.beginTransaction()

  }

  protected void quietTableDelete(String tableName)
  {
    PersistenceContext pc = getProcessServer().getEngine().getPersistenceContextProvider().obtainPersistenceContext();
    pc.beginTransaction();
    try
    {
      pc.executeUpdateOrDelete("DELETE FROM " + tableName);
      pc.commitTransaction();
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.pgsnapshot.common.DatabaseContext.beginTransaction()

      try {
        DatabaseCapabilityChecker capabilityChecker;
      IndexManager indexManager;
      String[] wayColumns;
     
      dbCtx.beginTransaction();
     
      capabilityChecker = new DatabaseCapabilityChecker(dbCtx);
      new SchemaVersionValidator(dbCtx.getJdbcTemplate(), preferences)
        .validateVersion(PostgreSqlVersionConstants.SCHEMA_VERSION);
     
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

                return true;
            }
        }, SqlJetTransactionMode.WRITE);
      
           
        db.beginTransaction(SqlJetTransactionMode.WRITE);
        try {           
            String createTableQuery = "CREATE TABLE " + TABLE_NAME + " (" + SECOND_NAME_FIELD + " TEXT NOT NULL PRIMARY KEY , " + FIRST_NAME_FIELD + " TEXT NOT NULL, " + DOB_FIELD + " INTEGER NOT NULL)";
            String createFirstNameIndexQuery = "CREATE INDEX " + FULL_NAME_INDEX + " ON " + TABLE_NAME + "(" +  FIRST_NAME_FIELD + "," + SECOND_NAME_FIELD + ")";
            String createDateIndexQuery = "CREATE INDEX " + DOB_INDEX + " ON " + TABLE_NAME + "(" +  DOB_FIELD + ")";
            System.out.println();
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

        System.out.println();
        System.out.println(db.getSchema());
        System.out.println(db.getOptions());       
       
        // insert rows:
        db.beginTransaction(SqlJetTransactionMode.WRITE);
        try {
            Calendar calendar = Calendar.getInstance();
            ISqlJetTable table = db.getTable(TABLE_NAME);
            calendar.clear();
            calendar.set(1981, 4, 19);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

        // getting all rows in table, sorted by PK.       
        System.out.println();
        System.out.println(">All employees in order defined by PK (" + table.getPrimaryKeyIndexName() + "):");
        System.out.println();
        db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
        try {
            printRecords(table.order(table.getPrimaryKeyIndexName()));
        } finally {
            db.commit();
        }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

        // getting all rows in table, sorted by PK.       
        System.out.println();
        System.out.println(">All employees in order defined by " + DOB_INDEX + ", reversed:");
        System.out.println();
        db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
        try {
            printRecords(table.order(table.getPrimaryKeyIndexName()).reverse());
        } finally {
            db.commit();
        }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

        // getting all rows in table, sorted by index.       
        System.out.println();
        System.out.println(">All employees in order defined by " + FULL_NAME_INDEX + " :");
        System.out.println();

        db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
        try {
            printRecords(table.order(FULL_NAME_INDEX));
        } finally {
            db.commit();
        }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.SqlJetDb.beginTransaction()

        // getting rows in table with exact indexed field value.
        System.out.println();
        System.out.println(">Alexanders:");
        System.out.println();
        db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
        try {
            printRecords(table.lookup(FULL_NAME_INDEX, "Alexander"));
        } finally {
            db.commit();
        }
View Full Code Here
TOP
Copyright © 2015 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.