test_class.file: server/src/test/java/io/spine/server/entity/TransactionalEntityTest.java
test_class.identifier: TransactionalEntityTest
test_case.body: @Test
      @DisplayName("return transaction `lifecycleFlags` if transaction is active")
      void returnActiveTxFlags() {
          TransactionalEntity entity = newEntity(true, true);
          LifecycleFlags originalFlags = entity.lifecycleFlags();
  
          Transaction tx = entity.transaction();
  
          assertThat(originalFlags)
                  .isEqualTo(tx.lifecycleFlags());
  
          ((TeEntity) entity).turnToDeleted();
  
          assertThat(originalFlags)
                  .isNotEqualTo(tx.lifecycleFlags());
      }
test_case.class_method_signature: TransactionalEntityTest.returnActiveTxFlags()
test_case.full_signature: @Test @DisplayName("return transaction `lifecycleFlags` if transaction is active") void returnActiveTxFlags()
test_case.identifier: returnActiveTxFlags
test_case.invocations: newEntity lifecycleFlags transaction isEqualTo assertThat lifecycleFlags turnToDeleted isNotEqualTo assertThat lifecycleFlags
test_case.modifiers: @Test @DisplayName("return transaction `lifecycleFlags` if transaction is active")
test_case.parameters: ()
test_case.return: void
test_case.signature: void returnActiveTxFlags()
focal_class.declarator: recentHistory = new RecentHistory()
focal_class.modifier: private final
focal_class.original_string: private final RecentHistory recentHistory = new RecentHistory();
focal_class.type: RecentHistory
focal_class.var_name: recentHistory
focal_class.declarator: stateChanged
focal_class.modifier: private volatile
focal_class.original_string: private volatile boolean stateChanged;
focal_class.type: boolean
focal_class.var_name: stateChanged
focal_class.declarator: transaction
focal_class.modifier: private volatile
      @Nullable
focal_class.original_string: private volatile
      @Nullable Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction;
