Removed unused enum type from CordaPersistence. (#1434)

This commit is contained in:
szymonsztuka 2018-10-03 09:50:00 +01:00 committed by GitHub
parent 8c23abbd7a
commit d83a8662c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. */