예제 #1
0
 /**
  * Creates a new connection
  *
  * @param holdability Cursor holdability
  * @param autoCommit Sets auto-commit behaviour for the connection
  * @param transactionLevel Sets transaction isolation level for the connection
  * @param compatibilityLevel Sets JDBC compatibility level for the connection, see {@link
  *     JdbcCompatibility}
  * @throws SQLException Thrown if the arguments are invalid
  */
 public JenaConnection(
     int holdability, boolean autoCommit, int transactionLevel, int compatibilityLevel)
     throws SQLException {
   this.checkHoldability(holdability);
   this.holdability = holdability;
   this.setAutoCommit(autoCommit);
   this.setTransactionIsolation(transactionLevel);
   this.compatibilityLevel = JdbcCompatibility.normalizeLevel(compatibilityLevel);
 }
예제 #2
0
 /**
  * Sets the JDBC compatibility level that is in use, see {@link JdbcCompatibility} for
  * explanations.
  *
  * <p>Changing the level may not effect existing open objects, behaviour in this case will be
  * implementation specific.
  *
  * @param level Compatibility level
  */
 public void setJdbcCompatibilityLevel(int level) {
   this.compatibilityLevel = JdbcCompatibility.normalizeLevel(level);
 }