mirror of
https://github.com/corda/corda.git
synced 2025-04-16 07:27:17 +00:00
Removed unused enum type from CordaPersistence. (#1434)
This commit is contained in:
parent
8c23abbd7a
commit
d83a8662c8
@ -271,18 +271,6 @@ fun <T : Any> rx.Observable<T>.wrapWithDatabaseTransaction(db: CordaPersistence?
|
||||
}
|
||||
}
|
||||
|
||||
fun parserTransactionIsolationLevel(property: String?): Int =
|
||||
when (property) {
|
||||
"none" -> Connection.TRANSACTION_NONE
|
||||
"readUncommitted" -> Connection.TRANSACTION_READ_UNCOMMITTED
|
||||
"readCommitted" -> Connection.TRANSACTION_READ_COMMITTED
|
||||
"repeatableRead" -> Connection.TRANSACTION_REPEATABLE_READ
|
||||
"serializable" -> Connection.TRANSACTION_SERIALIZABLE
|
||||
else -> {
|
||||
Connection.TRANSACTION_REPEATABLE_READ
|
||||
}
|
||||
}
|
||||
|
||||
fun isH2Database(jdbcUrl: String) = jdbcUrl.startsWith("jdbc:h2:")
|
||||
|
||||
/** Check if any nested cause is of [SQLException] type. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user