コード例 #1
0
 /**
  * @param iConnection
  * @param resultSetType
  * @param resultSetConcurrency
  * @param resultSetHoldability
  */
 public OrientJdbcStatement(
     OrientJdbcConnection iConnection,
     int resultSetType,
     int resultSetConcurrency,
     int resultSetHoldability) {
   this.connection = iConnection;
   this.database = iConnection.getDatabase();
   database.activateOnCurrentThread();
   documents = emptyList();
   batches = new ArrayList<String>();
   this.resultSetType = resultSetType;
   this.resultSetConcurrency = resultSetConcurrency;
   this.resultSetHoldability = resultSetHoldability;
   info = connection.getInfo();
 }
コード例 #2
0
 /**
  * @param iConnection
  * @param resultSetType
  * @param resultSetConcurrency
  * @param resultSetHoldability
  */
 public OrientJdbcStatement(
     OrientJdbcConnection iConnection,
     int resultSetType,
     int resultSetConcurrency,
     int resultSetHoldability) {
   this.connection = iConnection;
   this.database = iConnection.getDatabase();
   ODatabaseRecordThreadLocal.INSTANCE.set(database);
   documents = emptyList();
   batches = new ArrayList<String>();
   this.resultSetType = resultSetType;
   this.resultSetConcurrency = resultSetConcurrency;
   this.resultSetHoldability = resultSetHoldability;
 }
コード例 #3
0
 @After
 public void closeConnection() throws Exception {
   if (conn != null && !conn.isClosed()) conn.close();
 }