Skip to content

Commit

Permalink
Merge pull request #246 from JetBrains/issue-226-ytdb-upgrade
Browse files Browse the repository at this point in the history
YTDB upgrade. p2.
  • Loading branch information
andrii0lomakin authored Jan 21, 2025
2 parents b9e348b + b8e9c12 commit e37b5bb
Show file tree
Hide file tree
Showing 131 changed files with 1,588 additions and 1,585 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package jetbrains.exodus.entitystore

import jetbrains.exodus.entitystore.orientdb.OEntityIterable
import jetbrains.exodus.entitystore.orientdb.OEntityStore
import jetbrains.exodus.entitystore.orientdb.OStoreTransaction
import jetbrains.exodus.entitystore.youtrackdb.YTDBEntityIterable
import jetbrains.exodus.entitystore.youtrackdb.YTDBEntityStore
import jetbrains.exodus.entitystore.youtrackdb.YTDBStoreTransaction


/**
Expand All @@ -35,16 +35,16 @@ fun PersistentEntityStore.asPersistent(): PersistentEntityStoreImpl {
return this as PersistentEntityStoreImpl
}

fun StoreTransaction.asOStoreTransaction(): OStoreTransaction {
return this as OStoreTransaction
fun StoreTransaction.asOStoreTransaction(): YTDBStoreTransaction {
return this as YTDBStoreTransaction
}

fun EntityIterable.asOQueryIterable(): OEntityIterable {
require(this is OEntityIterable) { "Only OEntityIterableBase is supported, but was ${this.javaClass.simpleName}" }
fun EntityIterable.asOQueryIterable(): YTDBEntityIterable {
require(this is YTDBEntityIterable) { "Only OEntityIterableBase is supported, but was ${this.javaClass.simpleName}" }
return this
}

fun EntityStore.asOStore(): OEntityStore {
require(this is OEntityStore) { "Only OEntityStore is supported, but was ${this.javaClass.simpleName}" }
fun EntityStore.asOStore(): YTDBEntityStore {
require(this is YTDBEntityStore) { "Only OEntityStore is supported, but was ${this.javaClass.simpleName}" }
return this
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e37b5bb

Please sign in to comment.