public class PersistentStoreTransaction extends java.lang.Object implements jetbrains.exodus.entitystore.StoreTransaction, TxnGetterStrategy, TxnProvider
| Modifier and Type | Field and Description |
|---|---|
protected @NotNull PersistentEntityStoreImpl |
store |
protected @NotNull jetbrains.exodus.env.Transaction |
txn |
DEFAULT| Modifier | Constructor and Description |
|---|---|
protected |
PersistentStoreTransaction(@NotNull PersistentEntityStoreImpl store,
long highAddress) |
protected |
PersistentStoreTransaction(@NotNull PersistentEntityStoreImpl store,
@NotNull jetbrains.exodus.entitystore.PersistentStoreTransaction.TransactionType txnType) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
addCachedInstance(@NotNull CachedInstanceIterable cached) |
boolean |
commit() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
find(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
@NotNull java.lang.Comparable value) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
find(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
@NotNull java.lang.Comparable minValue,
@NotNull java.lang.Comparable maxValue) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findContaining(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
@NotNull java.lang.String value,
boolean ignoreCase) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findIds(@NotNull java.lang.String entityType,
long minValue,
long maxValue) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findLinks(@NotNull java.lang.String entityType,
@NotNull jetbrains.exodus.entitystore.EntityIterable entities,
@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findLinks(@NotNull java.lang.String entityType,
@NotNull jetbrains.exodus.entitystore.Entity entity,
@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findStartingWith(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
@NotNull java.lang.String value) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findWithBlob(@NotNull java.lang.String entityType,
@NotNull java.lang.String blobName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findWithLinks(@NotNull java.lang.String entityType,
@NotNull java.lang.String linkName) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
findWithLinks(@NotNull java.lang.String entityType,
@NotNull java.lang.String linkName,
@NotNull java.lang.String oppositeEntityType,
@NotNull java.lang.String oppositeLinkName) |
@NotNull EntityIterableBase |
findWithProp(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName) |
EntityIterableBase |
findWithPropSortedByValue(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName) |
boolean |
flush() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
getAll(@NotNull java.lang.String entityType) |
@Nullable CachedInstanceIterable |
getCachedInstance(@NotNull EntityIterableBase sample) |
@Nullable CachedInstanceIterable |
getCachedInstanceFast(@NotNull EntityIterableBase sample) |
@NotNull PersistentEntity |
getEntity(@NotNull jetbrains.exodus.entitystore.EntityId id) |
@NotNull java.util.List<java.lang.String> |
getEntityTypes() |
@NotNull jetbrains.exodus.env.Transaction |
getEnvironmentTransaction() |
long |
getHighAddress() |
@Nullable jetbrains.exodus.entitystore.QueryCancellingPolicy |
getQueryCancellingPolicy() |
@NotNull jetbrains.exodus.entitystore.Sequence |
getSequence(@NotNull java.lang.String sequenceName) |
@NotNull jetbrains.exodus.entitystore.Sequence |
getSequence(@NotNull java.lang.String sequenceName,
long initialValue) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
getSingletonIterable(@NotNull jetbrains.exodus.entitystore.Entity entity) |
PersistentStoreTransaction |
getSnapshot() |
@NotNull Updatable |
getStickyObject(@NotNull EntityIterableHandle handle) |
@NotNull PersistentEntityStoreImpl |
getStore() |
@NotNull PersistentStoreTransaction |
getTransaction() |
PersistentStoreTransaction |
getTxn(@NotNull EntityIterableBase iterable) |
static <T> T |
getUpdatable(@NotNull HandleChecker handleChecker,
@NotNull EntityIterableHandle handle,
@NotNull java.lang.Class<T> handleType) |
boolean |
isCurrent() |
boolean |
isFinished() |
boolean |
isIdempotent() |
boolean |
isReadonly() |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
mergeSorted(@NotNull java.util.List<jetbrains.exodus.entitystore.EntityIterable> sorted,
@NotNull jetbrains.exodus.entitystore.ComparableGetter valueGetter,
@NotNull java.util.Comparator<java.lang.Comparable<java.lang.Object>> comparator) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
mergeSorted(@NotNull java.util.List<jetbrains.exodus.entitystore.EntityIterable> sorted,
@NotNull java.util.Comparator<jetbrains.exodus.entitystore.Entity> comparator)
Deprecated.
|
@NotNull PersistentEntity |
newEntity(@NotNull java.lang.String entityType) |
void |
registerMutatedHandle(@NotNull EntityIterableHandle handle,
@NotNull CachedInstanceIterable iterable) |
void |
registerStickyObject(@NotNull EntityIterableHandle handle,
Updatable object) |
void |
revert() |
void |
revertCaches() |
void |
saveEntity(@NotNull jetbrains.exodus.entitystore.Entity entity) |
void |
setQueryCancellingPolicy(jetbrains.exodus.entitystore.QueryCancellingPolicy policy) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
sort(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
boolean ascending) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
sort(@NotNull java.lang.String entityType,
@NotNull java.lang.String propertyName,
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder,
boolean ascending) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
sortLinks(@NotNull java.lang.String entityType,
@NotNull jetbrains.exodus.entitystore.EntityIterable sortedLinks,
boolean isMultiple,
@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder) |
@NotNull jetbrains.exodus.entitystore.EntityIterable |
sortLinks(@NotNull java.lang.String entityType,
@NotNull jetbrains.exodus.entitystore.EntityIterable sortedLinks,
boolean isMultiple,
@NotNull java.lang.String linkName,
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder,
@NotNull java.lang.String oppositeEntityType,
@NotNull java.lang.String oppositeLinkName) |
@NotNull jetbrains.exodus.entitystore.EntityId |
toEntityId(@NotNull java.lang.String representation) |
java.lang.String |
toString() |
@NotNull protected final @NotNull PersistentEntityStoreImpl store
@NotNull protected final @NotNull jetbrains.exodus.env.Transaction txn
protected PersistentStoreTransaction(@NotNull
@NotNull PersistentEntityStoreImpl store,
@NotNull
@NotNull jetbrains.exodus.entitystore.PersistentStoreTransaction.TransactionType txnType)
protected PersistentStoreTransaction(@NotNull
@NotNull PersistentEntityStoreImpl store,
long highAddress)
@NotNull public @NotNull PersistentEntityStoreImpl getStore()
getStore in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean isIdempotent()
isIdempotent in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean isReadonly()
isReadonly in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean isFinished()
isFinished in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean commit()
commit in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean isCurrent()
public void abort()
abort in interface jetbrains.exodus.entitystore.StoreTransactionpublic boolean flush()
flush in interface jetbrains.exodus.entitystore.StoreTransactionpublic void revert()
revert in interface jetbrains.exodus.entitystore.StoreTransactionpublic PersistentStoreTransaction getSnapshot()
getSnapshot in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull public @NotNull PersistentEntity newEntity(@NotNull @NotNull java.lang.String entityType)
newEntity in interface jetbrains.exodus.entitystore.StoreTransactionpublic void saveEntity(@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
saveEntity in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull public @NotNull PersistentEntity getEntity(@NotNull @NotNull jetbrains.exodus.entitystore.EntityId id)
getEntity in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull public @NotNull java.util.List<java.lang.String> getEntityTypes()
getEntityTypes in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable getAll(@NotNull
@NotNull java.lang.String entityType)
getAll in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable getSingletonIterable(@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
getSingletonIterable in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable find(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.Comparable value)
find in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable find(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.Comparable minValue,
@NotNull
@NotNull java.lang.Comparable maxValue)
find in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findContaining(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.String value,
boolean ignoreCase)
findContaining in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findIds(@NotNull
@NotNull java.lang.String entityType,
long minValue,
long maxValue)
findIds in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull public @NotNull EntityIterableBase findWithProp(@NotNull @NotNull java.lang.String entityType, @NotNull @NotNull java.lang.String propertyName)
findWithProp in interface jetbrains.exodus.entitystore.StoreTransactionpublic EntityIterableBase findWithPropSortedByValue(@NotNull @NotNull java.lang.String entityType, @NotNull @NotNull java.lang.String propertyName)
@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findStartingWith(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.String value)
findStartingWith in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findWithBlob(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String blobName)
findWithBlob in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity,
@NotNull
@NotNull java.lang.String linkName)
findLinks in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable entities,
@NotNull
@NotNull java.lang.String linkName)
findLinks in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findWithLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String linkName)
findWithLinks in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable findWithLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull java.lang.String oppositeEntityType,
@NotNull
@NotNull java.lang.String oppositeLinkName)
findWithLinks in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable sort(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
boolean ascending)
sort in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable sort(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder,
boolean ascending)
sort in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable sortLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable sortedLinks,
boolean isMultiple,
@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder)
sortLinks in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable sortLinks(@NotNull
@NotNull java.lang.String entityType,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable sortedLinks,
boolean isMultiple,
@NotNull
@NotNull java.lang.String linkName,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityIterable rightOrder,
@NotNull
@NotNull java.lang.String oppositeEntityType,
@NotNull
@NotNull java.lang.String oppositeLinkName)
sortLinks in interface jetbrains.exodus.entitystore.StoreTransaction@Deprecated
@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable mergeSorted(@NotNull
@NotNull java.util.List<jetbrains.exodus.entitystore.EntityIterable> sorted,
@NotNull
@NotNull java.util.Comparator<jetbrains.exodus.entitystore.Entity> comparator)
mergeSorted in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityIterable mergeSorted(@NotNull
@NotNull java.util.List<jetbrains.exodus.entitystore.EntityIterable> sorted,
@NotNull
@NotNull jetbrains.exodus.entitystore.ComparableGetter valueGetter,
@NotNull
@NotNull java.util.Comparator<java.lang.Comparable<java.lang.Object>> comparator)
@NotNull
public @NotNull jetbrains.exodus.entitystore.EntityId toEntityId(@NotNull
@NotNull java.lang.String representation)
toEntityId in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.Sequence getSequence(@NotNull
@NotNull java.lang.String sequenceName)
getSequence in interface jetbrains.exodus.entitystore.StoreTransaction@NotNull
public @NotNull jetbrains.exodus.entitystore.Sequence getSequence(@NotNull
@NotNull java.lang.String sequenceName,
long initialValue)
getSequence in interface jetbrains.exodus.entitystore.StoreTransactionpublic void setQueryCancellingPolicy(jetbrains.exodus.entitystore.QueryCancellingPolicy policy)
setQueryCancellingPolicy in interface jetbrains.exodus.entitystore.StoreTransaction@Nullable public @Nullable jetbrains.exodus.entitystore.QueryCancellingPolicy getQueryCancellingPolicy()
getQueryCancellingPolicy in interface jetbrains.exodus.entitystore.StoreTransactionpublic void registerMutatedHandle(@NotNull
@NotNull EntityIterableHandle handle,
@NotNull
@NotNull CachedInstanceIterable iterable)
public void registerStickyObject(@NotNull
@NotNull EntityIterableHandle handle,
Updatable object)
@NotNull public @NotNull Updatable getStickyObject(@NotNull @NotNull EntityIterableHandle handle)
public java.lang.String toString()
toString in class java.lang.Object@NotNull public @NotNull jetbrains.exodus.env.Transaction getEnvironmentTransaction()
public PersistentStoreTransaction getTxn(@NotNull @NotNull EntityIterableBase iterable)
getTxn in interface TxnGetterStrategy@NotNull public @NotNull PersistentStoreTransaction getTransaction()
getTransaction in interface TxnProvider@Nullable public @Nullable CachedInstanceIterable getCachedInstance(@NotNull @NotNull EntityIterableBase sample)
@Nullable public @Nullable CachedInstanceIterable getCachedInstanceFast(@NotNull @NotNull EntityIterableBase sample)
public void addCachedInstance(@NotNull
@NotNull CachedInstanceIterable cached)
public long getHighAddress()
public void revertCaches()
public static <T> T getUpdatable(@NotNull
@NotNull HandleChecker handleChecker,
@NotNull
@NotNull EntityIterableHandle handle,
@NotNull
@NotNull java.lang.Class<T> handleType)