focal_class.type: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B>
focal_class.var_name: transaction
focal_class.file: server/src/main/java/io/spine/server/entity/TransactionalEntity.java
focal_class.identifier: TransactionalEntity
focal_class.class_method_signature: TransactionalEntity.TransactionalEntity()
focal_class.full_signature: protected  TransactionalEntity()
focal_class.identifier: TransactionalEntity
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  TransactionalEntity()
focal_class.class_method_signature: TransactionalEntity.TransactionalEntity(I id)
focal_class.full_signature: protected  TransactionalEntity(I id)
focal_class.identifier: TransactionalEntity
focal_class.modifiers: protected
focal_class.parameters: (I id)
focal_class.signature:  TransactionalEntity(I id)
focal_class.class_method_signature: TransactionalEntity.recentHistory()
focal_class.full_signature: protected RecentHistory recentHistory()
focal_class.identifier: recentHistory
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: RecentHistory
focal_class.signature: RecentHistory recentHistory()
focal_class.class_method_signature: TransactionalEntity.remember(Iterable<Event> events)
focal_class.full_signature: protected void remember(Iterable<Event> events)
focal_class.identifier: remember
focal_class.modifiers: protected
focal_class.parameters: (Iterable<Event> events)
focal_class.return: void
focal_class.signature: void remember(Iterable<Event> events)
focal_class.class_method_signature: TransactionalEntity.clearRecentHistory()
focal_class.full_signature: protected void clearRecentHistory()
focal_class.identifier: clearRecentHistory
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearRecentHistory()
focal_class.class_method_signature: TransactionalEntity.changed()
focal_class.full_signature: @Internal public final boolean changed()
focal_class.identifier: changed
focal_class.modifiers: @Internal public final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean changed()
focal_class.class_method_signature: TransactionalEntity.builder()
focal_class.full_signature: protected B builder()
focal_class.identifier: builder
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: B
focal_class.signature: B builder()
focal_class.class_method_signature: TransactionalEntity.ensureTransaction()
focal_class.full_signature: private Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> ensureTransaction()
focal_class.identifier: ensureTransaction
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B>
focal_class.signature: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> ensureTransaction()
focal_class.class_method_signature: TransactionalEntity.missingTxMessage()
focal_class.full_signature: protected String missingTxMessage()
focal_class.identifier: missingTxMessage
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String missingTxMessage()
focal_class.class_method_signature: TransactionalEntity.tx()
focal_class.full_signature: protected Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx()
focal_class.identifier: tx
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B>
focal_class.signature: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx()
focal_class.class_method_signature: TransactionalEntity.isTransactionInProgress()
focal_class.full_signature: @VisibleForTesting final boolean isTransactionInProgress()
focal_class.identifier: isTransactionInProgress
focal_class.modifiers: @VisibleForTesting final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isTransactionInProgress()
focal_class.class_method_signature: TransactionalEntity.injectTransaction(Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx)
focal_class.full_signature: @SuppressWarnings({"ObjectEquality", "ReferenceEquality"} /* The refs must to point to the same object; see below. */) final void injectTransaction(Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx)
focal_class.identifier: injectTransaction
focal_class.modifiers: @SuppressWarnings({"ObjectEquality", "ReferenceEquality"} /* The refs must to point to the same object; see below. */) final
focal_class.parameters: (Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx)
focal_class.return: void
focal_class.signature: void injectTransaction(Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> tx)
focal_class.class_method_signature: TransactionalEntity.releaseTransaction()
focal_class.full_signature: final void releaseTransaction()
focal_class.identifier: releaseTransaction
focal_class.modifiers: final
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void releaseTransaction()
focal_class.class_method_signature: TransactionalEntity.transaction()
focal_class.full_signature: @VisibleForTesting final @Nullable Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction()
focal_class.identifier: transaction
focal_class.modifiers: @VisibleForTesting final @Nullable
focal_class.parameters: ()
focal_class.return: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B>
focal_class.signature: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction()
focal_class.class_method_signature: TransactionalEntity.updateStateChanged()
focal_class.full_signature: final void updateStateChanged()
focal_class.identifier: updateStateChanged
focal_class.modifiers: final
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void updateStateChanged()
focal_class.class_method_signature: TransactionalEntity.setInitialState(S initialState, Version version)
focal_class.full_signature: protected final void setInitialState(S initialState, Version version)
focal_class.identifier: setInitialState
focal_class.modifiers: protected final
focal_class.parameters: (S initialState, Version version)
focal_class.return: void
focal_class.signature: void setInitialState(S initialState, Version version)
focal_class.class_method_signature: TransactionalEntity.getLifecycleFlags()
focal_class.full_signature: @Override public final LifecycleFlags getLifecycleFlags()
focal_class.identifier: getLifecycleFlags
focal_class.modifiers: @Override public final
focal_class.parameters: ()
focal_class.return: LifecycleFlags
focal_class.signature: LifecycleFlags getLifecycleFlags()
focal_class.class_method_signature: TransactionalEntity.setArchived(boolean archived)
focal_class.full_signature: @Override protected final void setArchived(boolean archived)
focal_class.identifier: setArchived
focal_class.modifiers: @Override protected final
focal_class.parameters: (boolean archived)
focal_class.return: void
focal_class.signature: void setArchived(boolean archived)
focal_class.class_method_signature: TransactionalEntity.setDeleted(boolean deleted)
focal_class.full_signature: @Override protected final void setDeleted(boolean deleted)
focal_class.identifier: setDeleted
focal_class.modifiers: @Override protected final
focal_class.parameters: (boolean deleted)
focal_class.return: void
focal_class.signature: void setDeleted(boolean deleted)
focal_class.superclass: extends AbstractEntity<I, S>
focal_method.body: @VisibleForTesting
      final @Nullable Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction() {
          return transaction;
      }
focal_method.class_method_signature: TransactionalEntity.transaction()
focal_method.full_signature: @VisibleForTesting final @Nullable Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction()
focal_method.identifier: transaction
focal_method.modifiers: @VisibleForTesting final @Nullable
focal_method.parameters: ()
focal_method.return: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B>
focal_method.signature: Transaction<I, ? extends TransactionalEntity<I, S, B>, S, B> transaction()