All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jfaster.badger.transaction.TransactionIsolationLevel Maven / Gradle / Ivy

package org.jfaster.badger.transaction;

import java.sql.Connection;

/**
 * 事务的隔离级别
 *
 */
public enum TransactionIsolationLevel {

  DEFAULT(-1),
  READ_UNCOMMITTED(Connection.TRANSACTION_READ_UNCOMMITTED),
  READ_COMMITTED(Connection.TRANSACTION_READ_COMMITTED),
  REPEATABLE_READ(Connection.TRANSACTION_REPEATABLE_READ),
  SERIALIZABLE(Connection.TRANSACTION_SERIALIZABLE);

  private final int level;

  TransactionIsolationLevel(int level) {
    this.level = level;
  }

  public int getLevel() {
    return level;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy