From d83a8662c8507b4a75fec03d1cd8a6db7ff73e0d Mon Sep 17 00:00:00 2001 From: szymonsztuka Date: Wed, 3 Oct 2018 09:50:00 +0100 Subject: [PATCH] Removed unused enum type from CordaPersistence. (#1434) --- .../nodeapi/internal/persistence/CordaPersistence.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt b/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt index 9a621bcfeb..71a509a54c 100644 --- a/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt +++ b/node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt @@ -271,18 +271,6 @@ fun rx.Observable.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. */