Skip to content

Commit

Permalink
YTDB upgrade. p2.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Jan 21, 2025
1 parent 3a5d36a commit b8e9c12
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 b8e9c12

Please sign in to comment.