Changeset 80:28bce4140e1f


Ignore:
Timestamp:
03/27/12 16:03:11 (5 years ago)
Author:
Babis Nikolaou <charnik@…>
Branch:
default
Message:

added comments and correct author information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • monetdb/src/main/java/org/openrdf/sail/monetdb/MonetDBConnectionFactory.java

    r79 r80  
    66package org.openrdf.sail.monetdb; 
    77 
    8 import static java.sql.Connection.TRANSACTION_READ_COMMITTED; 
    98import static java.sql.Connection.TRANSACTION_SERIALIZABLE; 
    109import info.aduna.concurrent.locks.Lock; 
     
    2019import org.openrdf.sail.generaldb.evaluation.GeneralDBEvaluationFactory; 
    2120import org.openrdf.sail.generaldb.evaluation.GeneralDBQueryBuilderFactory; 
     21import org.openrdf.sail.generaldb.managers.TransTableManager; 
     22import org.openrdf.sail.generaldb.managers.TripleManager; 
    2223import org.openrdf.sail.generaldb.optimizers.GeneralDBQueryOptimizer; 
    2324import org.openrdf.sail.generaldb.optimizers.GeneralDBSelectQueryOptimizerFactory; 
     25import org.openrdf.sail.generaldb.schema.ValueTableFactory; 
    2426import org.openrdf.sail.helpers.DefaultSailChangedEvent; 
    2527import org.openrdf.sail.monetdb.evaluation.MonetDBEvaluationFactory; 
     
    2729import org.openrdf.sail.monetdb.util.MonetDBLockManager; 
    2830import org.openrdf.sail.rdbms.exceptions.RdbmsException; 
    29 import org.openrdf.sail.generaldb.managers.TransTableManager; 
    30 import org.openrdf.sail.generaldb.managers.TripleManager; 
    3131import org.openrdf.sail.rdbms.schema.TableFactory; 
    32 import org.openrdf.sail.generaldb.schema.ValueTableFactory; 
    3332 
    34 /** 
    35  * Responsible to initialise and wire all components together that will be 
    36  * needed to satisfy any sail connection request. 
    37  *  
    38  * @author James Leigh 
     33/**  
     34 * @author George Garbis <ggarbis@di.uoa.gr> ?? 
    3935 */ 
    4036public class MonetDBConnectionFactory extends GeneralDBConnectionFactory { 
     
    9389                        Connection db = nsAndTableIndexes; 
    9490                        db.setAutoCommit(true); 
    95                         /**************************/ 
    96 //                      if (db.getTransactionIsolation() != TRANSACTION_READ_COMMITTED) { 
    97 //                              db.setTransactionIsolation(TRANSACTION_READ_COMMITTED); 
    98 //                      } 
    99                         // giorgos 
    100                         if (db.getTransactionIsolation() != TRANSACTION_SERIALIZABLE) { 
    101                                 db.setTransactionIsolation(TRANSACTION_SERIALIZABLE); 
    102                         } 
    103                         /***********************/ 
     91 
     92                        /** 
     93                         * In contrast to Postgres, MonetDB (actually the jdbc implementation of MonetDB) allows  
     94                         * only serializable transactions. In every other case, an exception (or warning) is thrown. 
     95                         * To prevent this, we explicitly set the isolation level to TRANSACTION_SERIALIZABLE.    
     96                         */ 
     97                        db.setTransactionIsolation(TRANSACTION_SERIALIZABLE); 
     98                         
    10499                        TripleManager tripleManager = new TripleManager(); 
    105100                        GeneralDBTripleRepository s = new MonetDBTripleRepository(); 
Note: See TracChangeset for help on using the changeset viewer.